Authentication
Test keys, live keys, read-only keys and the IP allowlist.
Every server call carries your application's API key:
Authorization: Bearer sk_test_...| Prefix | Mode | Effect |
|---|---|---|
sk_test_ | Test | Sandbox: no money moves. |
sk_live_ | Live | Real payments. |
The key determines the application: you never pass an application id in the request.
Key access
When you create a key, the dashboard lets you choose its access:
| Access | Effect |
|---|---|
| Full | Creates, reads and cancels payments. |
| Read-only | Reads payments (and, through the MCP server, the balance and statement), but never creates or cancels one: 403 read_only_key. |
Give a read-only key to anything that does not need to write: an agent connected to the MCP server, an analytics or reconciliation tool. Access is checked again on every write: a revoked key stops writing from the very next request.
FLOWPAY_URL, the API address you are given when your access opens, is the base of every path: $FLOWPAY_URL/v1/payments.
Authentication failures
A missing, unknown or revoked key gives 401 unauthenticated, with no further detail: the reason is never spelled out. A deactivated application gives 403 application_not_active. See Errors.
An application has at most five active keys: revoke one before creating another.
Rate limit
Each application can make 60 requests per minute. Beyond that, the API answers 429 too_many_requests with a Retry-After header (in seconds): wait that long.
Every accepted response carries X-RateLimit-Remaining, the number of requests left in the minute. The header may be missing: do not rely on it.
To follow a payment, prefer the webhook over repeated polling.
Good practice
- Keep your keys on the server. Never put them in a mobile app or a web page.
- Revoke a compromised key from the dashboard: it is refused immediately.
- Restrict access with an IP allowlist in the application settings: a request from any other address is refused (403).