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-Keystring · uuid

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

Request body

application/json RequiredSaveWebhookSubscription
3 fields
  • urlstring · uriRequired

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

    max 2048 characters

  • event_typesarray of WebhookEventTypeRequired

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

    at least 1 item

  • notification_emailstring | null · email

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

    max 180 characters

Responses

Success
  • The subscription was created.

    8 fields
    • idinteger

      The subscription id, for deleting it or rotating its secret.

    • versionstring

      The API version of the payloads this URL receives. Set when the subscription is created, from the version of the API used to create it; see Webhook versions.

      One of "v1"

    • urlstring · uri

      Where Lynked sends the events.

    • event_typesarray of WebhookEventType

      The events this URL receives.

    • is_activeboolean

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

    • notification_emailstring · email

      Who is emailed when deliveries keep failing.

    • created_atstring · date-time

      When the subscription was created.

    • secretstring

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

Errors
  • 401 UnauthorizedError

    The API key is missing, invalid or revoked.

    3 fields
    • messagestring

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

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

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

  • 403 ForbiddenError

    The Public API is disabled for this business.

    3 fields
    • messagestring

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

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

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

  • 409 ConflictError

    The URL is already subscribed to one of these event types (webhook_subscription_duplicate).

    3 fields
    • messagestring

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

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

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

  • 422 Unprocessable EntityValidationError

    The request is invalid, or an event type already has 5 subscriptions (webhook_subscription_limit_reached, with event_type).

    4 fields
    • messagestring

      All problems in one line.

    • errorsobject

      Request field path → its problems.

    • error_codestring

      undefined for validation errors for now; see Errors for the list of codes.

    • error_uidstring

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

  • 429 Too Many RequestsRateLimitError

    More than 120 requests per minute for this business.

    Headers
    • Retry-Afterinteger

      Seconds to wait before the next request.

    4 fields
    • messagestring

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

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

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

    • retry_afterinteger

      Seconds to wait before the next request; the same value as the Retry-After header.

  • 500 Internal Server ErrorError

    Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the error_uid.

    3 fields
    • messagestring

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

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      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
HTTP/3 201 Created
Content-Type: application/json
Body
{
  "id": 12,
  "version": "v1",
  "url": "https://example.com/lynked/webhooks",
  "event_types": [
    "customer.joined"
  ],
  "is_active": true,
  "notification_email": "dev@example.com",
  "created_at": "2026-01-01T12:00:00Z",
  "secret": "whsec_3k9QpX2vT7bYwL5mR8nZ1cH4jF6dG0sA9uE2iO7qW3x"
}