Explore the FlexOrch REST API: base URL, API key and JWT authentication, response envelopes, error codes, and a full endpoint overview.
The FlexOrch REST API gives you programmatic access to every capability of the platform — document processing, dataset management, semantic search, connectors, webhooks, compliance records, and more. All endpoints share a consistent base URL, authentication model, and response envelope so you can integrate quickly and predictably.
Pass your API key in the X-API-KEY request header. API keys are long-lived credentials best suited for server-to-server integrations and automation pipelines.
Pass a JWT in the Authorization header using the Bearer scheme. JWTs are short-lived and ideal for user-facing applications. Obtain a token via POST /v1/auth/login and refresh it with POST /v1/auth/refresh.
The API key provided was not found, has been revoked, or is malformed.
TRIAL_EXPIRED
402
Your free trial period has ended. Upgrade your plan to continue.
QUOTA_EXCEEDED
429
You have exhausted your credit quota for the current billing period.
RATE_LIMIT_EXCEEDED
429
Your request rate exceeds the requests-per-minute limit for your plan.
PLAN_UPGRADE_REQUIRED
403
The endpoint or feature you requested is not available on your current plan.
FILE_TOO_LARGE
413
The uploaded file exceeds the maximum file size allowed by your plan.
UNSUPPORTED_FILE
415
The file type you submitted is not supported for processing.
If you receive a 429 response, back off and retry using exponential backoff.
Check your current rate limit headroom at any time with
GET /v1/usage/rate-limits.
The table below lists every key endpoint grouped by category. The full interactive reference — including request schemas, response schemas, and a live try-it console — is generated directly from the OpenAPI spec and is always up to date.
Submit a fine-tuning job against your document corpus.
GET
/v1/fine-tune/{job_id}
Track the progress of a fine-tuning job.
The full interactive API reference below — including live request builders,
response examples, and schema documentation — is generated automatically from
the OpenAPI specification at
https://api.flexorch.com/openapi.json.
It always reflects the latest version of the API.
FlexOrch enforces per-plan rate limits on a requests-per-minute (RPM) basis. When you exceed your limit, the API returns a 429 RATE_LIMIT_EXCEEDED response. Use the GET /v1/usage/rate-limits endpoint to check how many requests you have remaining in the current window before you hit the limit.
Rate Limit Status
Query your current RPM headroom with GET /v1/usage/rate-limits.
Credit Balance
Monitor credit consumption in real time with GET /v1/usage.
⌘I
Assistant
Responses are generated using AI and may contain mistakes.