Skip to main content

Documentation Index

Fetch the complete documentation index at: https://astralform.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Base URL

All API requests should be made to:
https://api.astralform.ai/v1
For self-hosted deployments, use your server’s URL.

Authentication

All requests require an API key in the X-API-Key header:
curl -X GET https://api.astralform.ai/v1/conversations \
  -H "X-API-Key: af_live_xxxxxxxxxxxx"
Get your API key from the dashboard.

Content Type

All requests should include:
Content-Type: application/json

Response Format

Successful responses return JSON:
{
  "data": { ... },
  "meta": {
    "request_id": "req_123abc"
  }
}
Error responses:
{
  "error": {
    "code": "invalid_api_key",
    "message": "The API key provided is invalid"
  }
}

HTTP Status Codes

CodeDescription
200Success
201Created
400Bad Request
401Unauthorized
404Not Found
429Rate Limited
500Server Error

Rate Limits

Default limits per API key:
PlanRequests/min
Free60
Pro300
EnterpriseCustom
Rate limit headers are included in responses:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 55
X-RateLimit-Reset: 1609459200

Endpoints

Chat Stream

POST /v1/chat/stream

Tool Result

POST /v1/tool-result

List Conversations

GET /v1/conversations

Get Conversation

GET /v1/conversations/:id