Create a webhook endpoint
POST
/webhooks
const url = 'https://api.invogi.com/v1/webhooks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"url":"https://example.com","events":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”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.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
url
required
string format: uri
events
required
Array<string>
Example generated
{ "url": "https://example.com", "events": [ "example" ]}Responses
Section titled “Responses”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
Missing or invalid API key
Media typeapplication/json