GET/api/v1/webhooks/{uuid}

Get webhook

Returns the full configuration of a single webhook endpoint belonging to the current company. The secret field is always masked in this response. Use the regenerate-secret endpoint if you need to obtain a new signing secret.

GET /api/v1/webhooks/{uuid}

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
X-CompanystringYesCompany UUID to scope the request

Path parameters

NameTypeRequiredDescription
uuidstringYesWebhook endpoint UUID

Request

curl https://api.storno.ro/api/v1/webhooks/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "X-Company: 550e8400-e29b-41d4-a716-446655440000"

Response

Returns the webhook endpoint object with a masked secret.

{
  "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "url": "https://your-app.example.com/webhooks/storno",
  "description": "Production invoice notifications",
  "events": [
    "invoice.created",
    "invoice.validated",
    "invoice.rejected",
    "invoice.paid"
  ],
  "isActive": true,
  "secret": "whsec_••••••••••••••••••••••••",
  "deliveriesCount": 142,
  "lastDeliveryAt": "2026-02-18T09:45:00Z",
  "lastDeliveryStatus": "success",
  "createdAt": "2026-02-10T09:00:00Z",
  "updatedAt": "2026-02-15T14:30:00Z"
}

Response fields

FieldTypeDescription
uuidstringUnique identifier for the webhook endpoint
urlstringThe HTTPS destination URL
descriptionstringHuman-readable label
eventsarrayList of subscribed event type names
isActivebooleanWhether the webhook is receiving deliveries
secretstringMasked signing secret (format: whsec_••••••••)
deliveriesCountintegerTotal number of delivery attempts made for this webhook
lastDeliveryAtstringISO 8601 timestamp of the most recent delivery attempt
lastDeliveryStatusstringOutcome of the last delivery: success, failed, or pending
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 last-updated timestamp

Error codes

CodeDescription
401Missing or invalid authentication token
403Insufficient permissions — requires webhook.view permission
404Webhook endpoint not found for this company