You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emanuel Harling edited this page Dec 1, 2022
·
8 revisions
Access tokens
The access_token expires after 1 hour
Obtain a token
To obtain a token you POST to https://api.pinmeto.com/oauth/token (https://api.test.pinmeto.com/oauth/token for test environment). You need to include your
credentials in the Authorization header ("Basic " + '<<app id>>:<<app secret>>'), make sure to concatenate and then base64 encode the app_id:app_secret. Pass
grant_type="client_credentials" in the request body, for example:
To quickly validate that your app credentials work, run this curl row in your terminal.
The app_id/app_secret part for a curl call should not be concatenated and base64 encoded, just paste them in separated by a colon.