Tokens

Get a valid access and refresh token.

Generate tokens

POST https://api.petje.af/v1/oauth2/tokens

This endpoint allows you to exchange an authorization_code or refresh_token for a valid access_token Use application/x-www-form-urlencoded for the POST request

Request Body

{
    "access_token": "ACCESS TOKEN (JWT)",
    "token_type": "Bearer",
    "expires_in": 3599,
    "refresh_token": "REFRESH TOKEN",
    "scope": "memberships.read"
}

Last updated