Getting Started

Subscribing

Create and manage event subscriptions via the Management API

Subscribing to Events

Event subscriptions are managed through the Management API under the /v1/{tenantCode}/account/event-subscriptions endpoints. Each subscription targets a specific event type, a destination URL, and an authentication method.

Quick example

POST /v1/{tenantCode}/account/event-subscriptions
Authorization: Bearer <token>
Content-Type: application/json

{
  "eventType": "orderCreated",
  "destination": "https://your-system.com/webhooks/avvyr",
  "enabled": true,
  "authType": "hmac",
  "hmacSecret": "your-secret-key",
  "retryEnabled": true,
  "retryCount": 3,
  "comment": "Order sync to ERP"
}

What you can configure

FieldDescription
eventTypeWhich event to listen for (e.g. orderCreated, productUpdated)
destinationYour webhook URL
authTypeHow Avvyr authenticates with your endpoint: none, basic, bearer, or hmac
retryEnabled / retryCountAutomatic retry on delivery failure
errorEmailGet notified when deliveries fail
additionalHeadersCustom headers sent with every webhook

Available operations

  • Create a subscription
  • List all subscriptions
  • Get a specific subscription
  • Update a subscription (e.g. disable it, change auth)
  • Delete a subscription
  • Search by event type, destination, or comment
  • Test — send a synthetic event to verify your endpoint

Permissions

ActionPermission
CreateEVENT_SUBSCRIPTIONS.CREATE
Read / List / SearchEVENT_SUBSCRIPTIONS.READ
Update / TestEVENT_SUBSCRIPTIONS.UPDATE
DeleteEVENT_SUBSCRIPTIONS.DELETE
See the Management API Reference for full request/response schemas, field definitions, and try requests live.
Always use the test endpoint after creating a subscription to verify that your endpoint is reachable, auth is correct, and your system handles the payload.
Copyright © 2026