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

# List CPC Links

> List all CPC links



## OpenAPI

````yaml https://app.levanta.io/api/creator/v1/openapi.json get /links/cpc
openapi: 3.1.0
info:
  version: 1.0.0
  title: Levanta Creator API
  description: >-
    Authorize all requests with an API key in the Authorization header as the
    second token. E.g. Authorization -> "Bearer {api_key}".
servers:
  - url: https://app.levanta.io/api/creator/v1
security: []
externalDocs:
  url: https://app.levanta.io/creator/api-docs
paths:
  /links/cpc:
    get:
      tags:
        - Cost-Per-Click Campaigns
      summary: List CPC Links
      description: List all CPC links
      operationId: ListCpcCampaignLinks
      parameters:
        - schema:
            type: number
            minimum: 1
            maximum: 500
            default: 100
            description: The maximum number of items to return
          required: false
          description: The maximum number of items to return
          name: limit
          in: query
        - schema:
            type: string
            maxLength: 512
            description: >-
              The cursor returned from the last request, if omitted the first
              page will be returned
          required: false
          description: >-
            The cursor returned from the last request, if omitted the first page
            will be returned
          name: cursor
          in: query
        - schema:
            type: string
            enum:
              - all
              - amazon.com
              - amazon.co.uk
              - amazon.com.mx
              - amazon.ca
              - amazon.de
              - amazon.es
              - amazon.fr
              - amazon.it
              - amazon.nl
            default: amazon.com
            description: >-
              Represents an Amazon marketplace. If "all" is specified then the
              scope is all marketplaces.
          required: false
          description: >-
            Represents an Amazon marketplace. If "all" is specified then the
            scope is all marketplaces.
          name: marketplace
          in: query
        - schema:
            type: string
            description: >-
              Comma-delimited list of strings representing an array. Example:
              1,2,3 equivalent to [1,2,3]
          required: false
          description: >-
            Comma-delimited list of strings representing an array. Example:
            1,2,3 equivalent to [1,2,3]
          name: link_ids
          in: query
        - schema:
            type: string
            description: Comma-delimited list of UUIDs representing an array
          required: false
          description: Comma-delimited list of UUIDs representing an array
          name: campaign_ids
          in: query
        - schema:
            type: string
            description: >-
              An array of source IDs to filter by. Source ID: An ID that
              identifies where the created link will be used. Allowed
              characters: [a-zA-Z0-9-_@./ ]
          required: false
          description: >-
            An array of source IDs to filter by. Source ID: An ID that
            identifies where the created link will be used. Allowed characters:
            [a-zA-Z0-9-_@./ ]
          name: source_ids
          in: query
        - schema:
            type: string
            description: >-
              An array of source sub IDs to filter by. Source Sub ID: An ID to
              further identify the link underneath the source_id namespace.
              Allowed characters: [a-zA-Z0-9-_@./ ]
          required: false
          description: >-
            An array of source sub IDs to filter by. Source Sub ID: An ID to
            further identify the link underneath the source_id namespace.
            Allowed characters: [a-zA-Z0-9-_@./ ]
          name: source_sub_ids
          in: query
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
            description: |-
              Whether or not to return active links or inactive links.
                              Links are considered active when created and are only marked as
                              inactive if a partnership between a creator and a brand associated
                              with the link is deleted or the brand associated with the link is
                              deactivated by the seller
          required: false
          description: |-
            Whether or not to return active links or inactive links.
                            Links are considered active when created and are only marked as
                            inactive if a partnership between a creator and a brand associated
                            with the link is deleted or the brand associated with the link is
                            deactivated by the seller
          name: active
          in: query
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  links:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        sourceId:
                          type: string
                          description: >-
                            An ID that identifies where the created link will be
                            used. Allowed characters: [a-zA-Z0-9-_@./ ]
                        sourceSubId:
                          type: string
                          description: >-
                            An ID to further identify the link underneath the
                            source_id namespace. Allowed characters:
                            [a-zA-Z0-9-_@./ ]
                        sourceName:
                          type: string
                          description: Display name for the source within Levanta
                        url:
                          type: string
                        mobileOptimizedUrl:
                          type: string
                        active:
                          type: boolean
                          description: >-
                            Whether or not the link is active. Inactive links do
                            not earn commissions.
                        type:
                          type: string
                          enum:
                            - product
                            - storefront
                          description: >-
                            The type of the link. Product links are for amazon
                            asin pages. Storefront links are for amazon
                            storefront pages.
                        marketplace:
                          type: string
                          enum:
                            - amazon.com
                            - amazon.co.uk
                            - amazon.com.mx
                            - amazon.ca
                            - amazon.de
                            - amazon.es
                            - amazon.fr
                            - amazon.it
                            - amazon.nl
                          description: The marketplace the link is associated with
                        asin:
                          type: string
                          description: >-
                            Amazon Standard Identifier (ASIN) for an Amazon
                            product. Example: B09G9FPHY6
                        cpcCampaignId:
                          type: string
                          format: uuid
                      required:
                        - id
                        - sourceId
                        - sourceSubId
                        - sourceName
                        - url
                        - mobileOptimizedUrl
                        - active
                        - type
                        - marketplace
                        - asin
                        - cpcCampaignId
                  cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      The cursor to use for the next request, if empty there are
                      no more items to return
                required:
                  - links
                  - cursor
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                    enum:
                      - Unauthorized
                required:
                  - status
                  - message
        '403':
          description: You do not have access to CPC APIs
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                    enum:
                      - You do not have access to CPC APIs
                required:
                  - status
                  - message
        '422':
          description: Input Validation Failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    enum:
                      - 422
                  message:
                    type: string
                    enum:
                      - Input Validation Failed
                required:
                  - status
                  - message
      security:
        - Bearer: []
components:
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer

````