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

# Create Shared Link

> Generate a shareable URL that lets anyone test a voice agent without logging in. Calls are billed to your company.



## OpenAPI

````yaml POST /shared-links
openapi: 3.1.0
info:
  title: Yappr API
  description: >
    Create and manage AI voice agents, purchase phone numbers, configure tools,
    and initiate calls — all via REST.
  version: 1.0.0
  contact:
    url: https://goyappr.com
servers:
  - url: https://api.goyappr.com
    description: Production
security:
  - apiKey: []
paths:
  /shared-links:
    post:
      tags:
        - Shared Links
      summary: Create shared link
      description: >-
        Generate a shareable URL that lets anyone test a voice agent without
        logging in. Calls are billed to your company.
      operationId: createSharedLink
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - agent_id
              properties:
                agent_id:
                  type: string
                  format: uuid
                  description: Agent to create a share link for
                expires_at:
                  type: string
                  format: date-time
                  nullable: true
                  description: When the link expires. Omit or null for never.
      responses:
        '201':
          description: Created shared link
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SharedLink'
        '404':
          description: Agent not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SharedLink:
      type: object
      properties:
        id:
          type: string
          format: uuid
        token:
          type: string
        url:
          type: string
          description: Full shareable URL
        agent_id:
          type: string
          format: uuid
        company_id:
          type: string
          format: uuid
        created_by:
          type: string
          format: uuid
          nullable: true
        expires_at:
          type: string
          format: date-time
          nullable: true
        is_revoked:
          type: boolean
        status:
          type: string
          enum:
            - active
            - expired
            - revoked
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard
        under **Settings → API Keys**.

````