A lead is a sales lead that an exhibitor captured at an event (gathering in the schema, selected with gatheringId). A lead usually comes from a scan of the badge of an attendee. The Lead type holds the data of a lead.
The API reads leads. It has no mutation that creates, changes, or deletes a lead.
Queries
| Field | Use |
|---|---|
leads |
Lists the leads of an event. |
lead |
Returns one lead of an event. |
Both queries take gatheringId as an ID!. lead also takes the id of the lead as an ID!.
The fields of a lead
| Field | Content |
|---|---|
id |
The id of the lead. |
gatheringId |
The id of the event of the lead. |
exhibitor |
The exhibitor that captured the lead. |
scannedBy |
The attendee who did the scan. |
leadCode |
The code that the scan captured. It is usually the badge code of the attendee. |
firstName, lastName, organization, jobTitle
|
The name, the company, and the job title of the lead. |
email, phone
|
The contact data of the lead. |
address, street1, street2, city, state, postalCode
|
The address of the lead. |
notes |
Free text about the lead. |
scannedAt |
The time of the scan. |
createdAt, updatedAt
|
The times when Touchpoint created the lead and last changed it. |
fieldValues |
The values of the custom fields of the lead. See Types. |
List the leads
query ListLeads($gatheringId: ID!) {
leads(gatheringId: $gatheringId) {
id
leadCode
firstName
lastName
organization
email
notes
scannedAt
exhibitor {
id
name
}
scannedBy {
id
firstName
lastName
}
}
}
{
"data": {
"leads": [
{
"id": "9101",
"leadCode": "A1B2C3",
"firstName": "Morgan",
"lastName": "Hayes",
"organization": "Example Corp",
"email": "morgan@example.com",
"notes": "Wants a demo next week.",
"scannedAt": "2026-06-15T16:45:10Z",
"exhibitor": { "id": "701", "name": "Acme Robotics" },
"scannedBy": { "id": "102", "firstName": "Jordan", "lastName": "Patel" }
}
]
}
}
Read one lead
query ReadLead($gatheringId: ID!, $id: ID!) {
lead(gatheringId: $gatheringId, id: $id) {
id
firstName
lastName
scannedAt
fieldValues {
value
fieldDefinition {
label
}
}
}
}
{
"data": {
"lead": {
"id": "9101",
"firstName": "Morgan",
"lastName": "Hayes",
"scannedAt": "2026-06-15T16:45:10Z",
"fieldValues": [
{ "value": "Robotics", "fieldDefinition": { "label": "Area of interest" } }
]
}
}
}
Related types
-
Exhibitoris described in Exhibitors. -
Attendeeis described in Attendees. -
FieldValueandFieldDefinitionare shared types. See Types.
This article is a copy of Leads in the Touchpoint API documentation.
Comments
0 comments
Please sign in to leave a comment.