All Monitoring API endpoints require authentication, except for the health check endpoint.
Required role
You must have admin or owner role in the workspace to access the Monitoring API. Regular workspace members cannot access these endpoints.
Requests without the proper role return a 401 Unauthorized error.
To learn about workspace roles, see Managing your workspace members.
API key
Include your API key in a header with all requests:
Example request
curl --request GET \
--url http://localhost:3000/api/v1/monitoring/analytics/{workspace_id} \
--header 'api_key: <api_key>'
Get your API key
To get your API key:
- Click your profile icon at the top right of your account.
- Click Settings.
- Select the Account tab.
- Scroll down to the API Key section.
Your API key provides access to your workspace. Do not share it with others.
Only use it in a secure environment.