---
title: Invites
---

[Skip to content](#_top)

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

[User](https://developers.cloudflare.com/api/python/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/python/resources/user/subresources/invites/methods/list)

user.invites.list() -> SyncSinglePage\[[Invite](<https://developers.cloudflare.com/api/python/resources/user#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>)]

GET/user/invites

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

user.invites.get(strinvite\_id) -> [Invite](<https://developers.cloudflare.com/api/python/resources/user#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>)

GET/user/invites/{invite\_id}

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

user.invites.edit(strinvite\_id, InviteEditParams\*\*kwargs) -> [Invite](<https://developers.cloudflare.com/api/python/resources/user#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>)

PATCH/user/invites/{invite\_id}

##### ModelsExpand Collapse

<details>

<summary>

class Invite: …

</summary>

invited\_member\_id: Optional\[str]

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>

organization\_id: str

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: Optional\[str]

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>

expires\_on: Optional\[datetime]

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>

invited\_by: Optional\[str]

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>

invited\_member\_email: Optional\[str]

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>

invited\_on: Optional\[datetime]

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>

organization\_is\_enforcing\_twofactor: Optional\[bool]

<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>

organization\_name: Optional\[str]

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: Optional\[List\[str]]

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: Optional\[Literal\["pending", "accepted", "rejected", "expired"]]

Current status of the invitation.

</summary>

One of the following:

"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>

"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>

"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>

"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)>)