Skip to main content

Credentials

A credential is a client ID and a client secret for one environment.

Create a credential​

On the app's Credentials tab, pick the environment (Production or Sandbox) and choose New credential. You can give it a label and an expiry date.

The secret is shown once. Copy it into your server's secret store straight away. Agantia keeps only a hash and cannot show it again.

ProductionSandbox
Client IDlive_...test_...
Client secretsk_live_...sk_test_...

Each environment can have up to 5 active credentials, which lets you give each server its own.

Rotate a secret​

Choose Rotate on a credential. You get a new client ID and secret. The old secret keeps working for a grace period that you choose, from 0 to 168 hours (24 by default), so you can switch your servers over without downtime.

Revoke a credential​

Choose Revoke. Token requests with it fail at once, and tokens already issued with it stop working within seconds.

Keep secrets safe​

  • Use secrets only on servers. Never in browsers, mobile apps, or front-end code.
  • If a website needs data that requires a secret, call the API from your own backend (backend for frontend) and pass only what the page needs.
  • Rotate secrets when someone with access leaves, and when a secret may have leaked.