3.0.0
Search
K
Links

Organization membership requests

Frontend API endpoints to manage organization memberships

Available requests

  • POST /v1/organizations/:organization_id/memberships
  • GET /v1/organizations/:organization_id/memberships
  • PATCH /v1/organizations/:organization_id/memberships/:user_id
  • DELETE /v1/organizations/:organization_id/memberships/:user_id

The organization membership object

{
"object": "organization_membership",
"id": "orgmem_21Ufcy98STcA11s3QckIwtwHIES",
"public_metadata": {},
"role": "basic_member",
"created_at": 1638000669544,
"updated_at": 1638000669544,
"organization": {
"object": "organization",
"id": "org_21Ufcy98STcA11s3QckIwtwHIES",
"logo_url": "https://images.clerk.services/default-logo.png",
"name": "Acme Inc",
"public_metadata": {},
"slug": "acme-inc",
"created_at": 1638000669544,
"updated_at": 1638000669544
},
"public_user_data": {
"first_name": "Sarah",
"last_name": "Connor",
"profile_image_url": "https://images.clerk.dev/uploaded/img_jlkkcq2786n0.jpeg",
"identifier": "[email protected]",
"user_id": "user_1o4q123qMeCkKKIXcA9h8"
}
}
post
https://clerk.example.com
/v1/organizations/:organization_id/memberships
Add member to organization
get
https://clerk.example.com
/v1/organizations/:organization_id/memberships
Retrieve a list of organization memberships
patch
https://clerk.example.com
/v1/organizations/:organization_id/memberships
Update an organization membership
delete
https://clerk.example.com
/v1/organizations/:organization_id/memberships
Delete an organization membership