Skip to main content
The Memberships API allows you to manage user memberships across Cloudflare accounts, including accepting or rejecting invitations and viewing membership details.

List memberships

List all memberships of accounts the user can access.
object
Filter by account
string
Filter by account name
string
Filter by membership statusOptions: accepted | pending | rejected
string
Field to order memberships byOptions: id | account.name | status
string
Direction to order membershipsOptions: asc | desc
number
Page number for pagination
number
Number of items per page
string
Membership identifier tag
object
Account details
string
Status of this membership: accepted, pending, or rejected
string[]
List of role names the membership has for this account
object
All access permissions for the user at the account
boolean | null
Enterprise only. Indicates whether API access is enabled for this user on the account

Get membership

Retrieve details about a specific membership.
string
Membership identifier tag
object
Account information
string
Membership status: accepted, pending, or rejected
string[]
Role names assigned to this membership
object
Access permissions for the user
object[]
Access policies for the membership
boolean | null
Whether API access is enabled (Enterprise only)

Update membership

Accept or reject an account invitation.
string
required
Whether to accept or reject the invitationOptions: accepted | rejected
string
Membership identifier tag
string
Updated membership status
object
Account details
string[]
Assigned roles
object
User permissions
object[]
Access policies applied to the membership

Delete membership

Remove the associated member from an account.
string
ID of the deleted membership