Docs / API

Webhooks

A webhook sends data from Touchpoint to your system. Touchpoint sends an HTTP request to an address that you give when data of an event (gathering in the schema) changes. You do not have to ask for the data with a query.

A webhook belongs to one event. It receives the changes of that event only.

Webhook types

Touchpoint sends four types of webhook notifications. Each webhook type has a name. Touchpoint puts the name in the X-Touchpoint-Event header of each notification.

Webhook type X-Touchpoint-Event Touchpoint sends a notification when
Agenda Session Bookmarks agenda_session_bookmarks An attendee bookmarks an agenda session, or removes a bookmark.
Check Ins check_ins An attendee checks in.
Leads leads A lead is created or changed.
Survey Responses survey_responses A survey response is created or changed.

Set up a webhook

Certain sets up webhooks for you. Send these values to your Certain contact:

  • The event that the webhook belongs to.
  • A name for the webhook.
  • The address that receives the requests.
  • Each webhook type that you want. See Webhook types.

Touchpoint adds http:// to an address that has no scheme. Use an https:// address.

One webhook can have more than one webhook type. An event can have more than one webhook. Each webhook that has the webhook type receives its own notification.

The request

Touchpoint sends each notification as an HTTP POST request. The body is JSON.

Header Content
Content-Type application/json
Accept application/json
User-Agent Touchpoint-Webhook
X-Touchpoint-Event The name of the webhook type.
X-Touchpoint-Delivery A unique identifier (UUID). Each request has its own value.
X-Touchpoint-Timestamp The time when Touchpoint sent the request, as Unix time in seconds.

The body has the same shape for each webhook type. It has the key action and one key for the data. The name of the key for the data depends on the webhook type.

{
  "action": "created",
  "<resource>": { }
}

Touchpoint reads the data with a GraphQL query after the change. The sections that follow show the query of each webhook type and an example body. The names in the body are the names in the query. They are lower case words that have underscores, for example first_name. They are not the camelCase names of the public API. Fields that have no value are null. An id is a string. A time is a Datetime value. See Scalars.

Agenda session bookmarks

The action is created when an attendee bookmarks an agenda session. The action is removed when an attendee removes the bookmark. The data is in the key agenda_session_bookmark.

query($id: ID!, $gathering_id: ID!) {
  bookmarked_agenda_session(id: $id, gathering_id: $gathering_id) {
    updated_at
    attendee {
      id
      first_name
      last_name
      external_id
      external_source
    }
    agenda_session {
      id
      name
      external_id
      external_source
    }
  }
}
{
  "action": "created",
  "agenda_session_bookmark": {
    "updated_at": "2026-06-14T09:30:12Z",
    "attendee": {
      "id": "101",
      "first_name": "Morgan",
      "last_name": "Hayes",
      "external_id": "crm-4471",
      "external_source": "crm"
    },
    "agenda_session": {
      "id": "501",
      "name": "Opening keynote",
      "external_id": null,
      "external_source": null
    }
  }
}

Check-ins

The action is created. The data is in the key check_in. A check-in at an agenda session has exhibitor set to null. A check-in at an exhibitor has agenda_session set to null.

query($id: ID!, $gathering_id: ID!) {
  check_in(id: $id, gathering_id: $gathering_id) {
    checked_in_at
    checked_out_at
    created_at
    attendee {
      id
      first_name
      last_name
      external_id
      external_source
    }
    agenda_session {
      id
      name
      external_id
      external_source
    }
    exhibitor {
      id
      name
    }
  }
}
{
  "action": "created",
  "check_in": {
    "checked_in_at": "2026-06-15T14:02:11Z",
    "checked_out_at": null,
    "created_at": "2026-06-15T14:02:12Z",
    "attendee": {
      "id": "101",
      "first_name": "Morgan",
      "last_name": "Hayes",
      "external_id": null,
      "external_source": null
    },
    "agenda_session": {
      "id": "501",
      "name": "Opening keynote",
      "external_id": null,
      "external_source": null
    },
    "exhibitor": null
  }
}

Leads

The action is created or updated. The data is in the key lead. The field_values list holds the values of the custom fields of the lead.

query($id: ID!, $gathering_id: ID!) {
  lead(id: $id, gathering_id: $gathering_id) {
    id
    lead_code
    first_name
    last_name
    address
    street1
    street2
    city
    state
    postal_code
    phone
    email
    notes
    created_at
    updated_at
    scanned_at
    scanned_by {
      id
      first_name
      last_name
      organization
    }
    exhibitor {
      id
      name
      external_id
    }
    field_values {
      id
      value
      field_definition {
        id
        field_type
        label
        options
      }
    }
  }
}
{
  "action": "created",
  "lead": {
    "id": "9301",
    "lead_code": "L-48213",
    "first_name": "Jordan",
    "last_name": "Patel",
    "address": null,
    "street1": null,
    "street2": null,
    "city": "Austin",
    "state": "TX",
    "postal_code": "78701",
    "phone": "+1 555 0100",
    "email": "jordan.patel@example.com",
    "notes": "Wants a demo next week.",
    "created_at": "2026-06-15T15:20:45Z",
    "updated_at": "2026-06-15T15:20:45Z",
    "scanned_at": "2026-06-15T15:20:40Z",
    "scanned_by": {
      "id": "102",
      "first_name": "Riley",
      "last_name": "Chen",
      "organization": "Acme Robotics"
    },
    "exhibitor": {
      "id": "701",
      "name": "Acme Robotics",
      "external_id": null
    },
    "field_values": [
      {
        "id": "55001",
        "value": "Option A|Option B",
        "field_definition": {
          "id": "3001",
          "field_type": "choice",
          "label": "Interest",
          "options": { "choices": ["Option A", "Option B"], "multiple": true }
        }
      }
    ]
  }
}

Survey responses

The action is created or updated. The data is in the key survey_response. The answers list holds one entry for each answer. The agenda_session is null when the survey is not tied to an agenda session.

query($id: ID!, $gathering_id: ID!) {
  survey_response(id: $id, gathering_id: $gathering_id) {
    id
    created_at
    updated_at
    survey {
      id
      name
    }
    attendee {
      id
      first_name
      last_name
      external_id
      external_source
      login_email
    }
    agenda_session {
      id
      name
      external_id
      external_source
    }
    answers {
      id
      answer
      question {
        id
        name
      }
    }
  }
}
{
  "action": "created",
  "survey_response": {
    "id": "7701",
    "created_at": "2026-06-15T16:10:03Z",
    "updated_at": "2026-06-15T16:10:03Z",
    "survey": { "id": "301", "name": "Session feedback" },
    "attendee": {
      "id": "101",
      "first_name": "Morgan",
      "last_name": "Hayes",
      "external_id": null,
      "external_source": null,
      "login_email": "morgan.hayes@example.com"
    },
    "agenda_session": {
      "id": "501",
      "name": "Opening keynote",
      "external_id": null,
      "external_source": null
    },
    "answers": [
      {
        "id": "88001",
        "answer": "Very useful",
        "question": { "id": "4001", "name": "How useful was the session?" }
      }
    ]
  }
}

Answer a request

Answer each request with an HTTP status code from 200 to 202. Touchpoint then counts the delivery as done. The body of your answer is not used.

Touchpoint counts the delivery as failed in these cases:

  • Your system answers with any other status code. A redirect (for example 301 or 302) is a failure. Touchpoint does not follow it.
  • Touchpoint cannot connect to your address. Touchpoint waits up to 8 seconds for the connection.
  • Your system sends no data for 5 seconds after the connection is open.

Answer fast. Do your own processing after you send the answer.

Retries

Touchpoint makes up to five attempts to deliver each request to each webhook. Touchpoint stops after the fifth attempt.

The time between attempts grows. Touchpoint waits about 5 minutes before the second attempt. The waits that follow are about 10, 15, and 20 minutes. Each wait can be up to one minute longer. The fifth attempt starts about 50 minutes after the first.

Touchpoint can send requests at the same time. A retry can arrive after a request for a later change. Do not assume that requests arrive in the order of the changes.