> ## 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 Campaigns

> List all CPC campaigns



## OpenAPI

````yaml https://app.levanta.io/api/creator/v1/openapi.json get /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:
  /cpc:
    get:
      tags:
        - Cost-Per-Click Campaigns
      summary: List CPC Campaigns
      description: List all CPC campaigns
      operationId: ListCpcCampaigns
      parameters:
        - schema:
            type: number
            minimum: 1
            maximum: 100
            default: 25
            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
            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
            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
            enum:
              - 'true'
              - all
            default: 'true'
            description: >-
              Whether to return all campaigns or just campaigns that are
              currently running,
                              not canceled, have not reached their budget,
                              and that you have not been removed from.
          required: false
          description: >-
            Whether to return all campaigns or just campaigns that are currently
            running,
                            not canceled, have not reached their budget,
                            and that you have not been removed from.
          name: active
          in: query
        - schema:
            type: string
            enum:
              - 'true'
              - all
            default: 'true'
            description: >-
              Whether to return all campaigns or just campaigns for brands that
              you are partnered with
          required: false
          description: >-
            Whether to return all campaigns or just campaigns for brands that
            you are partnered with
          name: access
          in: query
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  campaigns:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: The ID of the campaign
                        startDate:
                          type: string
                          description: 'The start date of the campaign, format: ''YYYY-MM-DD'''
                        endDate:
                          type:
                            - string
                            - 'null'
                          description: >-
                            The end date of the campaign, format: 'YYYY-MM-DD'.
                            If null, the campaign will continue indefinitely
                            (until budget is reached, or canceled).
                        cancellationDate:
                          type:
                            - string
                            - 'null'
                          description: >-
                            The cancellation date of the campaign, format:
                            'YYYY-MM-DD'. If null, the campaign has not been
                            canceled.
                        product:
                          type: object
                          properties:
                            asin:
                              type: string
                              description: >-
                                Amazon Standard Identifier (ASIN) for an Amazon
                                product. Example: B09G9FPHY6
                            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: Represents an Amazon marketplace.
                            title:
                              type: string
                          required:
                            - asin
                            - marketplace
                            - title
                        brandId:
                          type: string
                          format: uuid
                        budget:
                          type: object
                          properties:
                            costPerClick:
                              type: number
                              description: >-
                                The amount earned per click, in the currency of
                                the product's marketplace
                            clicks:
                              type: number
                              description: The number of clicks attributed to the campaign
                            clicksRemaining:
                              type: number
                              description: >-
                                The number of clicks remaining in the campaign
                                budget
                            reached:
                              type: boolean
                              description: >-
                                Whether or not the campaign budget has been
                                reached
                          required:
                            - costPerClick
                            - clicks
                            - clicksRemaining
                            - reached
                          description: >-
                            Information about the campaign's budget, including
                            the amount of clicks remaining, and whether or not
                            the budget has been reached
                        membership:
                          type:
                            - object
                            - 'null'
                          properties:
                            earnings:
                              type: object
                              properties:
                                clicks:
                                  type: number
                                  description: >-
                                    The number of clicks you have earned for
                                    this campaign
                                amount:
                                  type: number
                                  description: >-
                                    The amount you have earned for this
                                    campaign, in the campaign product's currency
                                currency:
                                  type: string
                                  enum:
                                    - USD
                                    - GBP
                                    - CAD
                                    - EUR
                                    - MXN
                                  description: The currency for this campaign
                              required:
                                - clicks
                                - amount
                                - currency
                            joinDate:
                              type: string
                              description: >-
                                The date you joined the campaign, format:
                                'YYYY-MM-DD'
                            removed:
                              type: boolean
                              description: >-
                                Whether or not you have been removed from the
                                campaign
                          required:
                            - earnings
                            - joinDate
                            - removed
                          description: >-
                            Information about your membership in this campaign.
                            If null, you have not joined the campaign
                      required:
                        - id
                        - startDate
                        - endDate
                        - cancellationDate
                        - product
                        - brandId
                        - budget
                        - membership
                  cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      The cursor to use for the next request, if empty there are
                      no more items to return
                required:
                  - campaigns
                  - 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

````