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

# Create Campaign Sources

> Creates a new Campaing Source



## OpenAPI

````yaml Post /organizations/{organizationId}/campaign-sources
openapi: 3.0.1
info:
  title: PROlinks
  description: >-
    A sample API that uses a plant store as an example to demonstrate features
    in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://prolinks.pro/api/v1
security:
  - bearerAuth: []
paths:
  /organizations/{organizationId}/campaign-sources:
    post:
      description: Creates a new Campaing Source
      parameters:
        - name: organizationId
          in: path
          description: ID of the organization
          required: true
          schema:
            type: string
            example: 1
      requestBody:
        description: Campaign Source to add
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCampaignElement'
      responses:
        '200':
          description: Campaign Source response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignSources'
components:
  schemas:
    CreateCampaignElement:
      required:
        - name
      type: object
      properties:
        name:
          description: The name
          type: string
    CampaignSources:
      type: object
      properties:
        id:
          description: The Campaign Source id
          type: integer
        type:
          description: Campaign Source
          type: string
        attributes:
          type: object
          properties:
            name:
              description: The Campaign Source name
              type: string
        relationships:
          type: object
          properties:
            links:
              type: array
              items:
                $ref: '#/components/schemas/Link'
    Link:
      type: object
      properties:
        id:
          description: The Link id
          type: integer
        type:
          description: Link
          type: string
        attributes:
          type: object
          properties:
            organization:
              description: The organization that the link belongs to
              type: string
            domain:
              description: The domain that the link belongs to
              type: string
            slug:
              description: The link slug
              type: string
            url:
              description: The link url
              type: string
            description:
              description: The link description
              type: string
            campaign_source:
              description: The link campaign source
              type: string
            campaign_medium:
              description: The link campaign medium
              type: string
            campaign_name:
              description: The link campaign name
              type: string
            is_active:
              description: If the link is active or not
              type: integer
            final_url:
              description: The final url to redirect
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````