---
# @generated by sylphx-gen 0.1.0 from contracts@e145cc7cf1bc9605f2b27439e5e17ed76a1a2fd7e7021906a013f7565e4a0cd5. Do not edit.
title: "Invitations"
description: "The `invitations` collection of Sylphx Auth: An Invitation asks one email address to join a customer organization with roles."
type: reference
product: organizations
summary: "An Invitation asks one email address to join a customer organization with roles."
updated: 2026-09-28
order: 900
---

An Invitation asks one email address to join a customer organization with roles. It is single-use and expires; accepting needs an end user whose verified email is the invited address, and creates the membership.

**Service** Sylphx Auth · **Resource type** `auth.sylphx.com/Invitation` · **Name pattern** `orgs/{org}/projects/{project}/envs/{env}/customer_organizations/{customer_organization}/invitations/{invitation}` · **Shape** `record`

## Fields

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | `orgs/{org}/projects/{project}/envs/{env}/customer_organizations/{customer_organization}/invitations/{invitation}`. |
| `uid` | `string` | `inv_<cell><ulid>`; never reused. Output only. |
| `meta` | `ResourceMeta` | Resource metadata. |
| `email` | `string` | The invited address. Required. |
| `roles` | `string[]` | Roles the membership gets; empty means the environment's default roles. |
| `state` | `InvitationState` | The lifecycle state. Output only. One of `pending`, `accepted`, `revoked`, `expired`. |
| `expire_time` | `timestamp` | When it expires. Output only. |
| `accept_time` | `timestamp` | When it was accepted. Output only. |
| `end_user` | `string` | The end user who accepted it. Output only. |
| `membership` | `string` | The membership accepting it created. Output only. |
| `ttl` | `duration` | How long it stays open; default 7 days, at most 30. |

## Methods

Every method of the collection, in the registry's order, with the scope it
needs. The full request, response and examples are one link away.

| Method | Call | What it does |
| --- | --- | --- |
| `GET` | [`get`](/docs/api/invitations#get) | Gets an invitation. |
| `GET` | [`list`](/docs/api/invitations#list) | Lists invitations. |
| `POST` | [`create`](/docs/api/invitations#create) | Creates an invitation. |
| `POST` | [`revoke`](/docs/api/invitations#revoke) | Revokes a pending invitation. |
| `POST` | [`accept`](/docs/api/invitations#accept) | Accepts a pending invitation for an end user whose verified email is the invited address, and creates the membership. |

## get

Gets an invitation.

`GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/customer_organizations/customer-organization/invitations/invitation` · scope `auth:read` · effect `read` · [Request, response and examples](/docs/api/invitations/get)

## list

Lists invitations.

`GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/customer_organizations/customer-organization/invitations` · scope `auth:read` · effect `read` · paginated · [Request, response and examples](/docs/api/invitations/list)

## create

Creates an invitation.

`POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/customer_organizations/customer-organization/invitations` · scope `auth:write` · effect `write` · [Request, response and examples](/docs/api/invitations/create)

## revoke

Revokes a pending invitation.

`POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/customer_organizations/customer-organization/invitations/invitation:revoke` · scope `auth:write` · effect `destructive` · [Request, response and examples](/docs/api/invitations/revoke)

## accept

Accepts a pending invitation for an end user whose verified email is the invited address, and creates the membership.

`POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/customer_organizations/customer-organization/invitations/invitation:accept` · scope `auth:write` · effect `write` · [Request, response and examples](/docs/api/invitations/accept)
