API reference
Programmatic access to Outlix.
Authentication
Include your token in every request:
curl https://api.outlix.io/api/leads \
-H "Authorization: Bearer YOUR_TOKEN"
Base URL
https://api.outlix.io/api
Key endpoints
Products
| Method | Endpoint | Description |
|---|---|---|
| GET | /products | List products |
| POST | /products | Create product |
| GET | /products/:id | Get product |
| PUT | /products/:id | Update product |
| DELETE | /products/:id | Delete product |
Leads
| Method | Endpoint | Description |
|---|---|---|
| GET | /leads | List leads |
| POST | /leads | Create lead |
| GET | /leads/:id | Get lead |
| PUT | /leads/:id | Update lead |
| DELETE | /leads/:id | Delete lead |
Drafts
| Method | Endpoint | Description |
|---|---|---|
| GET | /drafts | List drafts |
| POST | /drafts/generate | Generate draft |
| POST | /drafts/:id/approve | Approve draft |
| POST | /drafts/:id/reject | Reject draft |
Pain Cards
| Method | Endpoint | Description |
|---|---|---|
| GET | /pain-cards | List pain cards |
| POST | /pain-cards | Create pain card |
| POST | /pain-cards/:id/score | Score pain card |
Knowledge Base
| Method | Endpoint | Description |
|---|---|---|
| GET | /knowledge/:product_id | List documents |
| POST | /knowledge/:product_id/upload | Upload document |
| DELETE | /knowledge/:id | Delete document |
Response format
All responses are JSON:
{
"items": [...],
"total": 42
}
Error handling
Errors return appropriate HTTP status codes:
| Code | Meaning |
|---|---|
| 400 | Bad request (validation error) |
| 401 | Unauthorized (invalid token) |
| 403 | Forbidden (insufficient permissions) |
| 404 | Not found |
| 429 | Rate limited |
| 500 | Server error |
Rate limits
Requests are rate limited per organization. If you hit limits, you'll receive a 429 response with a Retry-After header.
Interactive docs
Full OpenAPI documentation available at:
https://api.outlix.io/docs