Skip to main content
POST
Create an Event Domain

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The input for creating a Domain

name
string
required

The domain's name

slug
string

The domain's slug. If not specified, one will be generated.

description
string

The domain's description

onUndeclaredSchema
enum<string>

What happens to events that aren't defined in the domain. One of ALLOW_EVENT or BLOCK_EVENT. Optional, defaults to ALLOW_EVENT.

Available options:
ALLOW_EVENT,
BLOCK_EVENT
events
object[]

The definitions for the events in the domain.

components
object[]

The reusable components defined in the domain.

Response

Ok

A collection of event and component schemas used for validating events.

id
string
required

The domain's id

name
string
required

The domain's name

workspaceId
number<double>
required

The id of the workspace that the domain belongs to

createdAt
string<date-time>
required

The timestamp when the domain was created

updatedAt
string<date-time>
required

The timestamp when the domain was last updated

eventSources
object[]
required

The Event Sources linked to the Domain.

slug
string

The domain's slug. If not specified, one will be generated.

description
string

The domain's description

onUndeclaredSchema
enum<string>

What happens to events that aren't defined in the domain. One of ALLOW_EVENT or BLOCK_EVENT. Optional, defaults to ALLOW_EVENT.

Available options:
ALLOW_EVENT,
BLOCK_EVENT
schemaVersionPath
string[]

Path into the event payload where the schema version is read/written. Used by codegen wrappers to inject the version they were generated from.

events
object[]

The definitions for the events in the domain.

components
object[]

The reusable components defined in the domain.