API Access
The YourAI API is available on Professional tier and above. Enterprise customers get dedicated rate limits and priority support. API keys are managed in the Admin dashboard.
Base URL
https://api.yourai.com/v1
Authentication
All requests require a Bearer token in the Authorization header. Tokens are scoped to your organization and respect your RBAC permissions.
Available Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /ai/request | Submit an AI Request (prompt + optional Knowledge Pack context) |
| GET | /reports | List reports and deliverables for your organization |
| GET | /reports/:id | Retrieve a specific report |
| POST | /documents/upload | Upload documents to a Knowledge Pack |
| GET | /knowledge-packs | List Knowledge Packs |
| GET | /audit-log | Query audit log events (Admin only) |
| GET | /users | List users in your organization |
| POST | /webhooks | Register webhook endpoints for event notifications |
Rate Limits
| Tier | Requests/min | AI Requests/day |
|---|---|---|
| Professional ($149/mo) | 60 | 500 |
| Business ($299/mo) | 120 | 2,000 |
| Enterprise ($599+/mo) | Custom | Custom |
SDKs & Libraries
Official SDKs are coming soon for Python, Node.js, and .NET. In the meantime, the REST API works with any HTTP client.