API Reference
REST API
All endpoints require an Authorization: Bearer <key> header. Base URL: https://api.aria.example.invalid/v1
Create a model response for the given conversation.
Request body
{
"model": "aria-pro",
"messages": [
{ "role": "system", "content": "You are a helpful assistant." },
{ "role": "user", "content": "Explain RAG in one paragraph." }
],
"max_tokens": 256,
"temperature": 0.7
}Base URL: https://api.aria.example.invalid/v1
List all available models you can use.
Request body
// No body required // Returns array of model objects
Base URL: https://api.aria.example.invalid/v1
Upload a file for use with RAG retrieval or fine-tuning.
Request body
// multipart/form-data
{
"file": <binary>,
"purpose": "rag"
}Base URL: https://api.aria.example.invalid/v1
List all uploaded files for your account.
Request body
// No body required
Base URL: https://api.aria.example.invalid/v1
Permanently delete an uploaded file.
Request body
// No body required // DELETE /files/file_abc123
Base URL: https://api.aria.example.invalid/v1
Create a new API key.
Request body
{
"name": "Production key",
"scopes": ["chat", "files"]
}Base URL: https://api.aria.example.invalid/v1
List all API keys for your account (values masked).
Request body
// No body required
Base URL: https://api.aria.example.invalid/v1
Revoke an API key immediately.
Request body
// No body required
Base URL: https://api.aria.example.invalid/v1
Retrieve token usage for your account, optionally filtered by date range.
Request body
// Query params: ?start=2025-01-01&end=2025-01-31
Base URL: https://api.aria.example.invalid/v1