Add receptionist website

Adds a website to the receptionist's knowledge. Allo crawls the site from this URL in the background and returns the entry right away. The website joins the…

POST/v2/api/partner/accounts/{id}/numbers/{number}/receptionist/knowledge/websites

Adds a website to the receptionist's knowledge. Allo crawls the site from the URL you send, in the background. The call returns 201 right away with the website: its id, its url and its status. The response has the same shape as Add website knowledge.

{
  "url": "example.com"
}

A URL without http:// or https:// is stored as https://. The website joins the account's whole library of websites, so the account's other numbers can use it too. Use the id with Update receptionist website and Delete receptionist website.

The other errors are those of Add website knowledge.

Errors

CodeWhat it means
RECEPTIONIST_NOT_ACTIVEThe receptionist is not activated on this number (409). Activate it first.
PARTNER_ACCOUNT_NOT_FOUNDNo account with this id was created by your API key, or the account is deactivated (404).
PHONE_NUMBER_NOT_FOUNDThe number is not on this account (404).

Authorization

Authorizationstring · headerrequired

Api-Key ak_live_…

Path parameters

idstringrequired

The account id returned on create.

numberstringrequired

A number of the account, in E.164 format.

Body

urlstringrequired

The URL of a publicly reachable site. A URL without a scheme is stored as https://.

Responses

201The website that was added
dataobject

A website of the team's knowledge library, crawled for the receptionist to answer from. The crawled text itself is not reported: it is what the receptionist reads, not something you configure.

5 fields
idstring
urlstring
statusenum<string>

ACTIVE when this line's receptionist answers from the website, DISABLED when this line does not use it.

ACTIVEDISABLED

created_atstring<date-time> | null
updated_atstring<date-time> | null
400
401
403The API key lacks the PARTNER scope.
errorobject
404No account with this id was created by your API key, or it is deactivated (PARTNER_ACCOUNT_NOT_FOUND), or the number is not on the account (PHONE_NUMBER_NOT_FOUND).
errorobject
6 fields
typestring
codestring
messagestring
retryableboolean
request_idstring
retry_after_secondsinteger | null
409The receptionist is not activated on this number (RECEPTIONIST_NOT_ACTIVE).
errorobject
6 fields
typestring
codestring
messagestring
retryableboolean
request_idstring
retry_after_secondsinteger | null
429