application/json

Body

  • name string Required

    Name of the webhook.

  • url string Required

    URL to which webhook events will be delivered. Must use HTTPS.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string(uuid) Required

      ID of the webhook.

    • name string Required

      Name of the webhook.

    • url string Required

      URL to which webhook events are delivered.

    • bearer_token string Required

      Bearer token included in the Authorization header of webhook deliveries.

POST /v2/webhooks
curl \
 --request POST 'https://api.memo.bank/v2/webhooks' \
 --header "Content-Type: application/json" \
 --data '{"name":"My Webhook","url":"https://example.com/webhooks"}'
Request examples
{
  "name": "My Webhook",
  "url": "https://example.com/webhooks"
}
Response examples (200)
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "My Webhook",
  "url": "https://example.com/webhooks",
  "bearer_token": "HlbgX7FlE8MlgYQjIu8U0WKaW"
}