Skip to content
techrace/
TECHRACE DOCUMENTATION

Webhooks

Every endpoint in this group: what it needs, the fields it accepts (type, required, limits), what it returns and its errors.

List webhook endpoints without signing secrets

GET/api/v1/projects/{project_id}/webhookswebhooks:read

Parameters

FieldTypeRequiredRules
cursor querystringNo
limit queryintegerNo1–100

Response 200

FieldTypeRequiredRules
dataobject[]Yes
next_cursorstring | nullYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 502 Invalid stored result or inconsistent project/customer/operation binding; no private data returned
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhooks" \
  -H "Authorization: Bearer $TECHRACE_API_KEY"

Register a webhook (any public HTTPS host unless an operator host list is set); reveal the signing secret once

POST/api/v1/projects/{project_id}/webhookswebhooks:write

Request body

FieldTypeRequiredRules
urlstring (uri)Yeslength 0–2000
namestringNolength 1–80
event_typesstring[]No1–50 items
customer_idsuuid[] | nullNo1–100 items

Response 201

FieldTypeRequiredRules
endpointobjectYes
signing_secretstringYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 502 Invalid stored result or inconsistent project/customer/operation binding; no private data returned
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhooks" \
  -H "Authorization: Bearer $TECHRACE_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "url": "https://your-app.com/webhooks/techrace",
  "name": "Production backend",
  "event_types": [
    "account.connected",
    "account.disconnected"
  ],
  "customer_ids": null
}
EOF
Response
JSON
{
  "endpoint": {
    "id": "5d8b1e3f-2a6c-4b97-8e10-9c4f7a2d1b65",
    "url": "https://your-app.com/webhooks/techrace",
    "enabled": true,
    "created_at": "2026-11-14T10:00:00.000Z",
    "name": "Production backend"
  },
  "signing_secret": "…shown once, store it securely…"
}

Rename a webhook

PATCH/api/v1/projects/{project_id}/webhooks/{endpoint_id}webhooks:write

Parameters

FieldTypeRequiredRules
endpoint_id pathuuidYes

Request body

FieldTypeRequiredRules
namestring | nullYeslength 1–80

Response 200

FieldTypeRequiredRules
endpointobjectYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X PATCH "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhooks/$ENDPOINT_ID" \
  -H "Authorization: Bearer $TECHRACE_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "name": "…"
}
EOF

Disable future delivery attempts for this endpoint

DELETE/api/v1/projects/{project_id}/webhooks/{endpoint_id}webhooks:write

Parameters

FieldTypeRequiredRules
endpoint_id pathuuidYes

Response 200

FieldTypeRequiredRules
disabledtrueYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X DELETE "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhooks/$ENDPOINT_ID" \
  -H "Authorization: Bearer $TECHRACE_API_KEY"

Delete a webhook permanently; past delivery history is kept

POST/api/v1/projects/{project_id}/webhooks/{endpoint_id}/deletewebhooks:write

Parameters

FieldTypeRequiredRules
endpoint_id pathuuidYes

Response 200

FieldTypeRequiredRules
deletedtrueYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhooks/5d8b1e3f-2a6c-4b97-8e10-9c4f7a2d1b65/delete" \
  -H "Authorization: Bearer $TECHRACE_API_KEY"
Response
JSON
{
  "deleted": true
}

Inspect delivery attempts and outcomes using optional server-side filters

GET/api/v1/projects/{project_id}/webhook-deliverieswebhooks:read

Parameters

FieldTypeRequiredRules
cursor querystringNo
limit queryintegerNo1–100
status queryenumNoone of: "pending", "leased", "succeeded", "failed"
endpoint_id queryuuidNo
event_id queryuuidNo

Response 200

FieldTypeRequiredRules
dataobject[]Yes
next_cursorstring | nullYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 502 Invalid stored result or inconsistent project/customer/operation binding; no private data returned
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhook-deliveries" \
  -H "Authorization: Bearer $TECHRACE_API_KEY"

Read current webhook subscription and rotation metadata

GET/api/v1/projects/{project_id}/webhooks/{endpoint_id}/settingswebhooks:read

Parameters

FieldTypeRequiredRules
endpoint_id pathuuidYes

Response 200

FieldTypeRequiredRules
endpointobjectYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhooks/$ENDPOINT_ID/settings" \
  -H "Authorization: Bearer $TECHRACE_API_KEY"

Replace exact subscriptions and pause/resume with current revision; customer keys denied

PUT/api/v1/projects/{project_id}/webhooks/{endpoint_id}/settingswebhooks:write

Parameters

FieldTypeRequiredRules
endpoint_id pathuuidYes

Request body

FieldTypeRequiredRules
expected_revisionintegerYes0–9007199254740991
enabledbooleanYes
event_typesstring[]Yes0–50 items['*'] selects all event types; [] selects none.
customer_idsuuid[] | nullYes0–100 itemsnull selects all customers; [] selects none.

Response 200

FieldTypeRequiredRules
endpointobjectYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X PUT "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhooks/5d8b1e3f-2a6c-4b97-8e10-9c4f7a2d1b65/settings" \
  -H "Authorization: Bearer $TECHRACE_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "expected_revision": 1,
  "enabled": true,
  "event_types": [
    "*"
  ],
  "customer_ids": [
    "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10"
  ]
}
EOF
Response
JSON
{
  "endpoint": {
    "id": "5d8b1e3f-2a6c-4b97-8e10-9c4f7a2d1b65",
    "enabled": true,
    "revision": 2,
    "event_types": [
      "*"
    ],
    "customer_ids": [
      "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10"
    ]
  }
}

Rotate signing secret once, with zero to one hour overlap; no stacked overlap

POST/api/v1/projects/{project_id}/webhooks/{endpoint_id}/rotate-secretwebhooks:write

Parameters

FieldTypeRequiredRules
endpoint_id pathuuidYes

Request body

FieldTypeRequiredRules
expected_revisionintegerYes0–9007199254740991
overlap_secondsintegerYes0–3600

Response 200

FieldTypeRequiredRules
endpointobjectYes
signing_secretstringYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhooks/$ENDPOINT_ID/rotate-secret" \
  -H "Authorization: Bearer $TECHRACE_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "expected_revision": 1,
  "overlap_seconds": 1
}
EOF

Queue a synthetic notification for an active customer; accepted is not delivered

POST/api/v1/projects/{project_id}/webhooks/{endpoint_id}/testwebhooks:write

Parameters

FieldTypeRequiredRules
endpoint_id pathuuidYes

Request body

FieldTypeRequiredRules
customer_iduuidYes
idempotency_keyuuidYes

Response 202

FieldTypeRequiredRules
deliveryobjectYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhooks/5d8b1e3f-2a6c-4b97-8e10-9c4f7a2d1b65/test" \
  -H "Authorization: Bearer $TECHRACE_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "customer_id": "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10",
  "idempotency_key": "2f9c6a1e-8d3b-4e57-a210-7c5b9e1d4f08"
}
EOF
Response
JSON
{
  "delivery": {
    "id": "b7e3c1a9-5d2f-4a86-9c04-e1f8a6d2b357",
    "status": "pending"
  }
}

Retry only a failed notification within24hours, at most3manual batches and32total attempts; never repeats the provider action

POST/api/v1/projects/{project_id}/webhook-deliveries/{delivery_id}/redeliverwebhooks:write

Parameters

FieldTypeRequiredRules
delivery_id pathuuidYes

Request body

FieldTypeRequiredRules
expected_attemptsintegerYes0–31
idempotency_keyuuidYes

Response 202

FieldTypeRequiredRules
deliveryobjectYes

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhook-deliveries/$DELIVERY_ID/redeliver" \
  -H "Authorization: Bearer $TECHRACE_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "expected_attempts": 1,
  "idempotency_key": "$IDEMPOTENCY_KEY"
}
EOF

Read append-only attempt outcomes; erased events are unavailable

GET/api/v1/projects/{project_id}/webhook-deliveries/{delivery_id}/attemptswebhooks:read

Parameters

FieldTypeRequiredRules
delivery_id pathuuidYes
after queryintegerNo0–∞
limit queryintegerNo1–100

Response 200

FieldTypeRequiredRules
delivery_iduuidYes
event_iduuidYes
customer_iduuidYes
dataobject[]Yes0–100 items
next_afterinteger | nullYes0–∞

Errors

  • 400 Invalid request
  • 401 Authentication required
  • 402 Billing activation or published usage allowance required
  • 403 Project, role or scope denied
  • 409 State, ownership, idempotency or configuration conflict
  • 429 Rate limit; respect Retry-After
  • 503 Maintenance mode or required service configuration unavailable
Request
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/webhook-deliveries/$DELIVERY_ID/attempts" \
  -H "Authorization: Bearer $TECHRACE_API_KEY"