Four endpoints.
One workflow.
Create your XYZ account with Google, top up your balance and generate a key in the console. XYZ keys use the base URL below. AI reports depend on provider availability.
Existing customers: keys created in the original backend continue to use https://api.2022915.xyz with the same four endpoint paths. Those keys and balances are separate from XYZ console accounts.
https://dev.2022915.xyzTry the API, right here.
Use a key created in your XYZ workspace. Requests go to dev.2022915.xyz. Nothing runs until you press Send request.
Authentication
Send your API key with every request using either header. Keep keys on your server.
X-API-Key: YOUR_KEY
# Or
Authorization: Bearer YOUR_KEYJSON endpoints use this response envelope. Report downloads return PDF bytes directly.
{ "success": true, "code": "OK", "message": "OK", "data": { ... } }1. Check your account
GET /api/v1/account
Returns your independent XYZ balance in USDT, available balance and reserved balance. The compatibility field passes is the number of whole checks available at the current price.
curl https://dev.2022915.xyz/api/v1/account \
-H "X-API-Key: YOUR_KEY"2. Submit a document
POST /api/v1/submissions
Your document is submitted unchanged; no content or personal information is removed. Multipart fields: file is required; external_id is optional. Use a unique external ID for each logical order. On a retry, reuse that ID to avoid duplicate submissions. Save the returned task_id. Submit multiple files as separate requests; this contract does not define a batch endpoint.
curl https://dev.2022915.xyz/api/v1/submissions \
-H "X-API-Key: YOUR_KEY" \
-F "file=@paper.docx" \
-F "external_id=my-order-123"3. Track the submission
GET /api/v1/submissions/{task_id}
Poll every 20–30 seconds. Wait for data.reports.similarity_pdf_ready and, if enabled, ai_pdf_ready. Ready reports include the corresponding *_download_url. Stop on a terminal failure; do not poll indefinitely.
curl https://dev.2022915.xyz/api/v1/submissions/TASK_ID \
-H "X-API-Key: YOUR_KEY"4. Download the report
GET /api/v1/submissions/{task_id}/reports/{type}
Use sim for Similarity or ai for AI screening if enabled. Successful downloads return the PDF file directly. Check the HTTP status and Content-Type before saving; error responses may be JSON. Download promptly.
curl --fail-with-body https://dev.2022915.xyz/api/v1/submissions/TASK_ID/reports/sim \
-H "X-API-Key: YOUR_KEY" \
-o report.pdfErrors & retries
| HTTP status | Action |
|---|---|
| 401 | Supply your API key. |
| 403 | Check whether your key is valid and active. |
| 400 | Correct the request before retrying. |
| 404 | Check the task ID and account ownership. |
| 429 / 5xx | Back off; honor Retry-After when supplied. |
On errors, success is false. Treat data as optional: servers may omit it or return an empty object. A submission timeout does not prove failure. Query the existing task or reconcile using its external ID before resubmitting. A completed check captures its reserved amount once. An explicitly failed check releases its reservation; this is not a Binance cash refund.