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.

List all activities

get

Returns a list of activities across all contacts. The activities are ordered by the date they happened, with the most recent first.

Authorizations
Query parameters
pageintegerOptional

The collection page number

Default: 1
happenedAt[before]stringOptional
happenedAt[strictly_before]stringOptional
happenedAt[after]stringOptional
happenedAt[strictly_after]stringOptional
createdAt[before]stringOptional
createdAt[strictly_before]stringOptional
createdAt[after]stringOptional
createdAt[strictly_after]stringOptional
updatedAt[before]stringOptional
updatedAt[strictly_before]stringOptional
updatedAt[after]stringOptional
updatedAt[strictly_after]stringOptional
typestring · enumOptionalPossible values:
Responses
200

Activity collection

get
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
  }
]

Create an activity

post

Creates a new activity for a contact.

Authorizations
Body

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.

idintegerRead-onlyOptional
contactstring · iri-referenceOptionalExample: https://example.com/
happenedAtstring · date-timeOptional
typestring · enumOptionalPossible values:
sourcestringOptional
bookingstring | nullOptionalExample: https://example.com/
externalReferencestringOptionalDefault: ""
purchasestring | nullOptionalExample: https://example.com/
spendintegerOptionalDefault: 0Example: 0
giftCardstring | nullOptionalExample: https://example.com/
currencyCodestring | nullOptional
Responses
201

Activity resource created

post
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
}

Retrieve an activity

get

Retrieves a Activity resource.

Authorizations
Path parameters
idstringRequired

Activity identifier

Responses
200

Activity resource

get
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
}