OAuth
Issue OAuth Token
Changed onCreates access token for OAuth client credentials grant.
This endpoint is rate limited to 60 requests per minute per client and source IP address. When the limit is exceeded, the endpoint responds with HTTP 429. Reuse the issued token until it expires instead of requesting a new one for each API call.
post/auth/token
Request
- Base URLhttps://example.piwik.pro
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"grant_type": "client_credentials"
}Response
OK
Example response
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJvYXV0aCIsImF1ZCI6IkNsaWVudC1OYW1lLVdqZFRjSjQyIiwiaWF0IjoxNjgwMjYwNzQyLCJleHAiOjE2ODAyNjI1NDIsInN1YiI6ImRiZTg3ZDlmLWMxYWItNGM4ZC05YWJjLTQ1MWViMzA3MTM2NyIsIm9yZyI6ImRlZmF1bHQiLCJlbWwiOiJleGFtcGxlQHBpd2lrLnBybyJ9.XDfDhKN0RInyHQBhzJD8ul_ai047QaAnQQfFQRzsJqoom0rOCir7aO4GGaJsBdWDamaFUiRC15jTH7l-TANqkHd1TV4ujDQJoKRdUt7vCxd1NdH8S6hXfDUJhVjNYYs-CLb08Od2-CqfTuR8SA3CCZX-jQRCGZjeMe6AlSwV-wEt3zgKTs8tzxThKd3KH6uKTmJRmKK-zObEPx4mYCPjpz-32LNqD-XKV1Th21aElz0X18pmahREWCcA8qHYnxOrTVFO9pPuTOvsHx9Wo8m1zou5s9u9PzFapScO_Wi7n6QpMObaLrxtd3T1Bk0eIwi2ujYIeb7wPWYJdcB3qmfBkg"
}Changes
- info
added the non-success response with the status
- info