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

# List source links

> Returns the source links of the offer, the main link first



## OpenAPI

````yaml GET /api/v1/bot/{bot}/offers/{offer}/source-links
openapi: 3.1.0
info:
  title: Zenedu API v1
  description: >-
    API for managing Telegram bots, subscribers, products, funnels, offers, and
    orders on the Zenedu platform. API v1 returns JSON by default; the Accept:
    application/json header is optional. File downloads return the file content,
    and 204 responses have no body. Errors returned by the application use JSON
    even when Accept is omitted.
  version: 1.0.0
servers:
  - url: https://app.zenedu.io
security:
  - bearerAuth: []
tags:
  - name: User
    description: Current user profile
  - name: Bots
    description: Bot management
  - name: Subscribers
    description: Subscriber management
  - name: Orders
    description: Order management
  - name: Products
    description: Product management
  - name: Funnels
    description: Funnel management
  - name: Offers
    description: Offer management
  - name: Links
    description: Link generation
  - name: Files
    description: File downloads
  - name: Zapier
    description: Zapier webhook management
  - name: Webhooks
    description: Account webhook subscriptions
  - name: Payment systems
    description: Account payment methods
  - name: Bot settings
    description: 'Bot configuration: email, branding, integrations, legal documents'
  - name: Commands
    description: Bot menu commands
  - name: Custom fields
    description: Subscriber custom fields
  - name: Tags
    description: Subscriber tags of the bot
  - name: Folders
    description: Folders for products, funnels, channels and groups
  - name: Slugs
    description: Public link slugs
  - name: Funnel links
    description: Subscription links of a funnel
  - name: Coupons
    description: Coupon management
  - name: Subscriptions
    description: Recurring subscription management
  - name: Tasks
    description: Student task review
  - name: Broadcasts
    description: Broadcast messages
  - name: Automations
    description: Event-based automations
  - name: Affiliate
    description: Affiliate program management
  - name: Shop
    description: Bot shop draft and publication
  - name: Channels
    description: Telegram channels connected to the bot
  - name: Groups
    description: Telegram groups connected to the bot
  - name: Mini-app
    description: Telegram mini app configuration
  - name: Web
    description: Web app configuration
  - name: Telegram files
    description: Telegram file attachments for steps and broadcasts
paths:
  /api/v1/bot/{bot}/offers/{offer}/source-links:
    get:
      tags:
        - Offers
      summary: List source links
      description: >-
        Returns the source links of the offer, newest first, the main link
        first. The main link (`is_main: true`) is the offer itself: its
        addresses are the offer addresses, it has no code. Not paginated.
      operationId: listOfferSourceLinks
      parameters:
        - name: bot
          in: path
          required: true
          description: Bot ID
          schema:
            type: integer
        - name: offer
          in: path
          required: true
          description: Offer ID
          schema:
            type: integer
      responses:
        '200':
          description: List of source links
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/OfferSourceLink'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — lacks access to this bot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    OfferSourceLink:
      type: object
      properties:
        id:
          type: integer
          description: Source link ID
        offer_id:
          type: integer
          description: Offer ID
        is_main:
          type: boolean
          description: >-
            true for the main link of the offer: its addresses are the offer
            addresses, it has no code and cannot be deleted. One per offer
        name:
          type: string
          description: Link name, visible only in the dashboard and in orders
        code:
          type: string
          nullable: true
          description: >-
            Code that goes into `start=` of the bot link and the payment page
            address `…/l/<code>`; null for the main link
        link:
          type: string
          description: >-
            Bot link, `https://t.me/<bot>?start=<code>`; the offer bot link for
            the main link
        landing_link:
          type: string
          description: >-
            Payment page link `…/l/<code>`; the offer payment page link for the
            main link
        utm_source:
          type: string
          nullable: true
          description: Traffic source, e.g. instagram
        utm_medium:
          type: string
          nullable: true
          description: Traffic type, e.g. stories, ads, email
        utm_campaign:
          type: string
          nullable: true
          description: Campaign name
        utm_term:
          type: string
          nullable: true
          description: Ad keywords
        utm_content:
          type: string
          nullable: true
          description: Distinguishes ads within a campaign
        opens_count:
          type: integer
          description: Number of subscribers who opened the offer through this link
        created_at:
          type: string
          format: date-time
          nullable: true
          description: Creation timestamp
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Validation errors keyed by field name
        code:
          type: string
          description: >-
            Machine-readable code of a business error: unauthorized, not_found,
            conflict, limit_exceeded, quota_exceeded, pro_required. Absent on
            validation errors.
        current_plan:
          type:
            - string
            - 'null'
          description: >-
            Only with code pro_required: the current plan as the dashboard names
            it (Pro, Basic, Trial), null without an active subscription.
        upgrade_url:
          type: string
          description: >-
            Only with code pro_required: the dashboard page where the plan can
            be upgraded.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token from the Zenedu dashboard

````

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