curl --request GET \
--url https://api.dentalspace.ai/v1/events \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dentalspace.ai/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dentalspace.ai/v1/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "patient.created",
"createdAt": "<string>",
"apiVersion": "v1",
"livemode": true,
"facilityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data": {}
}
],
"nextCursor": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}Elenca gli eventi
Scope: webhooks:read.
Gli eventi degli ultimi 30 giorni, nella stessa busta dei webhook. updatedSince filtra sull’istante in cui l’evento e’ diventato visibile. Si vedono solo i tipi coperti dagli scope della chiave. Gli eventi che non sono nati lasciano un events.skipped con data.reason (bulk_import: piu’ di 50 *.created insieme; no_active_key: un periodo senza chiavi attive, da data.from a data.to; error: il trigger e’ fallito), data.type, data.scope e data.count: da li’ si risincronizza con updatedSince sugli elenchi.
curl --request GET \
--url https://api.dentalspace.ai/v1/events \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dentalspace.ai/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dentalspace.ai/v1/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "patient.created",
"createdAt": "<string>",
"apiVersion": "v1",
"livemode": true,
"facilityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data": {}
}
],
"nextCursor": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Quante righe per pagina (1-200).
1 <= x <= 200Il nextCursor della pagina precedente, tale e quale.
500Solo le righe modificate da questo istante in poi (sincronizzazione incrementale).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Un tipo di evento del catalogo.
patient.created, patient.updated, patient.archived, appointment.created, appointment.rescheduled, appointment.confirmed, appointment.cancelled, appointment.checked_in, appointment.completed, appointment.no_show, treatment_plan.presented, treatment_plan.accepted, treatment_plan.rejected, invoice.issued, invoice.paid, payment.received, installment.overdue, lead.created, lead.converted, task.created, task.completed, conversation.message_received, conversation.handoff_requested, call.logged