M2M Authentication
Request M2M access token.
Public token endpoint using OAuth 2.0 Client Credentials Grant (RFC 6749).
Required: grant_type=client_credentials as a form parameter.
Supports two authentication methods (mutually exclusive):
- HTTP Basic Auth (preferred): Authorization header with Base64-encoded client_id:client_secret
- Form parameters (fallback): client_id and client_secret as form-urlencoded body parameters
Returns 400 if credentials are provided via both methods simultaneously.
post/v2/m2m/token
Request
- Base URLhttps://api.alianza.com
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body application/x-www-form-urlencoded
Response
Token successfully issued.
Example response
{
"tokenType": "Bearer",
"ttl": 86400
}Changes
No recorded changes to this operation across all 1 revision of this API.