Authorization header on subsequent requests.
Authentication flow
- Request an access token from the token endpoint using your Peerlogic username and password.
- Copy the
access_tokenvalue from the response. - Include the token in the
Authorizationheader for every secured API request. - Request a new token when the current token expires or the API returns
401 Unauthorized.
Access to individual resources is determined by the permissions assigned to your Peerlogic account. A valid token can still receive
403 Forbidden when the account does not have access to the requested resource.Request a token
Send a form-encodedPOST request to:
string
required
Your Peerlogic username, usually your email address.
string
required
The password associated with your Peerlogic account.
string
default:"password"
Use
password.string
default:"json"
Use
json.Token response
A successful response includes an access token, refresh token, expiration period, token type, and granted scope.Authorize a request
Add the access token to theAuthorization header. The word Bearer must precede the token, separated by a space: