API
Authentication
Authenticate API requests using Bearer tokens. Learn the difference between public SDK keys and private API keys.
Overview
All administrative REST API endpoints require Bearer token authentication in the HTTP Authorization header.
Bearer Token Authorization
curl https://asiyst.com/api/v1/projects \
-H "Authorization: Bearer sk_live_9f8a2b3c4d5e6f7a8b9c" \
-H "Content-Type: application/json"
Handling 401 Unauthorized
If an API token is invalid, expired, or missing, the API returns:
{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid API token in Authorization header."
}
}