Modifie la configuration de la réceptionniste IA sur un numéro. Le corps de la requête est le même que pour Modifier la configuration : n'envoyez que ce que…
Modifie la configuration de la réceptionniste IA sur un numéro. Le corps de la requête est le même que pour Modifier la configuration : n'envoyez que ce que vous changez. Les valeurs simples sont fusionnées et les collections sont remplacées. Le prompt se définit à part avec Définir le prompt.
Pour choisir la voix, envoyez voice_id avec un id de Lister les voix. Pour que la réceptionniste prenne des rendez-vous, connectez un agenda, puis envoyez scheduling.calendars avec les types d'événement à réserver.
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
namestring
business_namestring
business_addressstring
business_phonestring
E.164 format.
business_emailstring
business_websitestring
business_industrystring
languageenum<string>
frfr-CAen-USen-GBesdehr
voice_idstring
An id from GET /v2/api/voices, listed under the receptionist's language.
greeting_messagestring
closing_messagestring
tone_of_voiceenum<string>
FRIENDLYPROFESSIONALNEUTRALENTHUSIASTIC
answer_typeenum<string>
CONCISESTANDARDDETAILED
capabilitiesobject
The complete set of toggles. A capability left out of the map is turned off, so read the current ones first and send them all back.
business_hoursobject
Replaces the whole week. schedule is required when this key is sent.
2 champs
timezonestring
IANA timezone identifier.
scheduleobject[]requis
2 champs
dayenum<string>requis
MOTUWETHFRSASU
scheduleobject[]requis
The open periods of that day. An empty array closes the day.
2 champs
start_timeintegerrequis
end_timeintegerrequis
transfer_rulesobject[]
Replaces the whole rule set. Send [] to remove every rule.
6 champs
descriptionstring
The caller's reason, in the caller's words. This is what the receptionist matches what it hears against, so phrase it as a reason ('billing or invoice questions'), not as an instruction.
typeenum<string>
EXTERNAL_NUMBER transfers to any phone number, MEMBER to a teammate, INBOX to another Allo line.
EXTERNAL_NUMBERMEMBERINBOX
transfer_messagestring | null
What the receptionist says before transferring.
target_numberstring | null
Required for EXTERNAL_NUMBER. E.164 format.
target_member_idstring | null
Required for MEMBER. A user id from GET /v2/api/users.
target_line_numberstring | null
Required for INBOX. Another of your Allo numbers, in E.164 format.
schedulingobject
1 champs
calendarsobject
The complete set of calendars the receptionist may book on, keyed by an id from GET /v2/api/calendars. A calendar it does not have yet is linked to it, one mapped to [] stays linked with no event type selected, and one left out loses access.
knowledgeobject
Only the free-text knowledge is writable here. Websites and files have their own endpoints.
1 champs
textstring
Deprecated: add websites instead. Stored as the line's "Business knowledge" text source in the team's knowledge library; a different text edits that source in place, an empty string turns it off for this line.
Réponses
200The receptionist, with its configuration after the update
dataobject
The AI receptionist on one number of an account you created.
7 champs
account_idstring
The account id.
phone_numberstring
The number, in E.164 format.
addon_activeboolean
true when the AI receptionist is paid on the account. It can read false for a few seconds after the first activation.
activeboolean
true when the receptionist is activated on this number.
activated_atstring<date-time> | null
Start of the current activation, in UTC. null when the receptionist is not activated.
answering_callsboolean
addon_active and active. Calls then reach the receptionist when the number's call flow sends them to the AI receptionist step, or when the number has no call flow.
configurationobject
The whole configuration of one line's AI receptionist.
7 champs
agentobject
The AI receptionist's own settings. Everything here except id, status, is_default, created_at and updated_at is writable with PATCH /v2/api/numbers/{number}/agent.
18 champs
idstring | null
statusenum<string>
ACTIVE: the receptionist answers incoming calls. FORWARDING: it does not, and calls go to your business phone. Read-only here, change it with PUT /v2/api/numbers/{number}/agent/status.
ACTIVEFORWARDING
namestring | null
The name the receptionist gives itself on a call.
is_defaultboolean
True while the line still runs Allo's default receptionist, with no prompt, greeting, closing or knowledge of its own.
business_namestring | null
business_addressstring | null
business_phonestring | null
The business's own phone number, in E.164 format.
business_emailstring | null
business_websitestring | null
business_industrystring | null
languageenum<string>
The language the receptionist speaks. Pick a voice_id listed under the same language.
frfr-CAen-USen-GBesdehr
voice_idstring | null
Identifier of a voice from GET /v2/api/voices.
greeting_messagestring | null
What the receptionist says when it picks up.
closing_messagestring | null
What the receptionist says before hanging up.
tone_of_voiceenum<string>
FRIENDLYPROFESSIONALNEUTRALENTHUSIASTIC
answer_typeenum<string>
How long the receptionist's answers run.
CONCISESTANDARDDETAILED
created_atstring<date-time> | null
updated_atstring<date-time> | null
promptobject
The receptionist's prompt. Exactly one of the two keys is present: sections for a prompt written in the section format, custom_prompt for an older line whose prompt was written as freeform text. custom_prompt is the render of the sections, so it is never reported alongside them.
2 champs
sectionsobject[]
custom_promptstring | null
capabilitiesobject
What the receptionist is allowed to do on a call. All three are always reported.
3 champs
SCHEDULINGboolean
Book appointments on the calendars in scheduling.calendars.
CALL_TRANSFERboolean
Transfer the call using the rules in transfer_rules.
WARM_TRANSFERboolean
Announce the caller to the person taking the transfer before connecting them.
business_hoursobject
When the business is open. A day left out of schedule is closed.
2 champs
timezonestring | null
IANA timezone identifier.
scheduleobject[]
transfer_rulesobject[]
6 champs
descriptionstring
The caller's reason, in the caller's words. This is what the receptionist matches what it hears against, so phrase it as a reason ('billing or invoice questions'), not as an instruction.
typeenum<string>
EXTERNAL_NUMBER transfers to any phone number, MEMBER to a teammate, INBOX to another Allo line.
EXTERNAL_NUMBERMEMBERINBOX
transfer_messagestring | null
What the receptionist says before transferring.
target_numberstring | null
Required for EXTERNAL_NUMBER. E.164 format.
target_member_idstring | null
Required for MEMBER. A user id from GET /v2/api/users.
target_line_numberstring | null
Required for INBOX. Another of your Allo numbers, in E.164 format.
schedulingobject
1 champs
calendarsobject[]
The calendars this receptionist may book on. Empty when it has none, which is not the same as the workspace having none: list those with GET /v2/api/calendars.
knowledgeobject
What the receptionist knows about the business: facts, prices, policies, hours.
3 champs
textstring | null
Deprecated. Free-text knowledge, up to 25000 characters, stored as the line's "Business knowledge" text source.
websitesobject[]
filesobject[]
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).