Authentication
All Mirako API requests must be authenticated using a Bearer token.
Obtaining Your API Key
- Log in to the Mirako developer portal: https://developer.mirako.ai
- Navigate to API Keys in your account dashboard.
- Click Generate New Key, give it a descriptive label, and save your token.
Using the API Key
Include the API key in the Authorization
header for every request:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Example Client Setup
import requests
api_key = "YOUR_API_KEY"
base_url = "https://api.mirako.ai/v1"
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
}
# Example: Get list of premade voices
response = requests.get(
f"{base_url}/voice/premade_profiles",
headers=headers
)
print(response.json())
Note: Treat your API keys like passwords. Do not share or expose them publicly.