Skip to content
Book a callStart free
Reference

get_callback_secret

Get your callback signing secret

View as Markdown

GET /api/v2/callbacks/secret

Needs the results:read scope.

Example

curl "https://app.diffusr.ai/api/v2/callbacks/secret" \
-H "Authorization: Bearer $DIFFUSR_KEY"

Response

200 ApiCallbackSecretView

Your signing secret (made on the first ask).

NameTypeRequiredDescription
secretstringyesStarts with “whsec_”. Use it to check the webhook-signature header.
previous_valid_untilstringnoAfter a rotation, the old secret still signs (a second signature) until this time.

Errors

Every error body is { error, code, request_id, ... }. All codes and what to do.

  • 401: Missing, wrong, revoked or expired API key (code UNAUTHORIZED, KEY_REVOKED, KEY_EXPIRED).
  • 403: The key may not do this (SCOPE_DENIED, MODEL_NOT_ALLOWED, TEST_MODE_UNSUPPORTED, ACCOUNT_BLOCKED, allowance_exceeded).
  • 429: Too many requests or jobs (RATE_LIMITED, CONCURRENCY_LIMIT, UPLOAD_QUOTA, …). Wait Retry-After seconds, then retry.
  • 500: Our fault (INTERNAL_ERROR). Quote request_id to support.
  • 503: Paused or busy (API_PAUSED, MODEL_PAUSED, PROVIDER_PAUSED, PROVIDER_BUSY, UNAVAILABLE). Wait Retry-After seconds, then retry.

Charges

Free. No credits are spent.