API error
TOKEN_ENVIRONMENT_MISMATCH
HTTP 401
What it means
The token is valid, but for the other environment: a sandbox token sent to live, or a live token sent to sandbox.
What to do
Use a token issued for this environment.
The response
HTTP/1.1 401
content-type: application/json
{
"error": {
"code": "TOKEN_ENVIRONMENT_MISMATCH",
"message": "The token is valid, but for the other environment: a sandbox token sent to live, or a live token sent to sandbox.",
"requestId": "req_9Tx4pLm2",
"docs": "https://signrs.com/docs/errors/TOKEN_ENVIRONMENT_MISMATCH"
}
}