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



## OpenAPI

````yaml https://api.osiro.com/doc get /api/v2/organizations/{orgId}/leads
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}/leads:
    get:
      tags:
        - Leads
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: orgId
          in: path
        - schema:
            type: string
            default: ''
          required: false
          name: q
          in: query
        - schema:
            type: integer
            minimum: 1
            default: 1
          required: false
          name: page
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
          required: false
          name: pageSize
          in: query
        - schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
            description: By `created_at`. Defaults to newest first.
          required: false
          description: By `created_at`. Defaults to newest first.
          name: sort
          in: query
        - schema:
            anyOf:
              - type: string
                enum:
                  - AUTO_SCHEDULED
                  - RESCHEDULED
                  - INVISIBLE
                  - EXPORTED
                  - NOT_REACHABLE
              - type: string
                enum:
                  - 'NULL'
              - type: array
                items:
                  anyOf:
                    - type: string
                      enum:
                        - AUTO_SCHEDULED
                        - RESCHEDULED
                        - INVISIBLE
                        - EXPORTED
                        - NOT_REACHABLE
                    - type: string
                      enum:
                        - 'NULL'
            description: >-
              Leads in any of these states; `NULL` for leads without one. Repeat
              the parameter for several.
          required: false
          description: >-
            Leads in any of these states; `NULL` for leads without one. Repeat
            the parameter for several.
          name: states
          in: query
        - schema:
            anyOf:
              - type: string
                format: uuid
              - type: array
                items:
                  type: string
                  format: uuid
            description: Leads with any of these tags. Repeat the parameter for several.
          required: false
          description: Leads with any of these tags. Repeat the parameter for several.
          name: tag
          in: query
        - schema:
            anyOf:
              - type: string
                format: uuid
              - type: string
                enum:
                  - unassigned
            description: A member's user ID, or `unassigned`.
          required: false
          description: A member's user ID, or `unassigned`.
          name: owner
          in: query
      responses:
        '200':
          description: >-
            One page of the organization's unsold leads the caller can see, for
            hunter's control panel, with who is in each lead, its tag, owner and
            latest status event
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ControlPanelLeadList'
        '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:
    ControlPanelLeadList:
      type: object
      properties:
        items:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              created_at:
                type: string
              branch:
                type: string
              schema_version_id:
                type: string
                nullable: true
              fields:
                nullable: true
              contact_fields:
                nullable: true
              mfa_fields:
                nullable: true
              total_calls:
                type: integer
              daily_calls:
                type: integer
              visible_at:
                type: string
                nullable: true
              state:
                type: string
                nullable: true
                enum:
                  - AUTO_SCHEDULED
                  - RESCHEDULED
                  - INVISIBLE
                  - EXPORTED
                  - NOT_REACHABLE
                  - null
              domain:
                type: string
              lead_lock:
                type: object
                nullable: true
                properties:
                  user:
                    type: object
                    nullable: true
                    properties:
                      first_name:
                        type: string
                      last_name:
                        type: string
                    required:
                      - first_name
                      - last_name
                  is_stale:
                    type: boolean
                required:
                  - user
                  - is_stale
              lead_tag:
                type: object
                nullable: true
                properties:
                  tag:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      color:
                        type: string
                    required:
                      - id
                      - name
                      - color
                required:
                  - tag
              owner_user:
                type: object
                nullable: true
                properties:
                  id:
                    type: string
                  first_name:
                    type: string
                  last_name:
                    type: string
                required:
                  - id
                  - first_name
                  - last_name
              latest_event:
                type: object
                nullable: true
                properties:
                  type:
                    type: string
                  status_label:
                    type: string
                    nullable: true
                required:
                  - type
                  - status_label
            required:
              - id
              - created_at
              - branch
              - schema_version_id
              - total_calls
              - daily_calls
              - visible_at
              - state
              - domain
              - lead_lock
              - lead_tag
              - owner_user
              - latest_event
        total:
          type: integer
          minimum: 0
      required:
        - items
        - total
    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.