Register a new webhook
POST/webhook
Register a new webhook
Request
- application/json
Body
Webhook registration data
The body for the webhook request, supporting variables.
Identifier of the resource to attach webhook to
The URL to which the webhook will send event data.
Possible values: [submission_approved
]
Event type that triggers the webhook.
Custom headers to include in the webhook request, such as authentication tokens.
Possible values: [schema
]
Resource to attach the webhook to
Responses
- 201
- 400
- 401
- 403
- 404
- 500
- default
Webhook successfully created
- application/json
- Schema
- Example (from schema)
Schema
The body for the webhook request, supporting variables.
Identifier of the resource to attach webhook to
Time representation of entity creation
Unique identifier of the project to which webhook is related
The URL to which the webhook will send event data.
Possible values: [submission_approved
]
Event type that triggers the webhook.
Custom headers to include in the webhook request, such as authentication tokens.
Unique identifier of the webhook
Possible values: [schema
]
Resource to attach the webhook to
{
"body": "{\"userId\": \"$userId\", \"resource\": \"$resource\", \"resourceId\": \"$resourceId\"}",
"resourceId": "s12RHo2ET",
"createdAt": "2024-01-01T09:00:00.00Z",
"projectId": "p2Duhf5N6",
"url": "https://example.com/webhook/$userId",
"eventType": "submission_approved",
"headers": "{\"Bearer\": \"$bearertoken\", \"customHeader\": \"$customHeader\"}",
"id": "a1fb86bad-de7c-4ed7-a1c6-538db2b0c9ed",
"resource": "schema"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "An unexpected error occured"
}