Your webhook couldn't be delivered

    The message you saw
    Not delivered: …. Check that your endpoint is reachable and answers with a 2xx status in time, then try again.

    Where you might see it: API · API webhook

    What happened

    We sent a webhook event to your URL, and your endpoint did not accept it. An event counts as delivered only when your endpoint answers with a 2xx status in time. In the API dashboard, the delivery shows as Failed, or Retrying while we still try. After you press Send test event or Resend, the dashboard says "Not delivered" and gives a reason. Your transcription is not affected: the job finishes and is charged the same, whether or not the webhook arrives.

    Why it happens

    The reason tells you which of these it is. You see it in the "Not delivered" message, and in the delivery's tries when you open them:

    • Your endpoint answered with something other than 2xx. The reason is the status, for example HTTP 500 or HTTP 404. Look at what your endpoint returns for that status, including the result of your own signature check.
    • Your endpoint did not answer in time. The reason says there was no answer within 10 s. The work you do before answering has to fit in that time.
    • We could not connect. The reason says the host name did not resolve, the connection was refused, the connection closed before an answer, or the certificate was not accepted.
    • The endpoint redirected the request. We follow one redirect, and only to an https address. Any other redirect is not followed and counts as not delivered.
    • The address is a private or internal network address. We send webhooks only to public https addresses, and a redirect to a private address is refused too.
    • A problem on our side. Reasons that end with "will try again" mean we could not read the job or its transcript, or hit an error while sending. We try again on the same schedule.
    • We stopped on purpose. The endpoint answered 410 Gone (the signal to stop), the job was deleted before the event was delivered, or the API key that made the event no longer has a signing secret.

    What to do

    1. Open Settings in the API dashboard and find Webhook deliveries. Choose the API key, then open the delivery with the arrow on its row to see every try: its time, the response code and how long it took.
    2. Fix the cause in your own endpoint: answer 2xx as soon as you have the event and do the slow work afterwards, use a reachable https address with a valid certificate, and avoid redirects.
    3. If your endpoint answers 401 or 403, check how you verify the signature. Use the key's webhook secret: choose Show webhook secret under the key on the API Keys page.
    4. Check the fix with Send test event in the same section. It sends one signed test event to the URL you give, or to your default webhook URL, and tells you what your endpoint answered.
    5. Press Resend on the delivery that was not delivered. Events that are still retrying also go on by themselves.
    6. If you cannot fix it right away, read the result from GET /v1/transcribe/{id} instead. The job and its transcript are there whether or not the webhook was delivered.

    Were you charged?

    No. This does not use any transcriptions, minutes or credits. It does not change the job either: a finished job is charged as usual, and a failed job is not charged.

    Still stuck?

    Email support@scriptivox.com with:

    • the email address of your Scriptivox account
    • the job's id, and the delivery id from the delivery's row
    • when it happened, with your time zone
    • the exact message you saw

    For developers

    This is not an error on one of your requests. It is the outcome of one try to deliver an event to your endpoint, shown in the dashboard's delivery list and returned by the calls that make a try on request: POST /v1/webhooks/test and POST /v1/transcribe/{id}/webhook/resend answer 200 with "delivered": false, the response_code your endpoint gave (or null) and an error with the reason.

    Every try has X-Scriptivox-Delivery (the same for every try and resend of one event) and X-Scriptivox-Attempt. The answer you give within 10 seconds decides the outcome:

    • 2xx: delivered, the retries stop.
    • 410 Gone: stop, no more tries.
    • Anything else, no answer, or no connection: retried. A transcription.completed or transcription.failed event gets up to 8 tries on a schedule that gets longer after each try and stretches over several hours. A transcription.downloading event and a test event get one try only.

    After the last try the event is marked failed and is not sent again on its own. You can still resend it with Resend or POST /v1/transcribe/{id}/webhook/resend, one try at once. Drop repeats by X-Scriptivox-Delivery.

    {
      "delivery_id": "3d6f0c2e-…",
      "event": "webhook.test",
      "attempt": 1,
      "delivered": false,
      "response_code": 500,
      "error": "HTTP 500",
      "duration_ms": 312,
      "status": "failed",
      "next_attempt_at": null,
      "url": "https://your-server.example/webhook"
    }

    The dashboard shows the reason with the delivery, in words like the error above.