Authentication
The Sastra API uses API keys for authentication.
You must include the Authorization header in all requests:
Authorization: Bearer SASTRA_API_KEY
Generating Keys
You can manage your API keys in the Dashboard.
Errors
The API will return 401 Unauthorized if the key is missing or invalid.
{
"error": {
"message": "Invalid API Key",
"type": "authentication_error"
}
}