What happened
You asked us to send a webhook event, but there is no address to send it to. The API refused with 400 INVALID_REQUEST and nothing was sent. This happens when you resend a job's final event, or send a test event, and neither the request nor your account has a webhook URL.
Why it happens
- The job never had a webhook URL, and your account has no default one. A job gets a URL only from the
webhook_urlof its request, or from your default webhook URL. If it had neither, there is nowhere to send its final event. - A test event was sent with no URL, and the account has no default webhook URL. A test event goes to the URL you give it, or to the default.
What to do
- Set a default webhook URL: open Settings in the API dashboard, type an
https://address in Default Webhook URL, and choose Save Changes. - Send the resend or the test again. A resend of a job that had no URL goes to the default URL. A test can also take the address in its request: send
{"url": "https://…"}toPOST /v1/webhooks/test, or type it in the Send a test event box. - For jobs you start from now on, pass
webhook_urlinPOST /v1/transcribe, or rely on the default URL. Read an old job's result withGET /v1/transcribe/{id}.
Were you charged?
No. Nothing was started, so nothing was used.
Still stuck?
Email support@scriptivox.com with:
- the email address of your Scriptivox account
- the job's
id, and therequest_idfrom the answer - when it happened, with your time zone
- the exact message you saw
For developers
400 INVALID_REQUEST, answered at once on POST /v1/transcribe/{id}/webhook/resend or POST /v1/webhooks/test. Sending the same request again gives the same answer until a URL is set. The URL must start with https://: an address that does not is refused with a different INVALID_REQUEST sentence.
{
"error": {
"code": "INVALID_REQUEST",
"message": "There is no webhook URL to send to. Set a default webhook URL at https://platform.scriptivox.com/settings, then try again.",
"docs_url": "https://www.scriptivox.com/errors/webhook-url-missing",
"help_id": "webhook-url-missing",
"request_id": "req_6fe725fffa7d9b98"
}
}The message says there is no webhook URL to send to and points you to the default webhook URL setting.