Overview
All API requests to Exterview require authentication using two methods combined:- API Key - Organization-specific identifier
- Bearer Token - User-specific authorization token
Required Headers
Every API request must include the following three headers:Your organization-specific API key. Contact your administrator to obtain this key.
Bearer token in the format:
Bearer YOUR_TOKENRequest content type:
application/json or multipart/form-data (for file uploads)Base URLs
Exterview provides two environments for API access:Production
Sandbox
Quick Start Example
Here’s a complete example showing how to authenticate and make your first API request:Getting Your Credentials
API Key
Your organization’s API key is available in the Exterview dashboard:- Log in to your Exterview account
- Navigate to Settings → API Keys
- Copy your organization’s API key
Bearer Token
The Bearer token is generated when you authenticate:- Use your Exterview credentials to log in
- The authentication response includes your Bearer token
- Include this token in all subsequent API requests
Bearer tokens typically expire after a certain period. Implement token refresh logic in your application to handle expiration.
Authentication Errors
| Status Code | Error | Description |
|---|---|---|
| 400 | Bad Request | Missing required headers or invalid format |
| 401 | Unauthorized | Invalid or missing API key or Bearer token |
| 403 | Forbidden | API key lacks required permissions for this operation |
Example Error Responses
Security Best Practices
Use Environment Variables
Use Environment Variables
Never hardcode API keys or tokens in your source code. Use environment variables:
Rotate Credentials Regularly
Rotate Credentials Regularly
Rotate your API keys and tokens periodically to maintain security:
- API keys: Every 90 days
- Bearer tokens: Implement automatic refresh
Use HTTPS Only
Use HTTPS Only
Always use HTTPS (not HTTP) when making API requests to ensure your credentials are encrypted in transit.
Restrict API Key Permissions
Restrict API Key Permissions
Configure your API key with the minimum required permissions for your use case. Avoid using admin-level keys for routine operations.
Testing Your Authentication
Use this simple query to verify your authentication is working correctly:Authentication Successful! You’re now ready to start using the Exterview API. Check out the API Reference to explore available endpoints.
Need Help?
Having trouble with authentication? Here are some resources:- Documentation: Check our API Reference for detailed endpoint information
- Support: Contact support@exterview.ai
- Status: Check system status at status.exterview.ai