v4 Authentication
POST /v4/auth/token
Exchange client credentials for a bearer token.
Request
json
{
"clientId": "ra_client_XXXX",
"clientSecret": "YOUR_SECRET"
}Response 200
json
{
"accessToken": "eyJhbGciOi...",
"expiresIn": 3600,
"tokenType": "Bearer"
}Errors
| Status | Cause |
|---|---|
400 | Missing clientId or clientSecret |
401 | Invalid credentials, or the client is disabled |
Tokens are valid for 1 hour. See Authentication for the x-api-key alternative.
GET /v4/endpoints
Lists the operations your integration client is permitted to call. Useful for building a feature matrix in your own app.
bash
curl https://sandboxclient-api.roofangle.com/v4/endpoints \
-H "Authorization: Bearer eyJhbGciOi..."