v1 · OpenAPI 3.1Panel

API referansı İngilizcedir.

Logs & webhooks

Create a webhook endpoint

POST/v1/applications/{app_id}/webhooks

At most 10 endpoints per application (422 webhook_limit). The signing secret is returned only in this response; store it, it cannot be read back. See the WebhookDelivery schema for the delivery shape and headers.

Gereken yetki
applications:write
Kimlik doğrulama
Secret key · Organization API key

Yol parametreleri

  • app_idstringzorunlu

    Örnek: app_seller

Gövde application/json

  • urlstring (uri)zorunlu

    Must be https, a public hostname (no IP literal, port, credentials, localhost or .internal/.local suffix), at most 500 characters.

    Örnek: https://hooks.anka.com.tr/fox

  • eventsstring | "*"[]zorunlu

    Değerler: user.created user.signed_in sign_in.failed password.reset mfa.enrolled mfa.removed sign_in.mfa_required

Yanıtlar

  • 201CreatedWebhookEndpointWithSecret

    Created. The secret is returned only once.

    • idstring

      Örnek: whe_8f2c91a7

    • urlstring

    • eventsstring[]

    • secretstring

      Signs deliveries (Standard Webhooks). Shown only in this response.

      Örnek: whsec_8f2c91a7b3d04e5f...

  • 400Bad RequestError

    invalid_webhook_url or invalid_events.

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject

  • 422Unprocessable ContentError

    webhook_limit: the application already has 10 endpoints.

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject