webhook-events
WEBHOOK
support.request.createdAn agent (or your backend) asked a customer's app for a session.
Parameters
GaiaDesk-Signaturestringheaderrequiredt=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" keyed with the webhook secret>. Reject a delivery whose t is more than five minutes off, and de-duplicate by the event id.Payload
application/json
support.request.created, .accepted, .declined and .expired. id is stable across retries.
idstringrequiredtypestringrequiredcreatedintegerrequiredlivemodebooleanrequireddataobjectrequiredShow child parameters
support_requestobjectrequiredAn agent-initiated session request.
state is pending, then accepted (session_id names the session), declined or expired.Show child parameters
idstringrequiredobjectstringrequiredlivemodebooleanrequiredstatestringrequiredexternal_idstringrequiredmodestringrequiredview: the agent sees the shared tab. cobrowse: the agent may also point, highlight, click, scroll and type INSIDE the page (applied by the embed to its own DOM, never as OS input; the customer sees it and can stop it).messagestringrequiredownerstringrequiredThe account the session will belong to (the agent's, or the API key's).
created_bystringrequiredcreated_atintegerrequiredexpires_atintegerrequireddecided_atintegerrequiredsession_idstringrequired{
"id": "string",
"type": "support.request.created",
"created": 0,
"livemode": true,
"data": {
"support_request": {
"id": "string",
"object": "support_request",
"livemode": true,
"state": "pending",
"external_id": "string",
"mode": "view",
"message": "string",
"owner": "string",
"created_by": "string",
"created_at": 0,
"expires_at": 0,
"decided_at": 0,
"session_id": "string"
}
}
}Responses
200 Any 2xx acknowledges the delivery.
WEBHOOK
support.request.acceptedThe customer allowed a request; `data.support_request.session_id` is the new session.
Parameters
GaiaDesk-Signaturestringheaderrequiredt=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" keyed with the webhook secret>. Reject a delivery whose t is more than five minutes off, and de-duplicate by the event id.Payload
application/json
support.request.created, .accepted, .declined and .expired. id is stable across retries.
idstringrequiredtypestringrequiredcreatedintegerrequiredlivemodebooleanrequireddataobjectrequiredShow child parameters
support_requestobjectrequiredAn agent-initiated session request.
state is pending, then accepted (session_id names the session), declined or expired.Show child parameters
idstringrequiredobjectstringrequiredlivemodebooleanrequiredstatestringrequiredexternal_idstringrequiredmodestringrequiredview: the agent sees the shared tab. cobrowse: the agent may also point, highlight, click, scroll and type INSIDE the page (applied by the embed to its own DOM, never as OS input; the customer sees it and can stop it).messagestringrequiredownerstringrequiredThe account the session will belong to (the agent's, or the API key's).
created_bystringrequiredcreated_atintegerrequiredexpires_atintegerrequireddecided_atintegerrequiredsession_idstringrequired{
"id": "string",
"type": "support.request.created",
"created": 0,
"livemode": true,
"data": {
"support_request": {
"id": "string",
"object": "support_request",
"livemode": true,
"state": "pending",
"external_id": "string",
"mode": "view",
"message": "string",
"owner": "string",
"created_by": "string",
"created_at": 0,
"expires_at": 0,
"decided_at": 0,
"session_id": "string"
}
}
}Responses
200 Any 2xx acknowledges the delivery.
WEBHOOK
support.request.declinedThe customer declined a request.
Parameters
GaiaDesk-Signaturestringheaderrequiredt=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" keyed with the webhook secret>. Reject a delivery whose t is more than five minutes off, and de-duplicate by the event id.Payload
application/json
support.request.created, .accepted, .declined and .expired. id is stable across retries.
idstringrequiredtypestringrequiredcreatedintegerrequiredlivemodebooleanrequireddataobjectrequiredShow child parameters
support_requestobjectrequiredAn agent-initiated session request.
state is pending, then accepted (session_id names the session), declined or expired.Show child parameters
idstringrequiredobjectstringrequiredlivemodebooleanrequiredstatestringrequiredexternal_idstringrequiredmodestringrequiredview: the agent sees the shared tab. cobrowse: the agent may also point, highlight, click, scroll and type INSIDE the page (applied by the embed to its own DOM, never as OS input; the customer sees it and can stop it).messagestringrequiredownerstringrequiredThe account the session will belong to (the agent's, or the API key's).
created_bystringrequiredcreated_atintegerrequiredexpires_atintegerrequireddecided_atintegerrequiredsession_idstringrequired{
"id": "string",
"type": "support.request.created",
"created": 0,
"livemode": true,
"data": {
"support_request": {
"id": "string",
"object": "support_request",
"livemode": true,
"state": "pending",
"external_id": "string",
"mode": "view",
"message": "string",
"owner": "string",
"created_by": "string",
"created_at": 0,
"expires_at": 0,
"decided_at": 0,
"session_id": "string"
}
}
}Responses
200 Any 2xx acknowledges the delivery.
WEBHOOK
support.request.expiredA request went unanswered for 10 minutes.
Parameters
GaiaDesk-Signaturestringheaderrequiredt=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" keyed with the webhook secret>. Reject a delivery whose t is more than five minutes off, and de-duplicate by the event id.Payload
application/json
support.request.created, .accepted, .declined and .expired. id is stable across retries.
idstringrequiredtypestringrequiredcreatedintegerrequiredlivemodebooleanrequireddataobjectrequiredShow child parameters
support_requestobjectrequiredAn agent-initiated session request.
state is pending, then accepted (session_id names the session), declined or expired.Show child parameters
idstringrequiredobjectstringrequiredlivemodebooleanrequiredstatestringrequiredexternal_idstringrequiredmodestringrequiredview: the agent sees the shared tab. cobrowse: the agent may also point, highlight, click, scroll and type INSIDE the page (applied by the embed to its own DOM, never as OS input; the customer sees it and can stop it).messagestringrequiredownerstringrequiredThe account the session will belong to (the agent's, or the API key's).
created_bystringrequiredcreated_atintegerrequiredexpires_atintegerrequireddecided_atintegerrequiredsession_idstringrequired{
"id": "string",
"type": "support.request.created",
"created": 0,
"livemode": true,
"data": {
"support_request": {
"id": "string",
"object": "support_request",
"livemode": true,
"state": "pending",
"external_id": "string",
"mode": "view",
"message": "string",
"owner": "string",
"created_by": "string",
"created_at": 0,
"expires_at": 0,
"decided_at": 0,
"session_id": "string"
}
}
}Responses
200 Any 2xx acknowledges the delivery.
WEBHOOK
webhook.testA test ping, sent only when asked for (`testWebhook`); never subscribed to.
Parameters
GaiaDesk-Signaturestringheaderrequiredt=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" keyed with the webhook secret>. Reject a delivery whose t is more than five minutes off, and de-duplicate by the event id.Payload
application/json
webhook.test: the ping testWebhook sends.
idstringrequiredtyperequiredcreatedintegerrequireddataobjectrequiredShow child parameters
webhookobjectrequiredShow child parameters
idstringrequiredurlstringrequired{
"id": "string",
"type": {},
"created": 0,
"data": {
"webhook": {
"id": "string",
"url": "string"
}
}
}Responses
200 Any 2xx acknowledges the delivery.
Updated