Creating API Keys
The PolicyMate API authenticates requests using API keys. An API key belongs to your organisation rather than to a person, so it keeps working as people join or leave your team. Organisation admins may create keys from the API Keys screen of PolicyMate’s settings. When creating a key, you give it a name, such as “Data warehouse”, and choose the workspaces it may read. The key itself is only displayed once, so you should store it somewhere safe immediately.Making Authenticated Requests
When making requests, include the key in theAuthorization header as a Bearer token. You should also send an Accept: application/json header so that errors are returned as JSON:
What an API Key May Access
The API is read-only. An API key may read every bill, document, and other record in the jurisdictions and sources your organisation has access to. Workspaces, topics, and recommendations are only available for the workspaces chosen for that key. When choosing workspaces, an admin may select any shared workspace in the organisation, along with any private workspace the admin is a member of. Personal workspaces are never available to API keys. Every workspace a key can read lists that key in its settings, so its members always know which systems can see it.To change topics, preferences, or feedback on recommendations, use the PolicyMate app or the MCP connector. The API never changes your workspaces.