Skip to main content

The Backend OrganizationInvitation object

The Backend OrganizationInvitation object is similar to the OrganizationInvitation 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 and is not directly accessible from the Frontend API.

Properties

  • Name
    createdAt
    Type
    number
    Description

    The Unix timestamp when the invitation was first created.

  • Name
    emailAddress
    Type
    string
    Description

    The email address of the user who is invited to the Organization.

  • Name
    expiresAt
    Type
    number
    Description

    The Unix timestamp when the invitation expires.

  • Name
    id
    Type
    string
    Description

    The unique identifier for the OrganizationInvitation.

  • Name
    organizationId
    Type
    string
    Description

    The ID of the Organization that the user is invited to.

  • Name
    privateMetadata
    Type
    OrganizationInvitationPrivateMetadata
    Description

    Metadata that can be read and set only from the Backend API.

  • Name
    publicMetadata
    Type
    OrganizationInvitationPublicMetadata
    Description

    Metadata that can be read from the Frontend API and Backend API and can be set only from the Backend API.

  • Name
    publicOrganizationData?
    Type
    null | { has_image: boolean; id: string; image_url?: string; name: string; object: ObjectType; slug: string; }
    Description

    Public data about the Organization that the user is invited to.

  • Name
    publicOrganizationData?.has_image
    Type
    boolean
    Description

    Whether the Organization has a profile image.

  • Name
    publicOrganizationData?.id
    Type
    string
    Description

    The unique identifier for the resource.

  • Name
    publicOrganizationData?.image_url?
    Type
    string
    Description

    Holds the default Organization profile image. Compatible with Clerk's Image Optimization.

  • Name
    publicOrganizationData?.name
    Type
    string
    Description

    The name of the Organization.

  • Name
    publicOrganizationData?.object
    Type
    ObjectType
    Description

    The type of the resource.

  • Name
    publicOrganizationData?.slug
    Type
    string
    Description

    The slug of the Organization.

  • Name
    role
    Type
    string
    Description

    The Role of the invited user.

  • Name
    roleName
    Type
    string
    Description

    The name of the Role of the invited user.

  • Name
    status?
    Type
    "expired" | "revoked" | "pending" | "accepted"
    Description

    The status of the invitation.

  • Name
    updatedAt
    Type
    number
    Description

    The Unix timestamp when the invitation was last updated.

  • Name
    url
    Type
    null | string
    Description

    The URL that the user can use to accept the invitation.

Feedback

What did you think of this content?

Last updated on