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

# List pending invites

> Returns every invite into the caller's own account that can still be accepted, newest first, each with its accept `link`. An account's invites are few, so the list is one page: `next_cursor` is always `null` and `total` counts them all. 



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json get /v1/tenants/me/invites
openapi: 3.1.0
info:
  title: agentsfleet Control Plane API
  description: API for managing workspaces, fleets, triggers, and runs.
  contact:
    name: agentsfleet
    url: https://agentsfleet.net
  license:
    name: MIT
    identifier: MIT
  version: 1.0.0
servers:
  - url: https://api.agentsfleet.net
    description: Production
security: []
paths:
  /v1/tenants/me/invites:
    get:
      tags:
        - Invites
      summary: List pending invites
      description: >-
        Returns every invite into the caller's own account that can still be
        accepted, newest first, each with its accept `link`. An account's
        invites are few, so the list is one page: `next_cursor` is always `null`
        and `total` counts them all. 
      operationId: list_invites
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageResponse_InviteSummary'
        '401':
          description: No credential, or one this route does not accept
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '403':
          description: The credential is good and lacks the capability this route requires
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '429':
          description: The instance is at its ceiling
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '500':
          description: The daemon failed to answer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '503':
          description: A dependency this route needs is unreachable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
      security:
        - BearerAuth: []
components:
  schemas:
    PageResponse_InviteSummary:
      type: object
      description: |-
        One page of a list, in the envelope every list on this API shares.

        Each page carries three keys: `items`, `total` and `next_cursor`. A
        `next_cursor` of `null` means you have reached the last page.
      required:
        - items
        - total
      properties:
        items:
          type: array
          items:
            type: object
            description: One invite, as the account's owner sees it.
            required:
              - id
              - email
              - role
              - expires_at
              - created_at
              - link
              - email_status
            properties:
              created_at:
                type: integer
                format: int64
                description: When it was issued, epoch milliseconds.
              email:
                type: string
                description: The address it is for, lowercased.
              email_sent_at:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  When the relay last accepted its email, epoch milliseconds;
                  `null` if

                  it never has.
              email_status:
                type: string
                description: |-
                  What became of its most recent email: `sent`, `failed`, or
                  `unconfigured` when this deployment has no mail relay set up.
              expires_at:
                type: integer
                format: int64
                description: When it stops being acceptable, epoch milliseconds.
              id:
                type: string
                description: The invite's identifier.
              link:
                type: string
                description: The dashboard page the invitee opens to accept it.
              role:
                type: string
                description: 'The role accepting it grants: `member`.'
          description: The rows on this page, in the requested order.
        next_cursor:
          type:
            - string
            - 'null'
          description: |-
            Where the next page resumes, or `null` on the last page.

            Always emitted, never omitted, for the module's null rule.
        total:
          type: integer
          format: int64
          description: >-
            How many rows the collection holds in total.


            Page-stable — the count carries no keyset predicate — so a client

            walking pages sees one number rather than a shrinking one. Whether
            more

            pages exist is answered by `next_cursor` being non-null, not by a
            flag.
    ProblemBody:
      type: object
      description: The body every refusal carries, under `application/problem+json`.
      required:
        - docs_uri
        - title
        - detail
        - error_code
        - request_id
      properties:
        action_id:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the action the gate held.'
        current_state:
          type:
            - string
            - 'null'
          description: 'On a 409 only: the state that forbade the transition.'
        detail:
          type: string
          description: One sentence on what was refused and why.
        docs_uri:
          type: string
          description: Where the error code is documented.
        error_code:
          type: string
          description: The registry code, stable across releases.
        etag:
          type:
            - string
            - 'null'
          description: >-
            On a 412 only: the resource's current entity tag, to refetch and
            retry.
        gate_id:
          type:
            - string
            - 'null'
          description: 'On an answered approval gate''s 409 only: the gate that was answered.'
        outcome:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the answer that stands.'
        request_id:
          type: string
          description: The request this refusal answers, for support.
        resolved_at:
          type:
            - integer
            - 'null'
          format: int64
          description: 'On that 409 only: when the standing answer was given.'
        resolved_by:
          type:
            - string
            - 'null'
          description: 'On that 409 only: who gave it.'
        title:
          type: string
          description: A short name for the refusal, safe to show a person.
        user_message:
          type:
            - string
            - 'null'
          description: A curated sentence for end users, where the code has one.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Obtain a token via the CLI auth flow (POST /v1/auth/sessions) or GitHub
        OAuth

````

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