PHP Client for Cloudflare API
Client Reference

Memberships

Memberships endpoint reference.

List

List memberships of accounts the user can access.

ParamTypeRequiredDefaultDescription
paramsarrayNo[]Array containing the necessary params.
php
$response = $client->memberships()->list([]);
View this operation on the Cloudflare API Reference

Get

Get a specific membership.

ParamTypeRequiredDefaultDescription
membershipIdstringYesMembership identifier tag.
php
$response = $client->memberships()->get('MEMBERSHIP_ID');
View this operation on the Cloudflare API Reference

Update

Accept or reject this account invitation.

ParamTypeRequiredDefaultDescription
membershipIdstringYesMembership identifier tag.
statusstringYesStatus of this membership, e.g. accepted, rejected.
php
$response = $client->memberships()->update('MEMBERSHIP_ID', 'STATUS');
View this operation on the Cloudflare API Reference

Delete

Remove the associated member from an account.

ParamTypeRequiredDefaultDescription
membershipIdstringYesMembership identifier tag.
php
$response = $client->memberships()->delete('MEMBERSHIP_ID');
View this operation on the Cloudflare API Reference
Copyright © 2026