API Reference
Comprehensive guide to integrating with the YourAIVoice.ai API
Quick Start
Get started with the YourAIVoice.ai API in minutes
1. Generate an API Key
Navigate to Settings → API Keys and create a new API key.
2. Make your first request
curl https://youraivoice.ai/api/entities \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
3. Start building
Explore the endpoints below and integrate our API into your application.
Authentication
All API requests require authentication using an API key
API Key Authentication
Include your API key in the Authorization header with the Bearer scheme:
Authorization: Bearer YOUR_API_KEY
Keep your API key secure
Rate Limiting
API rate limits are enforced to ensure fair usage
General API
100
requests per 15 minutes
AI Operations
10
requests per minute
Rate Limit Headers
X-RateLimit-Remaining header in responses to track your remaining quota.API Endpoints
Available endpoints and their usage
/api/entitiesList all entities for the authenticated user
curl https://youraivoice.ai/api/entities \ -H "Authorization: Bearer YOUR_API_KEY"
View Response
{
"entities": [
{
"id": "uuid",
"name": "Product Name",
"slug": "product-name",
"type": "product",
"published": true,
"createdAt": "2025-01-01T00:00:00Z"
}
]
}/api/entitiesCreate a new entity
curl -X POST https://youraivoice.ai/api/entities \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Product",
"slug": "my-product",
"type": "product",
"description": "Product description",
"category": "Technology"
}'/api/entities/[id]Get a specific entity by ID
/api/entities/[id]Update an existing entity
/api/entities/[id]Delete an entity
Error Handling
Understanding API error responses
Unauthorized
Invalid or missing API key
Forbidden
Subscription limit exceeded
Too Many Requests
Rate limit exceeded
Internal Server Error
Something went wrong on our end
Need Help?
If you have questions or need assistance with the API, we're here to help.