Activity
An acitivity is something that has happened to a contact, such as a booking, purchase, or interaction. Activities are used to track the history of a contact and can be used to trigger automations or workflows. Activities can be created manually or automatically by the system. Each activity is associated with a contact and has a type, source, and date it happened, some acitivities may also have a booking or purchase associated with them.
Returns a list of activities across all contacts. The activities are ordered by the date they happened, with the most recent first.
Value for the x-api-key header parameter.
The collection page number
1Activity collection
Forbidden
GET /activities HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"id": 1,
"contact": "https://example.com/",
"happenedAt": "2025-11-21T22:57:28.270Z",
"createdAt": "2025-11-21T22:57:28.270Z",
"updatedAt": "2025-11-21T22:57:28.270Z",
"type": "Login",
"source": "text",
"booking": "https://example.com/",
"externalReference": "",
"purchase": "https://example.com/",
"spend": 0,
"giftCard": "https://example.com/",
"currencyCode": null
}
]Creates a new activity for a contact.
Value for the x-api-key header parameter.
An acitivity is something that has happened to a contact, such as a booking, purchase, or interaction. Activities are used to track the history of a contact and can be used to trigger automations or workflows. Activities can be created manually or automatically by the system. Each activity is associated with a contact and has a type, source, and date it happened, some acitivities may also have a booking or purchase associated with them.
https://example.com/https://example.com/""https://example.com/0https://example.com/Activity resource created
Invalid input
Forbidden
An error occurred
POST /activities HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 259
{
"contact": "https://example.com/",
"happenedAt": "2025-11-21T22:57:28.270Z",
"type": "Login",
"source": "text",
"booking": "https://example.com/",
"externalReference": "",
"purchase": "https://example.com/",
"spend": 0,
"giftCard": "https://example.com/",
"currencyCode": null
}{
"id": 1,
"contact": "https://example.com/",
"happenedAt": "2025-11-21T22:57:28.270Z",
"createdAt": "2025-11-21T22:57:28.270Z",
"updatedAt": "2025-11-21T22:57:28.270Z",
"type": "Login",
"source": "text",
"booking": "https://example.com/",
"externalReference": "",
"purchase": "https://example.com/",
"spend": 0,
"giftCard": "https://example.com/",
"currencyCode": null
}Retrieves a Activity resource.
Value for the x-api-key header parameter.
Activity identifier
Activity resource
Forbidden
Not found
GET /activities/{id} HTTP/1.1
Host: api.glu.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"id": 1,
"contact": "https://example.com/",
"happenedAt": "2025-11-21T22:57:28.270Z",
"createdAt": "2025-11-21T22:57:28.270Z",
"updatedAt": "2025-11-21T22:57:28.270Z",
"type": "Login",
"source": "text",
"booking": "https://example.com/",
"externalReference": "",
"purchase": "https://example.com/",
"spend": 0,
"giftCard": "https://example.com/",
"currencyCode": null
}Last updated