Create Endpoint
POST
/api/webhooks/endpoints
const url = 'https://app.lionrapid.com/api/webhooks/endpoints';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"project_uuid":"example","url":"example","format":"generic","events":["example"],"namespaces":["example"],"secret":"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://app.lionrapid.com/api/webhooks/endpoints \ --header 'Content-Type: application/json' \ --data '{ "project_uuid": "example", "url": "example", "format": "generic", "events": [ "example" ], "namespaces": [ "example" ], "secret": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WebhookEndpointResponse
An endpoint WITH its secret. Returned by CREATE and ROTATE only — never by listing.
secret is the HMAC key for a generic receiver’s signature check, and is empty for a Slack
endpoint, where the URL itself is the credential. The route is PM-gated.
object
endpoint_uuid
required
Endpoint Uuid
string
url
required
Url
string
format
required
Format
string
events
required
Events
Array<string>
namespaces
required
Namespaces
Array<string>
active
required
Active
boolean
created_at
required
Created At
number
secret
required
Secret
string
Examplegenerated
{ "endpoint_uuid": "example", "url": "example", "format": "example", "events": [ "example" ], "namespaces": [ "example" ], "active": true, "created_at": 1, "last_delivery_channel": "example", "last_delivery_outcome": "example", "last_delivery_at": 1, "last_delivery_ok_at": 1, "consecutive_delivery_failures": 1, "secret": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}