401 error when calling the production environment

When calling the production environment on scrive.com using my API client code, I keep getting a 401 error. This does not happen when calling the API on api-testbed.scrive.com and I have not changed anything in my code. Why is this?

Solution

As an API client, you authenticate against the API using (usually) a set of personal access credentials. The production environment and the api-testbed environment do not share user databases, so you need to use an account in the corresponding system.