/v1/apps/{app_id}/webhookAuthRead the app's first webhook endpoint (or null if it has none). Plaintext secret is NOT returned, only the last-4 hint. Deprecated: use `/v1/apps/{appId}/webhooks/endpoints` (several endpoints, event descriptions, Send test, event log, replay). This route acts on the app's first endpoint. Responses carry `Deprecation: true` and `Sunset: Fri, 15 Jan 2027 00:00:00 GMT`.
Path parameters
app_id*stringId of the app.
Response · 200 The endpoint, or null if the app has none.
id*stringapp_id*string · uuidurl*stringExample: "https://customer.example.com/webhooks/auth"
event_types*arraySubscribed events. Empty means the endpoint is switched off.
Example: ["user.email_verified","tenant.created"]
signing_secret_hint*stringLast 4 chars of the signing secret.
disabled_at*string · date-timeSet when the endpoint was switched off automatically after sustained failures.
disabled_reason*stringconsecutive_failures*numberdead_letter_dropped_count*numberAlways 0: every event is kept in the event log for 30 days, so none is dropped. Kept for older clients.
Example: 0
dead_letter_dropped_at*string · date-timeAlways null. Kept for older clients.
created_at*string · date-timeupdated_at*string · date-timeExample
Request
GET https://api.auth.productcraft.co/v1/apps/{app_id}/webhook
Authorization: Bearer YOUR_TOKENResponse
{
"id": "string",
"app_id": "00000000-0000-0000-0000-000000000000",
"url": "https://customer.example.com/webhooks/auth",
"event_types": [
"user.email_verified",
"tenant.created"
],
"signing_secret_hint": "string",
"disabled_at": "2026-01-01T00:00:00.000Z",
"disabled_reason": "string",
"consecutive_failures": 0,
"dead_letter_dropped_count": 0,
"dead_letter_dropped_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}