---
title: Invites
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[User](https://developers.cloudflare.com/api/go/resources/user)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Invites

##### [List Invitations](https://developers.cloudflare.com/api/go/resources/user/subresources/invites/methods/list)

client.User.Invites.List(ctx) (\*SinglePage\[[Invite](<https://developers.cloudflare.com/api/go/resources/user#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>)], error)

GET/user/invites

##### [Invitation Details](https://developers.cloudflare.com/api/go/resources/user/subresources/invites/methods/get)

client.User.Invites.Get(ctx, inviteID) (\*[Invite](<https://developers.cloudflare.com/api/go/resources/user#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>), error)

GET/user/invites/{invite\_id}

##### [Respond to Invitation](https://developers.cloudflare.com/api/go/resources/user/subresources/invites/methods/edit)

client.User.Invites.Edit(ctx, inviteID, body) (\*[Invite](<https://developers.cloudflare.com/api/go/resources/user#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>), error)

PATCH/user/invites/{invite\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Invite struct{…}

</summary>

InvitedMemberID string

ID of the user to add to the organization.

maxLength32

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20invited_member_id">Link to this property</a>

OrganizationID string

ID of the organization the user will be added to.

maxLength32

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20organization_id">Link to this property</a>

ID stringOptional

Invite identifier tag.

maxLength32

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

ExpiresOn TimeOptional

When the invite is no longer active.

formatdate-time

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20expires_on">Link to this property</a>

InvitedBy stringOptional

The email address of the user who created the invite.

maxLength90

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20invited_by">Link to this property</a>

InvitedMemberEmail stringOptional

Email address of the user to add to the organization.

maxLength90

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20invited_member_email">Link to this property</a>

InvitedOn TimeOptional

When the invite was sent.

formatdate-time

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20invited_on">Link to this property</a>

OrganizationIsEnforcingTwofactor boolOptional

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20organization_is_enforcing_twofactor">Link to this property</a>

OrganizationName stringOptional

Organization name.

maxLength100

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20organization_name">Link to this property</a>

Roles \[]stringOptional

List of role names the membership has for this account.

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20roles">Link to this property</a>

<details>

<summary>

Status InviteStatusOptional

Current status of the invitation.

</summary>

One of the following:

const InviteStatusPending InviteStatus = "pending"

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const InviteStatusAccepted InviteStatus = "accepted"

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const InviteStatusRejected InviteStatus = "rejected"

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const InviteStatusExpired InviteStatus = "expired"

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>)