PUT
/
webhook
/
{id}
curl --request PUT \
  --url https://api.openformat.tech/v1/webhook/{id} \
  --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

X-API-KEY
string
header
required

Path Parameters

id
string
required

Webhook id

Example:

"123"

Body

application/json
url
string

Webhook URL to send the payload, only HTTPS supported

Minimum length: 1
Example:

"https://api.example.com/webhook"

events
string[]

List of events that will trigger the webhook call, if empty all events will be used

Example:
["transaction"]

Response

200
application/json
Updated webhook
status
enum<string>
required

Successful reponse status

Available options:
success
Example:

"success"

webhook
object
required

The webhook data