v1

latestOpenAPI 3.0.12026-07-243266138.0 KB
Endpoints

Create an event type

This endpoint creates a new event type representing a touchpoint along your customer journey.

Please contact us in case you are unsure adding more event types!

post/event-types

Headers

Authorizationstring required

An authorisation header containing meta information, see OAuth2.

Request body

activeboolean

A boolean value that indicates whether the event type is active or not.

If an event type is inactive, events for this type will no longer be accepted.

namestring required

The name of the event type.

It needs to be unique for your account and must match our pattern.

Example request

{
  "active": true,
  "name": "after_sales"
}

Response

The created event type.

idstring required

The event type ID as an eTrusted [UUID](/reference/uuid-prefixes.

createdAtstring date-time required

The date and time when the event type was created, in the ISO 8601 and RFC 3339 compliant format yyyy-MM-dd’T’HH:mm:ss.SSSZ.

updatedAtstring date-time required

The date and time when the event type was last modified, in the ISO 8601 and RFC 3339 compliant format yyyy-MM-dd’T’HH:mm:ss.SSSZ.

activeboolean required

A boolean value that indicates whether the event type is active or not.

If an event type is inactive, events for this type will not be accepted anymore.

namestring required

The name of the event type.

checkout is the default event type for every account.

Please contact us to add more event types for you!

Example response

{
  "id": "ety-b8a7dd0b-2858-49e9-822c-8f4321caae1e",
  "createdAt": "2023-02-14T17:15:30.000Z",
  "updatedAt": "2023-02-14T19:45:50.100Z",
  "active": true,
  "name": "after_sales"
}