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

# Get campaign with matches

> Fetch campaign and matches (JSON; CSV under /export). Own and public campaigns are free to read for any identified caller; private non-owned reads as 404. Anonymous callers get 401. Public reads do not spend credits (#397).



## OpenAPI

````yaml GET /api/campaigns/{id}
openapi: 3.1.0
info:
  description: >-
    Starcovery helps you find and hire real Instagram and TikTok creators from a
    plain-language brief, on the web or from your agents. REST and MCP API.
    Search accepts unsigned callers. Campaigns, billing state, and keys accept
    browser session, x-api-key, or Bearer. MCP accepts OAuth, x-api-key, Bearer,
    or last-resort ?api_key= (no session). Machine Payments Protocol
    (x-payment-info) on GET /api/search when provisioned. Signup and claim at
    auth.md.
  title: Starcovery
  version: 1.0.0
servers:
  - url: https://www.starcovery.com
security: []
paths:
  /api/campaigns/{id}:
    get:
      summary: Get campaign with matches
      description: >-
        Fetch campaign and matches (JSON; CSV under /export). Own and public
        campaigns are free to read for any identified caller; private non-owned
        reads as 404. Anonymous callers get 401. Public reads do not spend
        credits (#397).
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignBody'
          description: Campaign row plus matches
        '401':
          description: >-
            unauthorized: missing identity; WWW-Authenticate points at
            protected-resource metadata
        '404':
          description: not_found
        '429':
          description: Rate limited
      security:
        - ApiKeyHeader: []
        - BearerAuth: []
        - SessionCookie: []
components:
  schemas:
    CampaignBody:
      additionalProperties: false
      properties:
        campaign:
          $ref: '#/components/schemas/CampaignRow'
        matches:
          items:
            $ref: '#/components/schemas/CampaignMatch'
          type: array
        owned:
          description: True if caller owns campaign.
          type: boolean
      required:
        - campaign
        - matches
        - owned
      type: object
    CampaignRow:
      additionalProperties: false
      properties:
        createdAt:
          format: date-time
          type: string
        createdBy:
          enum:
            - agent
            - human
          type: string
        goal:
          type: string
        id:
          type: string
        name:
          type: string
        status:
          enum:
            - active
            - archived
            - draft
          type: string
        updatedAt:
          format: date-time
          type: string
        userId:
          type: string
        visibility:
          enum:
            - private
            - public
          type: string
      required:
        - createdAt
        - createdBy
        - goal
        - id
        - name
        - status
        - updatedAt
        - userId
        - visibility
      type: object
    CampaignMatch:
      additionalProperties: false
      properties:
        addedAt:
          format: date-time
          type: string
        campaignId:
          type: string
        fitScore:
          type:
            - number
            - 'null'
        followerCount:
          maximum: 2147483647
          minimum: 1000
          type: integer
        handle:
          type: string
        id:
          type: string
        name:
          type:
            - string
            - 'null'
        platform:
          enum:
            - ig
            - tt
          type: string
        profileId:
          type: string
        profileImageUrl:
          type:
            - string
            - 'null'
        source:
          enum:
            - generated
            - manual
          type: string
      required:
        - addedAt
        - campaignId
        - fitScore
        - followerCount
        - handle
        - id
        - name
        - platform
        - profileId
        - profileImageUrl
        - source
      type: object
  securitySchemes:
    ApiKeyHeader:
      description: Product API key or agent access token
      in: header
      name: x-api-key
      type: apiKey
    BearerAuth:
      bearerFormat: access token
      description: >-
        Bearer access token (agent registration), product API key, or MCP OAuth
        access token
      scheme: bearer
      type: http
    SessionCookie:
      description: >-
        Browser better-auth session cookie (REST only; MCP rejects sessions).
        Name is better-auth.session_token, or __Secure-better-auth.session_token
        on HTTPS.
      in: cookie
      name: better-auth.session_token
      type: apiKey

````