Skip to main content
Every SolvaPay REST API request goes to one base URL and carries a secret API key.

Get a secret key

  1. Sign in to SolvaPay Console. If you don’t have an account, create one.
  2. Click Developers in the sidebar.
  3. Under API Keys > Sandbox keys, click Generate sandbox key and copy the key.
  4. Store it as an environment variable, for example SOLVAPAY_SECRET_KEY.
Secret keys are server-side credentials. Don’t put them in browser code, mobile apps, or public repositories.

Sandbox and production

Sandbox and production use the same base URL. The key prefix selects the environment: A key only works while your account is in its environment. A new account starts in sandbox, so build and test with a sandbox key. When you go live and switch the account to production in SolvaPay Console, replace the key with a production key. If you switch back to sandbox, switch back to the sandbox key too. A key for the other environment is rejected with 403 (see Authentication errors).

Make your first request

List the products in your account:
A 200 response with a JSON body means your key and base URL are correct. A new account can return an empty list. The TypeScript SDK uses the same base URL by default and reads the key from SOLVAPAY_SECRET_KEY.

Authentication errors

A 403 body names both environments and the key to use:

Admin MCP Server

The admin MCP Server at https://mcp.solvapay.com/mcp signs you in with OAuth, so you don’t need a key to connect it. OAuth sessions use the environment your account is in. The server also accepts these secret keys as Authorization: Bearer <secret key> for clients that can’t open a browser. The same rule applies there: the key must match the account’s current environment.