Making Requests
Structuring a request to Plannr's API
Update from 29th November 2024 - Plannr now offers a new field "preferred_account_uuid" which can be used, however if you have built your integration before this date, you will not be enrolled in the new authentication. Please get in touch with integrations@plannrcrm.com if you would like your integration to use this new "Preferred Account" specified by users.
Getting the X-PLANNR-ACCOUNT-UUID header
Most of Plannr's API endpoints support multi-tenancy. This means a UUID must be specified for the account that you want to access data for. This UUID must be passed into a header called X-PLANNR-ACCOUNT-UUID
, and API requests that require it will throw an error if you do not provide it.
You can get the X-PLANNR-ACCOUNT-UUID
header value by making a GET request to https://api.plannrcrm.com/api/v1/logins
with your access token retrieved in the step before. This endpoint will return a list of logins that the user you have connected with has, and you can iterate through these logins, and access the account->uuid to get the X-PLANNR-ACCOUNT-UUID
If you have built your integration after 29th November 2024, there is an additional field in this API response called preferred_account_uuid
, which we recommend using, as this is the account they have requested you to use. Otherwise, you should iterate through each of the accounts and use the one that is most suitable. Please note that some users may have an admin account and a client account on one user, so be cautious which one you select.
Please note the api/v1/logins route will return logins, with accounts within each login object, you must use the uuid field within the account object of each login for this. to work.
Required Request Headers
Whenever you make a request to the Plannr API, there are a number of required headers you MUST send with the request:
Accept: application/json
Content-Type: application/json
Authorization: Bearer YOUR-ACCESS-TOKEN
X-PLANNR-ACCOUNT-UUID: ACCOUNT-UUID
(On most API calls, not all)
Last updated