Cloud
Authentication
Include your API key in the Authorization header of every request using the Token scheme:
Authorization: Bearer <your-api-key>
Example request
curl -X GET "https://api.netboxlabs.com/v2/organization/{org_id}/backups/" \
-H "Authorization: Bearer nblc_api-aabbccddee01.fae04d1f8e6364d4a93b2907"
Replace {org_id} with your organization ID and the key value with your own key.
Key expiry
If a key has an expiry date, requests made after that date return 401 Unauthorized. Delete the expired key and create a new one to restore access.
Error responses
Failed authentication and authorization requests return this response body:
{
"error_code": 0,
"error_message": "string",
"error_details": "string",
"error_reference_id": "string"
}
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid API key, or key has expired |
403 Forbidden | Key is valid but does not have permission for the requested operation |