Skip to content

How do I authenticate API requests?

Send your secret key in the Authorization header of every request, over HTTPS.

  • The key goes in the Authorization header of every request, and nowhere else. A key in the address, the query string or the body is refused. The API reference shows the exact format.
  • HTTPS only. Plain HTTP requests are refused.
  • One body format for requests and responses, as the API reference shows.
  • Amounts are whole numbers of cents with a currency code: 2599 and usd is $25.99. Decimal amounts are refused.
  • Every response carries a request ID. Keep it in your logs: it finds the request in Developers → Logs, and it's the fastest way for support to help you.

A missing, malformed or unknown key gets the same refusal, so a wrong key reveals nothing.

Search help articles

Find an answer in the Sovgate help center and jump straight to it.