The Lynked Public API is in development. Endpoints will appear here as they go live.

Subscribe a URL to events

POST
/webhooks

Lynked sends every event of the listed types to the URL. The response holds the subscription's secret, shown only once: you need it to verify the X-Lynked-Signature header. See the Webhooks guide.

Headers

  • Idempotency-Key string uuid

    A UUID (any version; UUIDv7 recommended) that makes a retry of this request safe. See the Idempotency guide.

Request body required

  • url string uri required

    Where Lynked sends the events. Must use https and point to a public address.

    maxLength: 2048

  • event_types array of WebhookEventType required

    The events this URL receives. At most 5 subscriptions per event type.

    minItems: 1

  • notification_email string | null email

    Who is emailed when deliveries keep failing. Defaults to the business email.

    maxLength: 180

Responses

  • 201 Created The subscription was created. CreatedWebhookSubscription
    Show fields
    • id integer required
    • url string uri required
    • event_types array of WebhookEventType required
    • active boolean required

      An inactive subscription receives nothing. Only you change it, Lynked never does.

    • notification_email string email required
    • created_at string date-time required
    • secret secret required

      Signs every request to this subscription (X-Lynked-Signature). Store it like a password.

  • 401 Unauthorized The API key is missing, invalid or revoked. Error
    Show fields
    • message string required

      What went wrong, in English. The text may change; use error_code in your code.

    • error_code string

      Stable machine-readable code of the problem, for example api_key_invalid. Present on every error that has a specific cause; see Errors for the list.

    • error_uid string required

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

  • 403 Forbidden The Public API is disabled for this business. Error
    Show fields
    • message string required

      What went wrong, in English. The text may change; use error_code in your code.

    • error_code string

      Stable machine-readable code of the problem, for example api_key_invalid. Present on every error that has a specific cause; see Errors for the list.

    • error_uid string required

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

  • 409 Conflict The URL is already subscribed to one of these event types (`webhook_subscription_duplicate`). Error
    Show fields
    • message string required

      What went wrong, in English. The text may change; use error_code in your code.

    • error_code string

      Stable machine-readable code of the problem, for example api_key_invalid. Present on every error that has a specific cause; see Errors for the list.

    • error_uid string required

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

  • 422 Unprocessable Entity The request is invalid, or an event type already has 5 subscriptions (`webhook_subscription_limit_reached`, with `event_type`).
  • 429 Too Many Requests More than 120 requests per minute for this business. Error

    Headers: Retry-After

    Show fields
    • message string required

      What went wrong, in English. The text may change; use error_code in your code.

    • error_code string

      Stable machine-readable code of the problem, for example api_key_invalid. Present on every error that has a specific cause; see Errors for the list.

    • error_uid string required

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

  • 500 Internal Server Error Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the `error_uid`. Error
    Show fields
    • message string required

      What went wrong, in English. The text may change; use error_code in your code.

    • error_code string

      Stable machine-readable code of the problem, for example api_key_invalid. Present on every error that has a specific cause; see Errors for the list.

    • error_uid string required

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

Request
curl -X POST 'https://api.lynked.ie/api/public/v1/webhooks' \
  -H 'Authorization: Bearer lk_live_...' \
  -H 'Idempotency-Key: <unique-key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://example.com/lynked/webhooks",
  "event_types": [
    "customer.joined"
  ],
  "notification_email": "dev@example.com"
}'
Request body · JSON
{
  "url": "https://example.com/lynked/webhooks",
  "event_types": [
    "customer.joined"
  ],
  "notification_email": "dev@example.com"
}
Response 201 Created
{
  "id": 12,
  "url": "https://example.com/lynked/webhooks",
  "event_types": [
    "customer.joined"
  ],
  "active": true,
  "notification_email": "dev@example.com",
  "created_at": "2026-01-01T12:00:00Z",
  "secret": "whsec_3k9QpX2vT7bYwL5mR8nZ1cH4jF6dG0sA9uE2iO7qW3x"
}