Purpose: Learn how to generate OAuth credentials and use Postman to obtain an access token for the Administrate GraphQL API.
Related: OAuth documentation (Developer Portal)
Mental model: OAuth and access tokens
To access the Administrate API, you must:
- Create a developer application (Client ID and Client Secret)
- Authenticate a user against an Administrate instance
- Receive an access token to use in API requests
Postman simplifies this process by handling the OAuth flow for you.
Contents
Generate a Client ID and Client Secret
First, create a developer application to generate your credentials.
- Go to https://developer.getadministrate.com/account/my-appsÂ
- Click Create application
- Enter a name (used when connecting the app to an instance)
- Set the OAuth callback URL:
- Use your own callback URL, or
- Use Postman’s default:
https://postman-echo.com/get
- Optional: add a description
- Click Create application and copy:
- Client ID (API Key)
- Client Secret (API Secret)
These credentials are required to authenticate and request access tokens.
Use Postman to get an access token
Set up Postman
- Download and install Postman
- Import the provided Postman collection (OAuth 2 template)
- Open the request: OAuth 2 with Administrate for GraphQL
Configure OAuth settings
- Go to the Authorization tab
- Paste your:
- Client ID
- Client Secret
- Ensure the following values are set:
Callback URL: https://postman-echo.com/get Auth URL: https://auth.getadministrate.com/oauth/authorize Access Token URL: https://auth.getadministrate.com/oauth/token Scope: instance Client Authentication: Send client credentials in body
Request an access token
- Click Get New Access Token
- Enter your Administrate instance URL
- Log in as a valid user
- Approve access
Postman will return:
- Access token (used for API requests)
- Refresh token (used to generate new access tokens)
You can now authenticate API calls using the access token.
Note: The refresh token does not expire and can be reused to generate new access tokens.
Troubleshooting
Error: Invalid client_id parameter value
This usually means your Client ID is incorrect.
- Copy the API Key again from your developer account
- Update the value in Postman
Error: invalid_client
This usually means your Client Secret is incorrect.
- Copy the API Secret again
- Update the value in Postman
- Check if the secret was regenerated