> ## Documentation Index
> Fetch the complete documentation index at: https://getfloo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Invite

> Create durable app-bound invitation intent before attempting delivery.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/apps/{app_id}/invites
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/invites:
    post:
      tags:
        - app-memberships
      summary: Create Invite
      description: Create durable app-bound invitation intent before attempting delivery.
      operationId: app_memberships_create_invite
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAppInviteRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAppInviteResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    CreateAppInviteRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
        role:
          $ref: '#/components/schemas/AppMembershipRole'
          default: member
      type: object
      required:
        - email
      title: CreateAppInviteRequest
      description: Invite one global floo identity to an app.
    CreateAppInviteResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        app_id:
          type: string
          format: uuid
          title: App Id
        email:
          type: string
          title: Email
        role:
          $ref: '#/components/schemas/AppMembershipRole'
        status:
          $ref: '#/components/schemas/AppInviteStatus'
        invited_by_user_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Invited By User Id
        expires_at:
          type: string
          format: date-time
          title: Expires At
        accepted_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Accepted At
        revoked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Revoked At
        delivery_status:
          $ref: '#/components/schemas/AppInviteDeliveryStatus'
        delivery_attempted_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Delivery Attempted At
        delivery_provider_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Delivery Provider Id
        delivery_failure_class:
          anyOf:
            - type: string
            - type: 'null'
          title: Delivery Failure Class
        created_at:
          type: string
          format: date-time
          title: Created At
        invite_url:
          type: string
          title: Invite Url
      type: object
      required:
        - id
        - app_id
        - email
        - role
        - status
        - invited_by_user_id
        - expires_at
        - accepted_at
        - revoked_at
        - delivery_status
        - delivery_attempted_at
        - delivery_provider_id
        - delivery_failure_class
        - created_at
        - invite_url
      title: CreateAppInviteResponse
      description: Create/resend result; the raw URL is returned exactly once.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    AppMembershipRole:
      type: string
      enum:
        - member
        - admin
      title: AppMembershipRole
      description: Authorization role inside a tenant app, never the floo control plane.
    AppInviteStatus:
      type: string
      enum:
        - pending
        - accepted
        - revoked
        - expired
      title: AppInviteStatus
      description: Lifecycle state of an app invitation.
    AppInviteDeliveryStatus:
      type: string
      enum:
        - pending
        - sent
        - failed
        - unknown
      title: AppInviteDeliveryStatus
      description: Latest non-secret delivery outcome for an invitation.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.