Nexhina uses Bearer Token authentication, which is required for all interfaces.Authorization: Bearer sk-your-api-key
cURL Example#
Configuring in the SDK#
Authentication Failure Behavior#
Returns HTTP status code 401
{
"error": {
"message": "Incorrect API key provided",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}
The Key is incorrect or missing the sk- prefix
The Key has been deleted or disabled
The Header format is incorrect (there should be only one space between Bearer and sk-)
Modified at 2026-06-30 09:30:29