error
error objectrequired
Error details.
typestringrequired
High-level error category
Example:
invalid_request_errorcodestringnullable
Fine-grained error identifier
| error.type | error.code | Description |
|---|---|---|
| invalid_request_error | invalid_url | 404 Invalid endpoint |
| invalid_api_key | 401 Invalid API key | |
| invalid_json | Invalid JSON | |
| invalid_event | Invalid event type | |
| invalid_parameters | Invalid parameters | |
| session_expired | Session quota (client secret) exhausted | |
| limitation | timeout_error | Request timed out |
| rate_limit_error | Reached the rate limit | |
| server_error | internal_error | Internal server error |
Example:
invalid_jsonmessagestringrequired
Developer-facing message corresponding to code
Example:
Invalid JSONparamstringnullable
Related parameter name(s) for parameter errors (comma-separated)
Example:
nullevent_idstringrequired
Server-generated unique ID
typestringrequired
Fixed value
Possible values: [error]
item_idstringnullable
The item_id value specified as event_id in the input_audio_buffer.append event.
null if omitted, or if the error is not related to transcription
error
{
"error": {
"type": "invalid_request_error",
"code": "invalid_json",
"message": "Invalid JSON",
"param": null
},
"event_id": "string",
"type": "error",
"item_id": "string"
}