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

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# List organization invitations sent to the current user's email

> These are organization invitations sent to the user's email address, which can be accepted at sign-up. Returns pending invitations unless ``status`` asks for another status.



## OpenAPI

````yaml /api-reference/openapi.yaml get /me/email-invitations
openapi: 3.0.3
info:
  title: Guild Public API
  version: 1.0.0
  description: >-
    The Guild public API, served at https://api.guild.ai/v1. Authenticate with
    an account API key, sent as HTTP Basic (key id as the username, secret as
    the password) or as a Bearer token `<key id>:<secret>`, or with an OAuth 2.0
    access token. Each operation lists the credentials it accepts and the scopes
    it needs; see https://docs.guild.ai/api-reference/introduction#scopes.
    Versions are path integers and v1 is the only one: a breaking change ships
    as a new version rather than changing v1. Lists page with `limit` and
    `offset` and report `pagination.has_more`. A session-events websocket also
    exists at wss://api.guild.ai/v1/sessions/{session_id}/events/ws with the
    same credentials on the handshake; OpenAPI cannot describe websockets, so it
    is not listed in paths.
servers:
  - url: https://api.guild.ai/v1
    description: Production
security: []
tags:
  - name: accounts
  - name: agents
  - name: integrations
  - name: other
  - name: sessions
  - name: skills
  - name: triggers
  - name: workspaces
paths:
  /me/email-invitations:
    get:
      tags:
        - accounts
      summary: List organization invitations sent to the current user's email
      description: >-
        These are organization invitations sent to the user's email address,
        which can be accepted at sign-up. Returns pending invitations unless
        ``status`` asks for another status.
      operationId: get_my_email_invitations
      parameters:
        - name: status
          in: query
          required: false
          schema:
            default: null
            title: Status
            nullable: true
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationOrganization'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - oauth2:
            - organizations:read
components:
  schemas:
    InvitationOrganization:
      oneOf:
        - $ref: '#/components/schemas/Invitation'
        - $ref: '#/components/schemas/InvitationOrganizationEmail'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
    Invitation:
      type: object
      properties:
        id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        creator_id:
          type: string
          format: uuid
          description: The user who created this invitation.
        invitee_id:
          type: string
          format: uuid
          description: The user who is being invited to the organization.
        organization_id:
          type: string
          format: uuid
          description: The organization the invitee is being invited to.
        role:
          type: string
          enum:
            - ADMIN
            - MEMBER
          description: The role the invitee would have in the organization.
        status:
          type: string
          enum:
            - PENDING
            - CANCELED
            - DECLINED
            - ACCEPTED
            - EXPIRED
          description: The current status of the invitation.
        invitee: {}
        type: {}
    InvitationOrganizationEmail:
      type: object
      properties:
        id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        code:
          type: string
          format: uuid
          description: The code that can be consumed to redeem the invitation.
        creator_id:
          type: string
          format: uuid
          description: The user who created this invitation.
        email:
          type: string
          format: email
        organization_id:
          type: string
          format: uuid
          description: The organization the invitee is being invited to.
        role:
          type: string
          enum:
            - ADMIN
            - MEMBER
          description: The role the invitee would have in the organization.
        status:
          type: string
          enum:
            - PENDING
            - CANCELED
            - DECLINED
            - ACCEPTED
            - EXPIRED
          description: The current status of the invitation.
        delivery_id:
          type: string
          maxLength: 255
          nullable: true
          description: >-
            A unique identifier returned by the email provider that idenfies the
            email uniquely in their system.
        invitee_id:
          type: string
          format: uuid
          nullable: true
          description: The user who accepted the invitation, once available.
        message:
          type: string
          maxLength: 8192
          nullable: true
          description: >-
            An optional message from the inviter that will be sent along the
            invitation.
        invitee: {}
        type: {}
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth 2.0 authorization code flow with PKCE (S256). Discovery:
        https://api.guild.ai/.well-known/oauth-authorization-server.
      flows:
        authorizationCode:
          authorizationUrl: https://api.guild.ai/v1/oauth/authorize
          tokenUrl: https://api.guild.ai/v1/oauth/token
          refreshUrl: https://api.guild.ai/v1/oauth/token
          scopes:
            agents:read: Read agents
            agents:write: Read and change agents
            sessions:read: Read sessions
            sessions:write: Read and change sessions
            workspaces:read: Read workspaces
            workspaces:write: Read and change workspaces
            skills:read: Read skills
            skills:write: Read and change skills
            integrations:read: Read integrations
            integrations:write: Read and change integrations
            applications:read: Read applications
            applications:write: Read and change applications
            organizations:read: Read organizations
            organizations:write: Read and change organizations

````