REST credentials: API keys and OAuth clients · FAQ
How do I get an OAuth access token for the Casafari REST API with client credentials?
Create an OAuth client in the console at platform.casafari.com, then request a token at https://platform.casafari.com/oauth/token with the client credentials grant and resource set to the product's URL.
- Create the OAuth client in https://platform.casafari.com/console and keep its credentials on your server.
- Request an access token at https://platform.casafari.com/oauth/token with the client credentials grant. Set
resourceto the URL of the product you will call, for examplehttps://platform.casafari.com/v1/area-insightsfor Area Insights. - Call that product with the access token.
- Access tokens last 15 minutes and there is no refresh token: when one expires, request a new one the same way.
The exact request body, client authentication method and response are not published here; Casafari can answer (https://www.casafari.com/). For the difference from an API key, see API key or OAuth client?; for tokens on the Casafari MCP server, see token expiry and unattended agents.
Existing Casafari clients use an API client instead, exchanged at https://api.casafari.com/oauth/token.