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

# Get apiv2organizations campaigns autopilotgeneration



## OpenAPI

````yaml https://api.osiro.com/doc get /api/v2/organizations/{orgId}/campaigns/{campaignId}/autopilot/generation
openapi: 3.0.0
info:
  title: osiro API
  version: 2.0.0
servers: []
security: []
tags:
  - name: Funnel
    description: Public funnel rendering, submission, Lead verification, and analytics.
  - name: Booking
    description: A lead's cancel and reschedule of their booking, via the manage link.
  - name: Training
    description: Org-scoped sales-training catalogs, sessions, and call records.
  - name: Attribution
    description: Cross-domain PostHog identity handoff for the marketing site.
  - name: Billing
    description: Org-scoped checkouts, plans, trials and the Stripe billing portal.
  - name: Leads
    description: Org-scoped lead reads and actions.
  - name: Ad copy
    description: Org-scoped ad guidelines and Meta ad copy generation.
paths:
  /api/v2/organizations/{orgId}/campaigns/{campaignId}/autopilot/generation:
    get:
      tags:
        - Autopilot
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: orgId
          in: path
        - schema:
            type: string
            format: uuid
          required: true
          name: campaignId
          in: path
      responses:
        '200':
          description: >-
            The campaign's generation, its status and a checklist read from what
            the campaign holds; null for a campaign made without one
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignGenerationLookup'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    CampaignGenerationLookup:
      type: object
      properties:
        generation:
          type: object
          nullable: true
          properties:
            id:
              type: string
              format: uuid
            campaign_id:
              type: string
              format: uuid
            status:
              type: string
              enum:
                - queued
                - running
                - completed
                - incomplete
            prompt:
              type: string
            reason:
              type: string
              nullable: true
            eve_session_id:
              type: string
              nullable: true
            checklist:
              type: array
              items:
                type: object
                properties:
                  item:
                    type: string
                    enum:
                      - brief
                      - images
                      - funnel
                      - landing_page
                      - ads
                  done:
                    type: boolean
                  progress:
                    type: object
                    properties:
                      done:
                        type: integer
                      total:
                        type: integer
                    required:
                      - done
                      - total
                required:
                  - item
                  - done
            images:
              type: array
              items:
                type: object
                properties:
                  asset_id:
                    type: string
                    format: uuid
                  image_url:
                    type: string
                  width:
                    type: integer
                  height:
                    type: integer
                  creative_layout:
                    type: string
                    nullable: true
                required:
                  - asset_id
                  - image_url
                  - width
                  - height
                  - creative_layout
            funnel_id:
              type: string
              nullable: true
              format: uuid
            landing_page_id:
              type: string
              nullable: true
              format: uuid
            ads:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  campaign_id:
                    type: string
                    format: uuid
                  status:
                    type: string
                    enum:
                      - draft
                  headline:
                    type: string
                  primary_text:
                    type: string
                  description:
                    type: string
                    nullable: true
                  call_to_action:
                    type: string
                    enum:
                      - learn_more
                      - apply_now
                      - sign_up
                      - contact_us
                      - get_quote
                      - book_now
                      - subscribe
                      - download
                      - shop_now
                      - order_now
                      - get_offer
                      - get_started
                      - request_time
                      - call_now
                      - send_message
                      - whatsapp_message
                  image_asset_id:
                    type: string
                    nullable: true
                    format: uuid
                  image_url:
                    type: string
                    nullable: true
                  landing_page_id:
                    type: string
                    nullable: true
                    format: uuid
                  created_at:
                    type: string
                  updated_at:
                    type: string
                required:
                  - id
                  - campaign_id
                  - status
                  - headline
                  - primary_text
                  - description
                  - call_to_action
                  - image_asset_id
                  - image_url
                  - landing_page_id
                  - created_at
                  - updated_at
            created_at:
              type: string
            started_at:
              type: string
              nullable: true
            finished_at:
              type: string
              nullable: true
          required:
            - id
            - campaign_id
            - status
            - prompt
            - reason
            - eve_session_id
            - checklist
            - images
            - funnel_id
            - landing_page_id
            - ads
            - created_at
            - started_at
            - finished_at
      required:
        - generation
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.