---
title: "Create an event type"
method: POST
path: "/event-types"
tags: ["Endpoints"]
---

# Create an event type

`POST /event-types`

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!](https://etrusted.com/en/contact/)

## Headers

- `Authorization` string, required

## Request body

- EventTypePostDto
  - `active` boolean — 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.
  - `name` string, required — The name of the event type. It needs to be unique for your account and must match our pattern.

## Response `201`

The created event type.

- EventTypeDto
  - `id` string, required — The event type ID as an *eTrusted* [UUID](/reference/uuid-prefixes.
  - `createdAt` string, date-time, required — The date and time when the event type was created, in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) and [RFC 3339](https://tools.ietf.org/html/rfc3339) compliant format `yyyy-MM-dd’T’HH:mm:ss.SSSZ`.
  - `updatedAt` string, date-time, required — The date and time when the event type was last modified, in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) and [RFC 3339](https://tools.ietf.org/html/rfc3339) compliant format `yyyy-MM-dd’T’HH:mm:ss.SSSZ`.
  - `active` boolean, 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.
  - `name` string, 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!](https://etrusted.com/en/contact/)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `409` — Conflict

---

[API](https://skmtc.net/etrusted/apis/accounts-api.md) · [All operations](https://skmtc.net/etrusted/apis/accounts-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/etrusted/accounts-api/versions/649ef7dac98c/schema)
