> ## 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 invite link by ID



## OpenAPI

````yaml /api-reference/openapi.json get /v1/invite-links/{id}
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/invite-links/{id}:
    get:
      tags:
        - Invite links
      summary: Get invite link by ID
      operationId: getInviteLinkById
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/InviteLinkResponse'
                  message:
                    type: string
                  ok:
                    const: true
                    type: boolean
                required:
                  - ok
                  - data
                type: object
          description: Success
      security: []
      x-codeSamples:
        - lang: bash
          label: curl
          source: |
            curl -X GET "https://api.linkvite.io/v1/invite-links/<id>"
        - lang: javascript
          label: JavaScript
          source: |-
            import {Linkvite} from '@linkvite/js';

            const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
            const data = await linkvite.inviteLinks.get('<id>');
        - lang: go
          label: Go
          source: |-
            client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
            data, err := client.InviteLinks.Get(ctx, "<id>")
components:
  schemas:
    InviteLinkResponse:
      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
        max_usage_count:
          format: int64
          type: integer
        members_count:
          format: int64
          type: integer
        role:
          enum:
            - admin
            - viewer
          type: string
        status:
          enum:
            - active
            - inactive
            - revoked
          type: string
        updated_at:
          format: date-time
          type: string
        usage_count:
          format: int64
          type: integer
        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
        - max_usage_count
        - members_count
        - role
        - status
        - updated_at
        - usage_count
        - user_id
      type: object

````

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