Authorization header. You can send your API key with each request or exchange it for an access token.
Use an API key
Send your API key on every request:ApiKey prefix:
Use an access token
CallPOST /api/partner/v1/auth/token with your API key in the Authorization header. The response includes an access token, a JWT that authenticates subsequent requests:
Token lifetime and renewal
Access tokens are valid for one hour, as indicated byexpiresIn: 3600. When a token expires, exchange your API key for a new access token. There is no refresh token.
Rotation and account deactivation
When GroGov rotates an API key, requests using the previous key fail immediately. Access tokens already issued from that key remain valid until they expire. Deactivating your API account blocks requests using either credential on the next request. Contact GroGov support to rotate or revoke your API key or deactivate your account.Authentication failures
The following conditions return401 Unauthorized:
- A missing or malformed API key, including a key without the
pc_prefix. - An unknown or revoked API key.
- An inactive API account.
- A malformed or expired access token.
Authentication examples
The following examples show the sameGET /api/partner/v1/payments call using each authentication method: