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?
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.
To find your personal access credentials, go to https://scrive.com/account#api-dashboard (for production, prepend api-testbed to the hostname for api-testbed credentials).