webhook-events

Embed
Preview of the card
<a href="https://gaiadesk.net/docs/ref-webhook-events"><img src="https://gaiadesk.net/docs/_api/public/orgs/89a5df38-be2c-4963-8823-21d4bd40a2ab/spaces/57b99ea0-d45a-4986-8aa6-6b0683c9fe1d/pages/9aa8864d-dc3d-41ea-a0ab-717e15df6a4b/social-card.svg?v=3e7ae33eec8b" alt="webhook-events" width="600" height="315"></a>
WEBHOOKsupport.request.created

An agent (or your backend) asked a customer's app for a session.

Parameters

GaiaDesk-Signaturestringheaderrequired
t=<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.

idstringrequired
typestringrequired
support.request.created | support.request.accepted | support.request.declined | support.request.expired
createdintegerrequired
livemodebooleanrequired
dataobjectrequired
Show child parameters
support_requestobjectrequired
An agent-initiated session request. state is pending, then accepted (session_id names the session), declined or expired.
Show child parameters
idstringrequired
objectstringrequired
support_request
livemodebooleanrequired
statestringrequired
pending | accepted | declined | expired
external_idstringrequired
modestringrequired
view: 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).
view | cobrowse
messagestringrequired
ownerstringrequired
The account the session will belong to (the agent's, or the API key's).
created_bystringrequired
created_atintegerrequired
expires_atintegerrequired
decided_atintegerrequired
session_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.
WEBHOOKsupport.request.accepted

The customer allowed a request; `data.support_request.session_id` is the new session.

Parameters

GaiaDesk-Signaturestringheaderrequired
t=<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.

idstringrequired
typestringrequired
support.request.created | support.request.accepted | support.request.declined | support.request.expired
createdintegerrequired
livemodebooleanrequired
dataobjectrequired
Show child parameters
support_requestobjectrequired
An agent-initiated session request. state is pending, then accepted (session_id names the session), declined or expired.
Show child parameters
idstringrequired
objectstringrequired
support_request
livemodebooleanrequired
statestringrequired
pending | accepted | declined | expired
external_idstringrequired
modestringrequired
view: 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).
view | cobrowse
messagestringrequired
ownerstringrequired
The account the session will belong to (the agent's, or the API key's).
created_bystringrequired
created_atintegerrequired
expires_atintegerrequired
decided_atintegerrequired
session_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.
WEBHOOKsupport.request.declined

The customer declined a request.

Parameters

GaiaDesk-Signaturestringheaderrequired
t=<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.

idstringrequired
typestringrequired
support.request.created | support.request.accepted | support.request.declined | support.request.expired
createdintegerrequired
livemodebooleanrequired
dataobjectrequired
Show child parameters
support_requestobjectrequired
An agent-initiated session request. state is pending, then accepted (session_id names the session), declined or expired.
Show child parameters
idstringrequired
objectstringrequired
support_request
livemodebooleanrequired
statestringrequired
pending | accepted | declined | expired
external_idstringrequired
modestringrequired
view: 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).
view | cobrowse
messagestringrequired
ownerstringrequired
The account the session will belong to (the agent's, or the API key's).
created_bystringrequired
created_atintegerrequired
expires_atintegerrequired
decided_atintegerrequired
session_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.
WEBHOOKsupport.request.expired

A request went unanswered for 10 minutes.

Parameters

GaiaDesk-Signaturestringheaderrequired
t=<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.

idstringrequired
typestringrequired
support.request.created | support.request.accepted | support.request.declined | support.request.expired
createdintegerrequired
livemodebooleanrequired
dataobjectrequired
Show child parameters
support_requestobjectrequired
An agent-initiated session request. state is pending, then accepted (session_id names the session), declined or expired.
Show child parameters
idstringrequired
objectstringrequired
support_request
livemodebooleanrequired
statestringrequired
pending | accepted | declined | expired
external_idstringrequired
modestringrequired
view: 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).
view | cobrowse
messagestringrequired
ownerstringrequired
The account the session will belong to (the agent's, or the API key's).
created_bystringrequired
created_atintegerrequired
expires_atintegerrequired
decided_atintegerrequired
session_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.
WEBHOOKwebhook.test

A test ping, sent only when asked for (`testWebhook`); never subscribed to.

Parameters

GaiaDesk-Signaturestringheaderrequired
t=<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.

idstringrequired
typerequired
createdintegerrequired
dataobjectrequired
Show child parameters
webhookobjectrequired
Show child parameters
idstringrequired
urlstringrequired
{
  "id": "string",
  "type": {},
  "created": 0,
  "data": {
    "webhook": {
      "id": "string",
      "url": "string"
    }
  }
}

Responses

200 Any 2xx acknowledges the delivery.
Updated