Authentication
For simpler integrations or server-to-server communication, Motive provides API keys. These are unique tokens assigned to your organisation, which must be included in API requests to authenticate and authorize access.
Each organisation has a unique API key assigned to it and it tells the API to fetch the corresponding relevant information, rather than just sending all of the data.
To generate your API key, take the following steps:
- Log in to the Motive Dashboard using your credentials.
- At the bottom of the menu, click the admin icon (first icon).
The admin view appears. - Scroll down to locate and select the Developers option.
- On the Developers page, click +Request API Key.
A pop-up appears. - Provide a name for the API key OR you may directly click Save.
You have now successfully generated an API key for yourself. Repeat the steps if you want to generate another API Key. Motive allows you to generate multiple API keys for multiple applications.
The Developers page will display all the API keys that you generate for your organisation.
TEST MODE
You can use your API keys straightaway in your applications. To ensure everything is working as intended, you can use the API key in Test Mode, that will not make changes to the actual or live data.
To enable test mode:
- Navigate to the Developers page.
- For the desired API. click the TEST MODE checkbox.
After you generate the API key, you must add it to the header of the API endpoint.
Header Name | Value |
---|---|
X-API-Key | YOUR API KEY |
Updated 6 months ago