> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get organization membership

> Get one Calendly organization membership by UUID.

`calendly.getOrganizationMembership` returns a member's role, user profile, organization URI, and membership timestamps.

```ts automations/get-calendly-membership.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { calendly } from "automate.ax/calendly"

export default automation("Get Calendly membership", () => {
  onDashboardRun({ title: "Get Calendly membership" })
  const membership = calendly.getOrganizationMembership({
    membershipId: "membership-id",
  })
  sendEmail({ subject: membership.user.name, text: membership.role })
})
```

Pass only the final UUID segment, not the complete membership URI.
