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

# Get Campaign by ID

> Get a Cost-Per-Click campaign by its ID



## OpenAPI

````yaml https://app.levanta.io/api/creator/v1/openapi.json get /cpc/{campaign_id}
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/{campaign_id}:
    get:
      tags:
        - Cost-Per-Click Campaigns
      summary: Get Campaign by ID
      description: Get a Cost-Per-Click campaign by its ID
      operationId: GetCpcCampaign
      parameters:
        - schema:
            type: string
            format: uuid
            description: The ID of the campaign to get
          required: true
          description: The ID of the campaign to get
          name: campaign_id
          in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                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.ca
                          - amazon.de
                          - amazon.fr
                        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
                            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
        '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
        '404':
          description: CPC Campaign Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                    enum:
                      - CPC Campaign Not Found
                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

````