Errors
webhook_url_invalid
The webhook URL is not a valid public URL.
| HTTP status | Type | Code |
|---|---|---|
| 400 | invalid_request_error | webhook_url_invalid |
What it means
Use an absolute https:// URL whose host resolves to a public internet address. Private, loopback and link-local addresses are refused, as are URLs with a username or password.
How to handle it
Fix the request before sending it again; retrying the same request returns the same error. error.param names the offending field when there is one.
Example response
{
"detail": "The webhook URL is not a valid public URL.",
"error": {
"type": "invalid_request_error",
"code": "webhook_url_invalid",
"message": "The webhook URL is not a valid public URL.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/webhook_url_invalid",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
POST /api/v1/webhook-endpoints/— Create a webhook endpointPATCH /api/v1/webhook-endpoints/{endpoint_id}— Update a webhook endpoint