API Reference
Reference for every X114 API endpoint: auth, request schema, response schema, and a working curl example.
Base URL
All endpoints live under the same base URL. Use HTTPS in production.
https://x114.org/api/v1Authentication
Every request needs a Bearer token. Create one in Settings → API keys after signing up.
Authorization: Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxCredits
Every call costs 1 credit. Insufficient balance returns 402. Credits never expire on the lifetime plan.
Status codes
The same shape is used for every endpoint.
| Code | Meaning |
|---|---|
| 401 | Missing or invalid API key. |
| 402 | Insufficient credits — top up from your dashboard. |
| 429 | Rate limit exceeded — back off and retry. |
| 500 | Server error — safe to retry with backoff. |