X-OTAS-SDK-KEY header and, if valid, returns the associated project details. It is called by the Brain service to authorize incoming agent event requests, but you can also use it directly to confirm that a key is active, unexpired, and correctly formed before deploying it to a production environment.
This endpoint does not require a user JWT. It authenticates solely via the
X-OTAS-SDK-KEY header. No request body is needed.Request
Method:POSTURL:
http://localhost:8000/api/project/v1/sdk/backend/key/authenticate/Authentication:
X-OTAS-SDK-KEY header
Headers
Full backend SDK key in the format
otas_<prefix>_<secret>, as returned by the key-creation endpoint.Response
1 on success, 0 on failure.authenticated on success.Example
Error responses
status_description | HTTP status | Cause |
|---|---|---|
missing_sdk_key | 401 | The X-OTAS-SDK-KEY header was absent from the request. |
invalid_sdk_key | 401 | The key does not match any active, unexpired key in the database, or has been revoked. |