Keys and Secrets
Once you log into the Dashboard, you’ll find an API Keys section in the left menu. On that page, you can view your unique Client ID for the team. You’ll need this ID to authenticate with the Deck API. You will also see secret keys that are specific to each Team – Environment combination. Initially, only the Sandbox secret will be visible. To access the Production secret, go to Settings > Billing to upgrade your plan. Use the appropriate secret key for the correct environment:- Use the sandbox secret with the Sandbox environment
- Use the production secret with the Live environment
ImportantUsing a production secret with the Sandbox API or a sandbox secret with the Live API will result in a 401 Unauthorized error.
.png?fit=max&auto=format&n=IHsalzf9rkDTN463&q=85&s=2e4a0f68184b20e06b78581f26a1c5b4)
API Environments
Environment | URL |
---|---|
Sandbox | https://sandbox.deck.co/api/v1 |
Live | https://live.deck.co/api/v1 |
x-deck-client-id
and x-deck-secret
headers (and subdomain) in your API request will automatically update to match.
If you’re not using the Dashboard UI to run Jobs, make sure to manually update these headers and URLs in your integration code.
The Widget supports both environments and will automatically target the correct server based on the secret key that was used to generate the Link token.