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

# List From Run

> Save a company run's companies as a list ("Save as list" on a finished or running run).



## OpenAPI

````yaml /api-reference/agent/openapi.json post /companies/lists/from-run/{run_id}
openapi: 3.1.0
info:
  title: NewsCatcher Agent API
  description: >-
    Agent runs (events from a query, or news about companies), company lists and
    monitors. Authenticate with your API key in the x-api-key header.
  version: 1.0.0
servers:
  - url: https://api.newscatcherapi.com/agent
    description: Production server
security: []
paths:
  /companies/lists/from-run/{run_id}:
    post:
      tags:
        - company lists
      summary: List From Run
      description: >-
        Save a company run's companies as a list ("Save as list" on a finished
        or running run).
      operationId: list_from_run_companies_lists_from_run__run_id__post
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Run Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/ListFromRunRequest'
                - type: 'null'
              title: Body
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyListView'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '413':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Entity Too Large
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service Unavailable
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ListFromRunRequest:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: 'The list''s name (default: the run''s name).'
        list_id:
          anyOf:
            - type: string
            - type: 'null'
          title: List Id
          description: Your own id for the list (a UUID); left out, one is generated.
      type: object
      title: ListFromRunRequest
      description: Save a company run's companies as a list.
    CompanyListView:
      properties:
        list_id:
          type: string
          format: uuid
          title: List Id
        name:
          type: string
          title: Name
        status:
          type: string
          enum:
            - resolving
            - ready
          title: Status
        count:
          type: integer
          title: Count
        counts:
          additionalProperties:
            type: integer
          type: object
          title: Counts
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
        companies:
          anyOf:
            - items:
                $ref: '#/components/schemas/CompanyListItemView'
              type: array
            - type: 'null'
          title: Companies
        added:
          anyOf:
            - type: integer
            - type: 'null'
          title: Added
        skipped:
          items:
            $ref: '#/components/schemas/SkippedLine'
          type: array
          title: Skipped
        skipped_count:
          type: integer
          title: Skipped Count
          default: 0
      type: object
      required:
        - list_id
        - name
        - status
        - count
      title: CompanyListView
      description: A company list.
    ErrorResponse:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
        - code
        - message
      title: ErrorResponse
      description: 'Every error: a stable code and a message to show the user.'
    CompanyListItemView:
      properties:
        domain:
          type: string
          title: Domain
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        identity_status:
          $ref: '#/components/schemas/CompanyStatus'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        profile:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Profile
        other_names:
          items:
            type: string
          type: array
          title: Other Names
        corrected:
          type: boolean
          title: Corrected
          default: false
      type: object
      required:
        - domain
        - identity_status
      title: CompanyListItemView
      description: A company in a list, with what the user sees.
    SkippedLine:
      properties:
        line:
          type: integer
          title: Line
        value:
          type: string
          title: Value
        reason:
          type: string
          title: Reason
      type: object
      required:
        - line
        - value
        - reason
      title: SkippedLine
      description: A line of the file that gave no company.
    CompanyStatus:
      type: string
      enum:
        - pending
        - resolving
        - ready
        - not_found
        - failed
      title: CompanyStatus
      description: What the user sees per company.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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