curl --request POST \
--url https://api.owem.com.br/v4/i/webhooks/config \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"event": [
{}
],
"targetUrl": "<string>",
"authHeader": "<string>"
}
'{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["*"],
"targetUrl": "https://hooks.yourserver.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1760000000000,
"updatedAt": 1760000000000,
"deletedAt": null
}
}
Creates a webhook configuration to receive events from Owem. Configure real-time notifications for PIX IN, PIX OUT and MEDs.
curl --request POST \
--url https://api.owem.com.br/v4/i/webhooks/config \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"event": [
{}
],
"targetUrl": "<string>",
"authHeader": "<string>"
}
'{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["*"],
"targetUrl": "https://hooks.yourserver.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1760000000000,
"updatedAt": 1760000000000,
"deletedAt": null
}
}
Basic {Base64(API_KEY:API_SECRET)}"*" for all events, or provide a list (e.g.,
["pix_in:qrcode_paid","pix_out:processing"]).Authorization on all webhook calls. Useful for
validation on your end.| Event | Trigger |
|---|---|
pix_in:qrcode_paid | Payment via QR Code |
pix_in:credited | Credit via PIX key |
pix_in:refunded_processing | PIX IN refund initiated |
pix_in:refunded_med_processing | PIX IN refund by MED |
pix_out:processing | PIX OUT transfer registered |
pix_out:refunded_processing | PIX OUT refund initiated |
med:received | MED received |
* | All events |
Show data
["*"])Authorization{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["*"],
"targetUrl": "https://hooks.yourserver.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1760000000000,
"updatedAt": 1760000000000,
"deletedAt": null
}
}
| HTTP | When it occurs |
|---|---|
| 201 | Configuration created successfully |
| 400 | Invalid payload (malformed URL, invalid events, missing fields) |
| 401 | Invalid/revoked credentials |
| 403 | IP not allowlisted |
| 409 | Conflict (duplicate config for same targetUrl/scope) |
| 429 | Rate limit exceeded |
| 500 | Internal error |
authHeader as a secret and rotate it periodically.Was this page helpful?