Create a Webhook
Creates a webhook in active state, subscribed to the events you select
ACTIVE state, so it starts receiving notifications immediately. Send the destination url, a name that is unique within the account, and at least one trigger. The response includes the id you use to retrieve, update and delete it.
To secure how Yuno calls your endpoint, add the fields of any delivery authentication method to the same body. They are optional and you can combine them. The secrets you configure come back masked, and the rest come back as null.
oauth2_scope, use Update a Webhook.url, as long as they listen to different events. A webhook is rejected with 409 WEBHOOK_ALREADY_EXISTS when the account already has one with the same name, or one with the same url that listens to one of the same events.Authorizations
Body
The unique identifier of the account the webhook belongs to.
"493e9374-510a-4201-9e09-de669d75f256"
Your name for the webhook. It must be unique within the account.
"Production payments listener"
The endpoint Yuno sends the notifications to. It must be an http or https URL that resolves to a public, routable address.
"https://api.acme.com/yuno/webhooks"
Sent to your endpoint as the x-api-key header on every delivery.
"my-webhook-key"
Sent to your endpoint as the x-secret header on every delivery.
"my-webhook-secret"
The key Yuno signs the payload with. The signature travels in the x-hmac-signature header.
"my-hmac-secret"
Your token endpoint. It must use HTTPS. Send oauth2_authentication_url, oauth2_client_id, oauth2_client_secret and oauth2_grant_type together.
"https://api.acme.com/oauth/token"
The client identifier Yuno authenticates with. Send oauth2_authentication_url, oauth2_client_id, oauth2_client_secret and oauth2_grant_type together.
"acme_client_id"
The client secret Yuno authenticates with. Send oauth2_authentication_url, oauth2_client_id, oauth2_client_secret and oauth2_grant_type together.
"acme_client_secret"
The grant type Yuno requests the token with. Send oauth2_authentication_url, oauth2_client_id, oauth2_client_secret and oauth2_grant_type together.
"client_credentials"
The header Yuno sends the token in. Defaults to Authorization.
"Authorization"
Send the client identifier as a header on the token request as well.
false
The enrollment events the webhook subscribes to.
ENROLL, UNENROLL The payment events the webhook subscribes to.
AUTHORIZE, CANCEL, CAPTURE, CHARGEBACK, PRECHARGEBACK, PURCHASE, REFUND, VERIFY The report events the webhook subscribes to.
CREATE, UPDATE The subscription events the webhook subscribes to.
ACTIVE, CANCEL, CLOSE_TO_RENEWAL, COMPLETE, CREATE, PAUSE, RESUME The onboarding events the webhook subscribes to.
BLOCKED, CANCELLED, CREATED, DECLINED, ERROR, EXPIRED, INACTIVE, PENDING, SUCCEEDED, TRANSFERRED, UNBLOCKED How many days before a renewal Yuno sends the CLOSE_TO_RENEWAL notification. It must be 1 or more, and it is valid only when subscription_triggers contains CLOSE_TO_RENEWAL.
5
Response
The webhook you created. The secrets you configured come back masked, and the ones you left out come back as null.
The unique identifier of the webhook.
"12345"
The unique identifier of the account the webhook belongs to.
"493e9374-510a-4201-9e09-de669d75f256"
Your name for the webhook.
"Production payments listener"
ACTIVE webhooks receive notifications, INACTIVE ones do not. A webhook starts out ACTIVE.
ACTIVE, INACTIVE "ACTIVE"
The endpoint Yuno sends the notifications to.
"https://api.acme.com/yuno/webhooks"
Masked as ***, or null when you have not configured it.
"***"
Masked as ***, or null when you have not configured it.
"***"
Masked as ***, or null when you have not configured it.
"***"
Your token endpoint.
"https://api.acme.com/oauth/token"
Masked as ***, or null when you have not configured it.
"***"
The client identifier Yuno authenticates with.
"acme_client_id"
The grant type Yuno requests the token with.
"client_credentials"
The scope Yuno requests the token with.
"webhooks:write"
The header Yuno sends the token in.
"Authorization"
Whether Yuno also sends the client identifier as a header on the token request.
true
The enrollment events the webhook subscribes to.
The payment events the webhook subscribes to.
The report events the webhook subscribes to.
The subscription events the webhook subscribes to.
The onboarding events the webhook subscribes to.
How many days before a renewal Yuno sends the CLOSE_TO_RENEWAL notification.
5
The date and time the webhook was created, in ISO 8601.
"2026-07-09T13:05:36.482913Z"
The date and time the webhook was last updated, in ISO 8601. It matches created_at until you update the webhook for the first time.
"2026-07-11T16:20:44.918330Z"