Generate an access token using OAuth 2.0 Client Credentials Flow. This is a standard OAuth 2.0 token endpoint for machine-to-machine authentication.
Request body for generating an OAuth access token using client credentials
Access token generated successfully
Bad request error
Unauthorized error
Internal server error
curl -i -X POST \ https://api-prod.surfsight.net/v2/oauth/token \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d grantType=client_credentials \ -d clientId=abc123def456 \ -d clientSecret=secret_abc123xyz789 \ -d scope=all
{- "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "tokenType": "Bearer",
- "expiresIn": 14400,
- "refreshExpiresIn": 0,
- "notBeforePolicy": 0,
- "scope": "all",
- "requestId": "06327cae-e075-42ca-b620-c5cfdd3b4e37"
}