Dashboard API > Organization mandate
List all mandates that the organization has been given
Warning: Experimental API
Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.
Query parameters
includestring
Comma-separated list of relationship paths. A relationship path is a dot-separated list of relationship names. Allowed relationship paths: active_plan, additional_enabled_plans.
Example:
"active_plan,additional_enabled_plans"
Returns
Returns an array of resource objects of type organization_mandate.
Examples
GET https://site-api.datocms.com/organization-mandates/given HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3curl -g 'https://site-api.datocms.com/organization-mandates/given' \ \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3"await fetch("https://site-api.datocms.com/organization-mandates/given", { headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", },});HTTP/1.1 200 OKContent-Type: application/jsonCache-Control: cache-control: max-age=0, private, must-revalidateX-RateLimit-Limit: 30X-RateLimit-Remaining: 28
{ "data": [ { "type": "organization_mandate", "id": "312", "meta": { "appointed_organization_name": false, "mandator_organization_name": false }, "relationships": { "active_plan": { "data": { "type": "per_owner_pricing_plan", "id": "124" } }, "additional_enabled_plans": { "data": [ { "type": "per_owner_pricing_plan", "id": "124" } ] }, "mandator_organization": { "data": { "type": "organization", "id": "124" } }, "appointed_organization": { "data": { "type": "organization", "id": "124" } } } } ]}