Renvoie l'agenda cal.com connecté à la réceptionniste du compte, dans la même forme que Lire un agenda : son id , son name , son provider ( CAL COM ), son…
Renvoie l'agenda cal.com connecté à la réceptionniste du compte, dans la même forme que Lire un agenda : son id, son name, son provider (CAL_COM), son status, is_team_default, owner et available_event_types. Connectez-en un avec Connecter l'agenda de la réceptionniste.
Erreurs
Code
Ce que cela signifie
CALENDAR_NOT_CONNECTED
Aucun agenda n'est connecté à ce compte (404).
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.
Réponses
200The calendar
dataobject
A calendar connected to your workspace, whether or not a receptionist books on it.
7 champs
idstring
What scheduling.calendars on PATCH /v2/api/numbers/{number}/agent is keyed by.
namestring | null
providerenum<string>
GOOGLE_CALENDARCAL_COMCALENDLYOUTLOOK
statusenum<string>
ACTIVEDISCONNECTED
is_team_defaultboolean
ownerobject
The teammate who connected the calendar.
4 champs
user_idstring
user_namestring | null
emailstring | null
is_current_userboolean
available_event_typesobject[]
Reported by GET /v2/api/calendars/{id} only, read live from the provider. Absent for a provider with no event-type concept, which is not the same answer as an empty list.
6 champs
idstring
slugstring | null
titlestring
length_in_minutesinteger | null
provider_descriptionstring | null
The blurb written in the calendar provider. Not the routing note the receptionist matches on: that one is the description you send in scheduling.calendars.
required_questionsobject[]
2 champs
idstring
labelstring
401403The 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). No calendar is connected to this account (CALENDAR_NOT_CONNECTED).