Ajouter un site web à la réceptionniste

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…

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

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.

{
  "url": "example.com"
}

Une URL sans http:// ni https:// est enregistrée en https://. Le site rejoint toute la bibliothèque de sites du compte : les autres numéros du compte peuvent donc l'utiliser aussi. Utilisez l'id avec Modifier un site web de la réceptionniste et Supprimer un site web de la réceptionniste.

Les autres erreurs sont celles de Ajouter un site web.

Erreurs

CodeCe que cela signifie
RECEPTIONIST_NOT_ACTIVELa réceptionniste n'est pas activée sur ce numéro (409). Activez-la d'abord.
PARTNER_ACCOUNT_NOT_FOUNDAucun compte avec cet identifiant n'a été créé par votre clé API, ou le compte est désactivé (404).
PHONE_NUMBER_NOT_FOUNDLe 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
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 champs
typestring
codestring
messagestring
retryableboolean
request_idstring
retry_after_secondsinteger | null
409The receptionist is not activated on this number (RECEPTIONIST_NOT_ACTIVE).
errorobject
6 champs
typestring
codestring
messagestring
retryableboolean
request_idstring
retry_after_secondsinteger | null
429