Getting Started with API Authentication
All Prezent APIs use API key-based authentication to ensure secure access. This guide walks you through how to generate your API key, authenticate your requests, and make your first API call.
How Authentication Works
You must include your API key in the Authorization
header of every request using the Bearer token format:
Authorization: Bearer YOUR_API_KEY
⚠️ Note: API keys are masked after generation. Please download and save your key safely, as you won't be able to view it again.
Generate Your API Key
Reach out to your Customer Success Manager to get access to your API Key
Example: Authenticating with Auto Generate API
curl -X POST https://api.prezent.ai/api/v1/autogenerator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Generate a presentation on AI trends",
"template_id": "<your-template-id>"
}'
Example: Authenticating with SCIM - User Management API
curl -X GET https://api.prezent.ai/api/v1/scim/Users \
-H "Authorization: Bearer YOUR_API_KEY"
Test Using Postman
You can also test any of these APIs in Postman:
- Set the method (e.g.,
POST
,GET
) - Add Authorization as a Bearer Token
- Provide your
API_KEY
- Add
Content-Type: application/json
(if needed)
Error Handling
If you provide an invalid or missing token, you will receive a 401 Unauthorized error:
{
"statusCode": 401,
"body": {
"message": "Unauthorized: Invalid or missing API key"
}
}
Next Steps
Use your API key to access endpoints in:
You’re all set to start building!