API Reference
Complete API reference documentation for developers.
API Reference
Complete reference for our REST API.
Authentication
All API requests require authentication using an API key:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.yourdomain.com/v1/endpoint
Getting Your API Key
- Navigate to Settings > API Keys
- Click “Generate New Key”
- Copy and securely store your key
Base URL
https://api.yourdomain.com/v1
Endpoints
Projects
List Projects
GET /projects
Response:
{
"data": [
{
"id": "proj_123",
"name": "My Project",
"created_at": "2025-01-01T00:00:00Z"
}
],
"pagination": {
"total": 100,
"page": 1,
"per_page": 20
}
}
Create Project
POST /projects
Body:
{
"name": "New Project",
"description": "Project description"
}
Get Project
GET /projects/:id
Update Project
PATCH /projects/:id
Delete Project
DELETE /projects/:id
Users
Get Current User
GET /user
Update User
PATCH /user
Rate Limiting
API requests are limited to:
- Free: 100 requests/hour
- Pro: 1,000 requests/hour
- Enterprise: 10,000 requests/hour
Errors
The API uses standard HTTP status codes:
200- Success400- Bad Request401- Unauthorized403- Forbidden404- Not Found429- Rate Limited500- Server Error
Error Response:
{
"error": {
"code": "invalid_request",
"message": "The request was invalid"
}
}
SDKs
We provide official SDKs for:
Webhooks
Subscribe to events using webhooks:
POST /webhooks
{
"url": "https://your-site.com/webhook",
"events": ["project.created", "project.updated"]
}
Support
Need help with the API?
- Email: api@yourdomain.com
- Slack: Join our community
- GitHub: Report issues