Server-to-Server OAuth Grant Type

Attempting to use a Server-to-Server OAuth or regular OAuth App to retrive authorization bearer token. Then use this key to authenticate to the List Users Endpoint.

Able to retrieve bearer token, however recieve a {“code”:200,“message”:“Invalid api key or secret.”} error when sending GET request to

API Endpoint/s?
List Users

How To Reproduce
Steps to reproduce the behavior:
1. Request URL / Headers (without credentials) / Body
Method: GET
“Authorization”: “Bearer {my_token_here}”
Body: null

2. Authentication method or app type
Server-to-Server OAuth & Regular OAuth

3. Any errors
{“code”:200,“message”:“Invalid api key or secret.”}

Additional context
Have used the the three grant types as query parameters:
- grant_type=client_credentials
- grant_type=authorization_code
- grant_type=account_credentials

1 Like

Fixed by using the follow query parameters: ?grant_type=account_credentials&account_id={account_id}{account_id} can be found by making a GET request

See Getting Account ID for server-to-server OAuth

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.