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

# Get user invites

> **Scope:** `invites:read` · **Rate limit:** 250 requests per 5 minutes



## OpenAPI

````yaml /api-reference/openapi.json get /v1/invites
openapi: 3.1.0
info:
  contact:
    email: support@linkvite.io
    name: Linkvite
    url: https://linkvite.io
  description: >-
    The Linkvite REST API. Generated from the cultus source by tools/openapi; do
    not edit by hand.
  title: Linkvite API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.linkvite.io
  - description: Staging
    url: https://api-stg.linkvite.io
security: []
tags:
  - description: Keys for scripts and servers acting as your account.
    name: API keys
  - description: OAuth apps you've built, and the apps you've authorized.
    name: Apps
  - description: Links, notes and files you've saved.
    name: Bookmarks
  - description: Folders of bookmarks, private or shared.
    name: Collections
  - description: Discussion on bookmarks in shared collections.
    name: Comments
  - description: Recommendations and trending links.
    name: Explore
  - description: Downloads and share links for uploaded files.
    name: Files
  - description: Highlights and notes on saved pages.
    name: Highlights
  - description: Shareable links that let people join a collection.
    name: Invite links
  - description: Invitations to collaborate on a collection.
    name: Invites
  - description: Your notifications.
    name: Notifications
  - description: Fetch metadata for a link, and import from other services.
    name: Parser
  - description: Plans and subscription status.
    name: Plans
  - description: Public profiles, their collections, follows and blocks.
    name: Profiles
  - description: RSS feeds that save new items into a collection.
    name: RSS feeds
  - description: Reminders to revisit a bookmark.
    name: Reminders
  - description: Search your library, and image search for covers.
    name: Search
  - description: The feed from people you follow.
    name: Social
  - description: Your account, settings, storage and sessions.
    name: User
paths:
  /v1/invites:
    get:
      tags:
        - Invites
      summary: Get user invites
      description: '**Scope:** `invites:read` · **Rate limit:** 250 requests per 5 minutes'
      operationId: getUserInvites
      parameters:
        - in: query
          name: page
          schema:
            default: 1
            type: integer
        - in: query
          name: limit
          schema:
            default: 10
            type: integer
        - in: query
          name: sort
          schema:
            default: '-date'
            type: string
        - in: query
          name: roles
          schema:
            type: string
        - in: query
          name: status
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/GetUserInvitesResponse'
                  message:
                    type: string
                  ok:
                    const: true
                    type: boolean
                required:
                  - ok
                  - data
                type: object
          description: Success
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      security:
        - apiKey: []
        - oauth2:
            - invites:read
        - bearer: []
      x-codeSamples:
        - lang: bash
          label: curl
          source: |
            curl -X GET "https://api.linkvite.io/v1/invites" \
              -H "x-api-key: $LINKVITE_API_KEY"
        - lang: javascript
          label: JavaScript
          source: |-
            import {Linkvite} from '@linkvite/js';

            const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
            const data = await linkvite.invites.getAll();
        - lang: go
          label: Go
          source: |-
            client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
            data, err := client.Invites.GetAll(ctx, nil)
components:
  schemas:
    GetUserInvitesResponse:
      properties:
        invites:
          items:
            $ref: '#/components/schemas/InviteResponse'
          type: array
        pagination:
          anyOf:
            - $ref: '#/components/schemas/Pagination'
            - type: 'null'
      required:
        - invites
        - pagination
      type: object
    InviteResponse:
      properties:
        collection_description:
          type: string
        collection_icon:
          type: string
        collection_id:
          type: string
        collection_name:
          type: string
        collection_thumbnail:
          type: string
        created_at:
          format: date-time
          type: string
        expires_at:
          format: date-time
          type:
            - string
            - 'null'
        id:
          type: string
        inviter_avatar:
          type: string
        inviter_id:
          type: string
        inviter_name:
          type: string
        inviter_username:
          type: string
        members_count:
          format: int64
          type: integer
        recipient_id:
          type: string
        role:
          enum:
            - admin
            - viewer
          type: string
        status:
          enum:
            - accepted
            - declined
            - expired
            - pending
            - revoked
          type: string
        updated_at:
          format: date-time
          type: string
        user_id:
          type: string
      required:
        - collection_description
        - collection_icon
        - collection_id
        - collection_name
        - collection_thumbnail
        - created_at
        - expires_at
        - id
        - inviter_avatar
        - inviter_id
        - inviter_name
        - inviter_username
        - members_count
        - recipient_id
        - role
        - status
        - updated_at
        - user_id
      type: object
    Pagination:
      properties:
        last_page:
          format: int64
          type: integer
        limit:
          format: int64
          type: integer
        page:
          format: int64
          type: integer
        q:
          type: string
        total:
          format: int64
          type: integer
      required:
        - last_page
        - limit
        - page
        - total
      type: object
    ErrorResponse:
      properties:
        error:
          description: Human-readable message.
          type: string
        errors:
          additionalProperties:
            type: string
          description: Field -> problem, for validation errors.
          type: object
        ok:
          const: false
          type: boolean
        request_id:
          description: Quote this when contacting support (also the X-Request-ID header).
          type: string
      required:
        - ok
      type: object
  responses:
    Error:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Error
  securitySchemes:
    apiKey:
      description: An API key from Settings → Developers.
      in: header
      name: x-api-key
      type: apiKey
    oauth2:
      flows:
        authorizationCode:
          authorizationUrl: https://app.linkvite.io/authorize
          refreshUrl: https://api.linkvite.io/v1/oauth/token
          scopes:
            api-keys:read: Read api-keys
            apps:read: Read apps
            bookmarks:delete: Delete bookmarks
            bookmarks:edit: Edit bookmarks
            bookmarks:read: Read bookmarks
            bookmarks:write: Write bookmarks
            collections:delete: Delete collections
            collections:edit: Edit collections
            collections:read: Read collections
            collections:write: Write collections
            comments:delete: Delete comments
            comments:read: Read comments
            comments:write: Write comments
            explore:read: Read explore
            files:read: Read files
            highlights:delete: Delete highlights
            highlights:edit: Edit highlights
            highlights:read: Read highlights
            highlights:write: Write highlights
            invite-links:delete: Delete invite-links
            invite-links:edit: Edit invite-links
            invite-links:write: Write invite-links
            invites:edit: Edit invites
            invites:read: Read invites
            plans:read: Read plans
            reminders:delete: Delete reminders
            reminders:edit: Edit reminders
            reminders:read: Read reminders
            reminders:write: Write reminders
            rss-feeds:delete: Delete rss-feeds
            rss-feeds:edit: Edit rss-feeds
            rss-feeds:read: Read rss-feeds
            rss-feeds:write: Write rss-feeds
            search:read: Read search
            user:edit: Edit user
            user:read: Read user
            user:storage:read: Storage:read user
            user:trash:delete: Trash:delete user
          tokenUrl: https://api.linkvite.io/v1/oauth/token
      type: oauth2
    bearer:
      description: An access token (OAuth, or a first-party session).
      scheme: bearer
      type: http

````

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