Dashboard API > Organization membership
Retrieve an organization membership
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: role.
Example:
"role"
Returns
Returns a resource object of type organization_membership
Examples
import { buildClient } from "@datocms/dashboard-client";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const organizationMembershipId = "312";
const organizationMembership = await client.organizationMemberships.find( organizationMembershipId, );
// Check the 'Returned output' tab for the result ☝️ console.log(organizationMembership);}
run();{ id: "312", meta: { email: "foo@bar.com" }, role: { type: "organization_role", id: "312" },}