Authentication
Authenticate API requests with Bearer tokens.
All API requests require authentication via an API key sent as a Bearer token in the Authorization header.
Shell
curl https://paysio.com/api/v1/products \
-H "Authorization: Bearer sk_live_your_api_key"API key types
| Prefix | Type | Mode | Use for |
|---|---|---|---|
| sk_live_ | Secret | Production | Server-side. Full access to all endpoints. |
| sk_test_ | Secret | Sandbox | Server-side testing. Uses sandbox data. |
| pk_live_ | Publishable | Production | Client-side. Read-only access. |
| pk_test_ | Publishable | Sandbox | Client-side testing. Sandbox read-only. |
Secret keys (sk_*) are required for write operations (creating charges, refunding, etc). Never expose secret keys in client-side code.
Base URL
All API endpoints are relative to the base URL:
https://paysio.com/api/v1Example: GET https://paysio.com/api/v1/products