Skip to content
Primary navigation

Invites

List invites
client.Admin.Organization.Invites.List(ctx, query) (*ConversationCursorPage[Invite], error)
GET/organization/invites
Create invite
client.Admin.Organization.Invites.New(ctx, body) (*Invite, error)
POST/organization/invites
Retrieve invite
client.Admin.Organization.Invites.Get(ctx, inviteID) (*Invite, error)
GET/organization/invites/{invite_id}
Delete invite
client.Admin.Organization.Invites.Delete(ctx, inviteID) (*AdminOrganizationInviteDeleteResponse, error)
DELETE/organization/invites/{invite_id}
ModelsExpand Collapse
type Invite struct{…}

Represents an individual invite to the organization.

ID string

The identifier, which can be referenced in API endpoints

CreatedAt int64

The Unix timestamp (in seconds) of when the invite was sent.

formatunixtime
Email string

The email address of the individual to whom the invite was sent

Object OrganizationInvite

The object type, which is always organization.invite

Projects []InviteProject

The projects that were granted membership upon acceptance of the invite.

ID string

Project’s public ID

Role string

Project membership role

One of the following:
const InviteProjectRoleMember InviteProjectRole = "member"
const InviteProjectRoleOwner InviteProjectRole = "owner"
Role InviteRole

owner or reader

One of the following:
const InviteRoleOwner InviteRole = "owner"
const InviteRoleReader InviteRole = "reader"
Status InviteStatus

accepted,expired, or pending

One of the following:
const InviteStatusAccepted InviteStatus = "accepted"
const InviteStatusExpired InviteStatus = "expired"
const InviteStatusPending InviteStatus = "pending"
AcceptedAt int64Optional

The Unix timestamp (in seconds) of when the invite was accepted.

formatunixtime
ExpiresAt int64Optional

The Unix timestamp (in seconds) of when the invite expires.

formatunixtime