2022915.xyzDOCUMENT CHECK API
DEVELOPER DOCUMENTATION

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.

API BASE URLhttps://dev.2022915.xyz
BUILD. SEND. INSPECT.

Try the API, right here.

LIVE REQUESTS

Use a key created in your XYZ workspace. Requests go to dev.2022915.xyz. Nothing runs until you press Send request.

Your key stays in this page’s memory, is sent only with your chosen request, and is not saved in browser storage. Existing api.2022915.xyz keys belong to the separate legacy service.

GET /api/v1/account
View cURL request Key omitted
ResponseReady
Your live response will appear here.

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_KEY

JSON 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.pdf

Errors & retries

HTTP statusAction
401Supply your API key.
403Check whether your key is valid and active.
400Correct the request before retrying.
404Check the task ID and account ownership.
429 / 5xxBack 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.