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