# The Backend OrganizationInvitation object

The Backend `OrganizationInvitation` object is similar to the [OrganizationInvitation](https://clerk.com/docs/reference/types/organization-invitation.md) object as it's the model around an Organization invitation. However, the Backend `OrganizationInvitation` object is different in that it's used in the [Backend API](https://clerk.com/docs/reference/backend-api/model/OrganizationInvitation){{ target: '_blank' }} and is not directly accessible from the Frontend API.

## Properties

| Property                                                      | Type                                                                                                                                 | Description                                                                                                                                                                     |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="createdat"></a> `createdAt`                            | `number`                                                                                                                             | The date when the invitation was first created.                                                                                                                                 |
| <a id="emailaddress"></a> `emailAddress`                      | `string`                                                                                                                             | The email address of the user who is invited to the [`Organization`](https://clerk.com/docs/reference/backend/types/backend-organization.md).                                   |
| <a id="expiresat"></a> `expiresAt`                            | `number`                                                                                                                             | The date when the invitation expires.                                                                                                                                           |
| <a id="id"></a> `id`                                          | `string`                                                                                                                             | The unique identifier for the `OrganizationInvitation`.                                                                                                                         |
| <a id="organizationid"></a> `organizationId`                  | `string`                                                                                                                             | The ID of the [`Organization`](https://clerk.com/docs/reference/backend/types/backend-organization.md) that the user is invited to.                                             |
| <a id="privatemetadata"></a> `privateMetadata`                | [OrganizationInvitationPrivateMetadata](https://clerk.com/docs/reference/types/metadata.md#organization-invitation-private-metadata) | Metadata that can be read and set only from the [Backend API](https://clerk.com/docs/reference/backend-api){{ target: '_blank' }}.                                              |
| <a id="publicmetadata"></a> `publicMetadata`                  | [OrganizationInvitationPublicMetadata](https://clerk.com/docs/reference/types/metadata.md#organization-invitation-public-metadata)   | Metadata that can be read from the Frontend API and [Backend API](https://clerk.com/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API. |
| <a id="publicorganizationdata"></a> `publicOrganizationData?` | <code>null | <a href="#public-organization-data-json">PublicOrganizationDataJSON</a></code>                                          | Public data about the Organization that the user is invited to.                                                                                                                 |
| <a id="role"></a> `role`                                      | `string`                                                                                                                             | The Role of the invited user.                                                                                                                                                   |
| <a id="rolename"></a> `roleName`                              | `string`                                                                                                                             | The name of the Role of the invited user.                                                                                                                                       |
| <a id="status"></a> `status?`                                 | `"expired" | "revoked" | "pending" | "accepted"`                                                                          | The status of the invitation.                                                                                                                                                   |
| <a id="updatedat"></a> `updatedAt`                            | `number`                                                                                                                             | The date when the invitation was last updated.                                                                                                                                  |
| <a id="url"></a> `url`                                        | `null | string`                                                                                                           | The URL that the user can use to accept the invitation.                                                                                                                         |

## `PublicOrganizationDataJSON`

| Property                            | Type         | Description                                                                                                                                                  |
| ----------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <a id="has_image"></a> `has_image`  | `boolean`    | Whether the Organization has a profile image.                                                                                                                |
| <a id="id"></a> `id`                | `string`     | The unique identifier for the resource.                                                                                                                      |
| <a id="image_url"></a> `image_url?` | `string`     | Holds the default Organization profile image. Compatible with Clerk's [Image Optimization](https://clerk.com/docs/guides/development/image-optimization.md). |
| <a id="name"></a> `name`            | `string`     | The name of the Organization.                                                                                                                                |
| <a id="object"></a> `object`        | `ObjectType` | The type of the resource.                                                                                                                                    |
| <a id="slug"></a> `slug`            | `string`     | The slug of the Organization.                                                                                                                                |

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
