Credit
Profile
Leaderboard
Webhook
Webhook Secret
Webhook
Create Webhook
Create a new webhook
POST
/
webhook
curl --request POST \
--url https://api.openformat.tech/v1/webhook \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"url": "https://api.example.com/webhook",
"events": [
"transaction"
]
}'
{
"status": "success",
"webhook": {
"id": 123,
"url": "https://api.example.com/webhook",
"events": [
"transaction"
],
"disabled": true,
"disabled_at": "2024-01-23 01:23:45.55338+00",
"created_at": "2024-01-23 01:23:45.55338+00"
}
}
{
"status": "success",
"webhook": {
"id": 123,
"url": "https://api.example.com/webhook",
"events": [
"transaction"
],
"disabled": true,
"disabled_at": "2024-01-23 01:23:45.55338+00",
"created_at": "2024-01-23 01:23:45.55338+00"
}
}
Authorizations
Body
application/json
Response
201
application/json
Created webhook
The response is of type object
.
curl --request POST \
--url https://api.openformat.tech/v1/webhook \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"url": "https://api.example.com/webhook",
"events": [
"transaction"
]
}'
{
"status": "success",
"webhook": {
"id": 123,
"url": "https://api.example.com/webhook",
"events": [
"transaction"
],
"disabled": true,
"disabled_at": "2024-01-23 01:23:45.55338+00",
"created_at": "2024-01-23 01:23:45.55338+00"
}
}
Assistant
Responses are generated using AI and may contain mistakes.