Gtmhub provides a fully exposed RESTful API with endpoints that cover all the aspects of Gtmhub.
You can explore the API documentation, as well as test it out at: https://app.gtmhub.com/api/v1/docs/ - in case your account is on our EU data center
https://app.us.gtmhub.com/api/v1/docs/ - in case your account is on our US data center.
You can generate API token in Gtmhub configuration. To do so, follow these steps:
- Log in to Gtmhub
- Navigate to Setup > Configuration
- Select API tokens from the menu on the left
To generate an API token you need to give it a name and select the user that will be impersonated through this API token. The permissions you will have through the API depend on the permissions that impersonated user has.
Example: If the user you are impersonating does not have a permission to create new objectives, you will not be able to create objectives through the API. For full access, select a user who is an Admin in the account.
- Set the name of the API token
- Select the user that API will impersonate
Account ID and API Token
You can easily find the Account ID: navigate to Settings > Jira. When using the API Token, use the COPY button, as the token is longer than the string shown on the dashboard.
What comes next?
Now that you have your Account ID and API Key, you can get started using the API. Start with this Method Overview to learn about the most common API uses. And when you're ready, refer to these API Examples.