---
title: "Create a new Usage Event"
method: POST
path: "/usage-events"
tags: ["Usage Events"]
---

# Create a new Usage Event

`POST /usage-events`

Create a new Usage Event

## Headers

- `Authorization` string, required
- `Sequence-Version` '2024-07-30'

## Request body

- CreateUsageEventEndpointCreateUsageEventRequestModel
  - `customerEventId` string, nullable — ID provided by customer. Another event with the same customer event ID will supersede this one.
  - `customerAlias` string, required — End-customer alias or ID
  - `eventType` string, required — Event type. This can be referenced from a usage metric.
  - `eventTimestamp` string, nullable — Event timestamp, in ISO 8601 format.
  - `eventProperties` object — Event properties. These can be referenced by a usage metric.

## Response `201`

Created

- CreateUsageEventEndpointProductCreateUsageEventResponseModel
  - `id` string, required — Unique ID
  - `customerEventId` string, required — ID provided by customer. Another event with the same customer event ID will supersede this one.
  - `customerAlias` string, required — End-customer alias or ID
  - `eventType` string, required — Event type. This can be referenced from a usage metric.
  - `sequenceAccountId` string, required — Sequence account ID
  - `eventTimestamp` string, required — Event timestamp, in ISO 8601 format.
  - `eventProperties` object, required — Event properties. These can be referenced by a usage metric.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/sequencehq/apis/sequence.md) · [All operations](https://skmtc.net/sequencehq/apis/sequence/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequencehq/sequence/versions/cae64b02699f/schema)
