Organizations API
Retrieve the organizations accessible to the current API token.
Endpoint
Section titled “Endpoint”GET /v1/organizationsReturns a map of organization names to IDs for all organizations accessible to the token bearer. Only organizations with an active subscription are included (unless the bearer is a super admin).
Response
Section titled “Response”{ "Acme Manufacturing": 12, "Acme Tooling": 15}Use the numeric organization ID as the :organization_id path segment in all other API requests.
Examples
Section titled “Examples”curl https://api.toolingmetrics.com/v1/organizations \ -H "Authorization: Bearer YOUR_TOKEN"import requests
response = requests.get( "https://api.toolingmetrics.com/v1/organizations", headers={"Authorization": "Bearer YOUR_TOKEN"},)response.raise_for_status()
orgs = response.json()# {"Acme Manufacturing": 12, "Acme Tooling": 15}
# Get the ID for a specific organization by nameorg_id = orgs["Acme Manufacturing"]- No
organization_idpath parameter is needed for this endpoint. - The response lists only organizations where the token bearer has membership.
- Organizations with an inactive subscription are excluded.