Skip to main content
POST
/
v1
/
baas
/
webhooks
Create BaaS webhook
curl --request POST \
  --url https://api-sandbox.y.uno/v1/baas/webhooks \
  --header 'Content-Type: application/json' \
  --header 'private-secret-key: <api-key>' \
  --header 'public-api-key: <api-key>' \
  --data '
{
  "url": "https://example.com/webhooks/baas",
  "events": [
    "account.updated",
    "transfer.completed",
    "transfer.failed"
  ],
  "secret": "whsec_your_secret_key"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

public-api-key
string
header
required

Your public API key from the Yuno Dashboard

private-secret-key
string
header
required

Your private secret key (server-side only)

Body

application/json
url
string<uri>
required

Webhook endpoint URL

events
string[]
required

Event types to subscribe to

secret
string

Shared secret for signature verification

Response

Webhook registered

id
string<uuid>
url
string
events
string[]
created_at
string<date-time>