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

# Get leads for office

> Get lead statistics for a specific partner agent organization office. This endpoint may not be supported for all Venturu partners.



## OpenAPI

````yaml /openapi.json get /partner/v1/offices/{officeId}/leads/count
openapi: 3.0.0
info:
  title: Venturu API Documentation
  version: 1.0.0
  description: This is the OpenAPI specification for Venturu.
servers:
  - url: https://www.venturu.com/api
    description: Production server
  - url: http://localhost:3000/api
    description: Local development server
security: []
paths:
  /partner/v1/offices/{officeId}/leads/count:
    get:
      tags:
        - Partner
      summary: Get leads for office
      description: >-
        Get lead statistics for a specific partner agent organization office.
        This endpoint may not be supported for all Venturu partners.
      operationId: get-partner-v1-offices-{officeId}-leads-count
      parameters:
        - in: path
          name: officeId
          schema:
            type: string
            description: The Venturu ID of the office to get leads for.
          required: true
          description: The Venturu ID of the office to get leads for.
          example: '123'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getLeadsForOfficeResponseSchema'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getLeadsForOfficeErrorResponseSchema'
      security:
        - BearerAuth: []
components:
  schemas:
    getLeadsForOfficeResponseSchema:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
          description: Indicates that the request was successful.
        officeId:
          type: number
          description: The Venturu ID of the office.
        officeName:
          type: string
          description: The name of the office.
        totalLeads:
          type: number
          description: The total number of leads for the office.
      required:
        - status
        - officeId
        - officeName
        - totalLeads
    getLeadsForOfficeErrorResponseSchema:
      type: object
      properties:
        status:
          type: string
          enum:
            - error
          description: Indicates that an error occurred.
        error:
          type: string
          description: A description of the error that occurred.
      required:
        - status
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````