Dashboard API > Organization role
Retrieve an organization role
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.
Returns
Returns a resource object of type organization_role.
Examples
GET https://site-api.datocms.com/organization-roles/:field_id_or_api_key HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3curl -g 'https://site-api.datocms.com/organization-roles/:field_id_or_api_key' \ \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3"await fetch( "https://site-api.datocms.com/organization-roles/:field_id_or_api_key", { 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_role", "id": "312", "attributes": { "name": "Owner", "can_read_everything": true, "can_access_sites_as_owner": true, "can_create_new_sites": true, "can_edit_sites": true, "can_manage_site_transfers": true, "can_delete_sites": true, "can_manage_members": true, "can_manage_billing": true, "can_manage_organization": true } }}