Troubleshooting Error 2204 & 2205 - "You're Not Authorized to do that"

Error code 2205 is an authorisation error, meaning the Sec Key you used in running your query is not authorised to perform the job. There are two different scenarios that can result in this error:

  1. Using a Sandbox Key in Production or vice versa

  2. Sec Key calculation error

Sec Key Miscalculation

1. Wrong environment API Key - Confirm you're using the right environment API key i.e. for Sandbox Sec Key, you will use Sandbox API Key, likewise for Production Sec Key you will use Production API. You can switch between Sandbox and Production by using the toggle in the portal.

In-Portal Environment Toggle

2. Missed a step in calculating the Sec Key - You can follow these instructions to calculate your Sec Key.

Hitting the Wrong Endpoint

Although our Mobile SDKs & Server-side Libraries handle which endpoint to call based on environment variable you set, you can still confirm you're hitting the appropriate environment endpoint (Production or Sandbox)

Environment

Base URL

Sandbox

https://testapi.smileidentity.com/

Production

https://api.smileidentity.com/