CoinPay

General

API documentation

Full API specification is available at OpenAPI

Authentication

All endpoints require Bearer token.

Authorization: Bearer <token>

Each user has a personal token resolved against the users table (active rows only). Obtain one by signing in — the dashboard stores it in the session cookie and the proxy attaches it to every upstream call. For standalone API clients, generate a token via the create-user / update-user scripts in the API repo.

Error Handling

If a request fails, the response contains ok: false and a code field. Use code to determine the error — do not rely on HTTP status codes.

Supported Pairs

PairBaseQuote
RUBBYNRUBBYN

Error Codes

CodeHTTP StatusDescription
0001403Unknown error (default)
0000500Test error
1001403Antifraud
1002403Sanctions
2001401Unauthorized

On this page