User

user

Methods

Edit User -> Envelope<unknown>
patch/user

Edit part of your user details.

User Details -> Envelope<unknown>
get/user

User Details

User

Audit Logs

user.audit_logs

Methods

Get User Audit Logs -> V4PagePaginationArray<>
get/user/audit_logs

Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.

User

Billing

user.billing

user.billing.history

Methods

Billing History Details -> V4PagePaginationArray<>
get/user/billing/history

Accesses your billing history object.

Domain types

BillingHistory = { id, action, amount, 5 more... }

user.billing.profile

Methods

Billing Profile Details -> Envelope<{ id, account_type, address, 36 more... }>
get/user/billing/profile

Accesses your billing profile object.

User

Invites

user.invites

Methods

Respond To Invitation -> Envelope<>
patch/user/invites/{invite_id}

Responds to an invitation.

Invitation Details -> Envelope<>
get/user/invites/{invite_id}

Gets the details of an invitation.

List Invitations -> SinglePage<>
get/user/invites

Lists all invitations associated with my user.

Domain types

Invite = { invited_member_id, organization_id, id, 8 more... }
User

Organizations

user.organizations

Methods

Leave Organization -> { id }
delete/user/organizations/{organization_id}

Removes association to an organization.

Organization Details -> Envelope<unknown>
get/user/organizations/{organization_id}

Gets a specific organization the user is associated with.

List Organizations -> V4PagePaginationArray<>
get/user/organizations

Lists organizations the user is associated with.

Domain types

Organization = { id, name, permissions, 2 more... }
User

Subscriptions

user.subscriptions

Methods

Delete User Subscription -> { subscription_id }
delete/user/subscriptions/{identifier}

Deletes a user's subscription.

Get User Subscriptions -> Envelope<Array<>>
get/user/subscriptions

Lists all of a user's subscriptions.

Update User Subscription -> Envelope<unknown>
put/user/subscriptions/{identifier}

Updates a user's subscriptions.

User

Tokens

user.tokens

Methods

Create Token -> Envelope<{ id, condition, expires_on, 8 more... }>
post/user/tokens

Create a new access token.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY

Response fields
errors: Array<>
messages: Array<>
success: true

Whether the API call was successful

result: { id, condition, expires_on, 8 more... }
Optional
Request example
200Example
Delete Token -> Envelope<{ id }>
delete/user/tokens/{token_id}

Destroy a token.

Token Details -> Envelope<>
get/user/tokens/{token_id}

Get information about a specific token.

List Tokens -> V4PagePaginationArray<>
get/user/tokens

List all access tokens you created.

Update Token -> Envelope<>
put/user/tokens/{token_id}

Update an existing token.

Verify Token -> Envelope<{ id, status, expires_on, 1 more... }>
get/user/tokens/verify

Test whether a token works.

UserTokens

Permission Groups

user.tokens.permission_groups

Methods

List Token Permission Groups -> SinglePage<unknown>
get/user/tokens/permission_groups

Find all available permission groups for API Tokens

user.tokens.value

Methods

Roll Token -> Envelope<>
put/user/tokens/{token_id}/value

Roll the token secret.