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.
The collection page number
1
Activity 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-08-20T03:44:53.834Z",
"createdAt": "2025-08-20T03:44:53.834Z",
"updatedAt": "2025-08-20T03:44:53.834Z",
"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.
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/
0
Example: 0
https://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-08-20T03:44:53.834Z",
"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-08-20T03:44:53.834Z",
"createdAt": "2025-08-20T03:44:53.834Z",
"updatedAt": "2025-08-20T03:44:53.834Z",
"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.
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-08-20T03:44:53.834Z",
"createdAt": "2025-08-20T03:44:53.834Z",
"updatedAt": "2025-08-20T03:44:53.834Z",
"type": "Login",
"source": "text",
"booking": "https://example.com/",
"externalReference": "",
"purchase": "https://example.com/",
"spend": 0,
"giftCard": "https://example.com/",
"currencyCode": null
}