Ajoute un site web aux connaissances de la réceptionniste. Allo explore le site à partir de l'URL que vous envoyez, en arrière-plan. L'appel renvoie 201 tout…
Ajoute un site web aux connaissances de la réceptionniste. Allo explore le site à partir de l'URL que vous envoyez, en arrière-plan. L'appel renvoie 201 tout de suite avec le site : son id, son url et son status. La réponse a la même forme que Ajouter un site web.
La réceptionniste n'est pas activée sur ce numéro (409). Activez-la d'abord.
PARTNER_ACCOUNT_NOT_FOUND
Aucun compte avec cet identifiant n'a été créé par votre clé API, ou le compte est désactivé (404).
PHONE_NUMBER_NOT_FOUND
Le numéro n'est pas sur ce compte (404).
Autorisation
Authorizationstring · headerrequis
Api-Key ak_live_…
Paramètres de chemin
idstringrequis
The account id returned on create.
numberstringrequis
A number of the account, in E.164 format.
Corps
urlstringrequis
The URL of a publicly reachable site. A URL without a scheme is stored as https://.
Réponses
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 champs
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
400401403The 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 champs
typestring
codestring
messagestring
retryableboolean
request_idstring
retry_after_secondsinteger | null
409The receptionist is not activated on this number (RECEPTIONIST_NOT_ACTIVE).