v2
latestOpenAPI 3.1.02026-07-312303692.4 MBCreate Message
Creates a new message and dispatches it to all of the application's endpoints.
The eventId is an optional custom unique ID. It's verified to be unique only up to a day, after that no verification will be made. If a message with the same eventId already exists for the application, a 409 conflict error will be returned.
The eventType indicates the type and schema of the event. All messages of a certain eventType are expected to have the same schema. Endpoints can choose to only listen to specific event types. Messages can also have channels, which similar to event types let endpoints filter by them. Unlike event types, messages can have multiple channels, and channels don't imply a specific message content or schema.
The payload property is the webhook's body (the actual webhook message). Svix supports payload sizes of up to 1MiB, though it's generally a good idea to keep webhook payloads small, probably no larger than 40kb.
Path parameters
The Application's ID or UID.
The Application's ID or UID.
Query parameters
When true, message payloads are included in the response.
When true, message payloads are included in the response.
Headers
The request's idempotency key
Request body
Example request
{
"eventId": "unique-identifier",
"eventType": "user.signup",
"payload": {
"type": "user.created",
"email": "test@example.com",
"username": "test_user"
},
"channels": [
"project_123",
"group_2"
],
"application": {
"name": "My first application",
"uid": "unique-identifier"
},
"tags": [
"my_tag",
"other"
],
"payloadRetentionPeriod": 90
}Response
Example response
{
"eventId": "unique-identifier",
"eventType": "user.signup",
"payload": {
"type": "user.created",
"email": "test@example.com",
"username": "test_user"
},
"channels": [
"project_123",
"group_2"
],
"id": "msg_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"tags": [
"project_1337"
]
}