Skip to content

Create a webhook endpoint

POST
/webhooks
curl --request POST \
--url https://api.invogi.com/v1/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://example.com", "events": [ "example" ] }'
X-Invogi-Organization
string format: uuid

For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.

Media typeapplication/json
object
url
required
string format: uri
events
required
Array<string>

Example generated

{
"url": "https://example.com",
"events": [
"example"
]
}

Webhook endpoint created

Media typeapplication/json
object
id
required
string
url
required
string format: uri
enabled
required
boolean
events
Array<string>
createdAt
string format: date-time
secret
required

Signing secret returned only on creation; store it securely.

string

Example generated

{
"id": "example",
"url": "https://example.com",
"enabled": true,
"events": [
"example"
],
"createdAt": "2026-04-15T12:00:00Z",
"secret": "example"
}

Invalid request

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Missing or invalid API key

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}