State the company
Это содержимое пока не доступно на вашем языке.
scope company:writewriteslive key only
States who the company is: send legalName, country (ISO code, see readiness.countries in whoami) and registrationNumber together, and/or the brand’s website and logo (full https:// addresses; an empty string removes one).
Everything the agent is told about this tool
States who the company is: send legalName, country (ISO code, see readiness.countries in whoami) and registrationNumber together, and/or the brand’s website and logo (full https:// addresses; an empty string removes one). A field you leave out stays as it is. The details are accepted at once, which is what lets a campaign go live; once accepted the legal details cannot be changed through this API (entity_locked), and sending the same details again is harmless. Because of that the legal details are only recorded when the call carries confirm: true: without it the answer is a preview (confirmed: false) of what would be recorded, and nothing is — show the brand the details and confirm only on its yes. The site and the logo need no confirm. The record names the key it was made through. Pass dryRun: true to check the details without keeping them; send an idempotencyKey. Read the result in whoami.readiness afterwards. Example: {"legalName": "Nocra Labs OÜ", "country": "EE", "registrationNumber": "16543210", "confirm": true, "idempotencyKey": "company-1"}; site only: {"website": "https://nocra.example", "idempotencyKey": "site-1"}.
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
legalName |
string |
no | The company’s registered legal name. Send together with country and registrationNumber. |
country |
string |
no | The ISO 3166-1 alpha-2 code of the country the company is registered in, for example EE. See readiness.countries in whoami. |
registrationNumber |
string |
no | The company’s number in its commercial register. |
website |
string |
no | The brand’s site, a full https:// address. An empty string removes it. |
logo |
string |
no | The address of the brand’s logo image, a full https:// address. An empty string removes it. |
confirm |
boolean |
no | Required when the legal details are sent, because once accepted they cannot be changed through this API. Without it the call is only a preview of what would be recorded. The site and the logo need no confirmation. |
idempotencyKey |
string |
no | Any unique string for this attempt, for example a UUID. Sending the same key and body again returns the first answer instead of writing twice. |
dryRun |
boolean |
no | When true, runs every check and returns what would happen, and keeps nothing: no draft, no log entry, no event. |
A write: send an idempotencyKey (any unique string for this one intent). A call with dryRun: true needs none.
Example
Section titled “Example”curl https://countviews.com/api/public/v1/call \ -H "Authorization: Bearer $COUNTVIEWS_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"company_set","arguments":{"legalName":"Nocra Labs OÜ","country":"EE","registrationNumber":"16543210","confirm":true,"idempotencyKey":"company-1"}}'{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "company_set", "arguments": { "legalName": "Nocra Labs OÜ", "country": "EE", "registrationNumber": "16543210", "confirm": true, "idempotencyKey": "company-1" } }}{ "legalName": "Nocra Labs OÜ", "country": "EE", "registrationNumber": "16543210", "confirm": true, "idempotencyKey": "company-1"}