Skip to content

Unsubscribe from an event store

DELETE
/api/event-stores/{eventStoreName}/subscriptions/{subscriptionId}

Removes an existing subscription to stop receiving events

eventStoreName
required

Event store name (automatically scoped to your organization)

string

Event store name (automatically scoped to your organization)

subscriptionId
required

Unique identifier for the subscription to remove

string

Unique identifier for the subscription to remove

Subscription successfully removed

object
success
required
boolean
message
required
string
Examples
{
"success": true,
"message": "Subscription successfully removed"
}

Unauthorized: Organization ID not found in authentication context

object
error
required

Error type

string
message
required

Human-readable error message

string
details

Additional error details

object
key
additional properties
nullable
Examples
{
"error": "UNAUTHORIZED",
"message": "Unauthorized"
}

Subscription or event store not found

object
error
required

Error type

string
message
required

Human-readable error message

string
details

Additional error details

object
key
additional properties
nullable
Examples
{
"error": "SUBSCRIPTION_NOT_FOUND",
"message": "The specified subscription does not exist",
"details": {
"eventStoreName": "production",
"subscriptionId": "sub_nonexistent"
}
}

Internal server error

object
error
required

Error type

string
message
required

Human-readable error message

string
details

Additional error details

object
key
additional properties
nullable