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

> Retrieve the current quota configuration for a project. Returns **204 No Content** if no quota has been set.

# Retrieve quota



## OpenAPI

````yaml get /v1/projects/{projectId}/quota
openapi: 3.0.0
info:
  title: Partner API
  description: Public API for partner integrations
  version: '1.0'
  contact: {}
servers:
  - url: https://api-staging.respondent.io
security: []
tags: []
paths:
  /v1/projects/{projectId}/quota:
    get:
      tags:
        - quota
      summary: Retrieve quota
      operationId: QuotaController_findOne
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
        - name: x-api-secret
          in: header
          required: true
          schema:
            type: string
        - name: projectId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuotaV1Dto'
components:
  schemas:
    QuotaV1Dto:
      type: object
      properties:
        id:
          type: string
          format: ObjectId
        projectId:
          type: string
          format: ObjectId
        version:
          $ref: '#/components/schemas/QuotaVersion'
        totalTarget:
          type: number
          minimum: 1
        status:
          $ref: '#/components/schemas/QuotaStatus'
        criteria:
          $ref: '#/components/schemas/QuotaCriteriaV1Dto'
        progress:
          type: object
          description: Quota progress by segment ID
          example:
            '1':
              currentCount: 10
              targetCount: 25
            '2':
              currentCount: 15
              targetCount: 30
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      required:
        - progress
    QuotaVersion:
      type: string
      enum:
        - v1
    QuotaStatus:
      type: string
      enum:
        - IN_PROGRESS
        - FILLED
    QuotaCriteriaV1Dto:
      type: object
      properties:
        category:
          enum:
            - age
            - gender
            - ethnicity
            - location
          type: string
          description: The category this quota applies to
          example: gender
        segments:
          description: Array of quota segments
          type: array
          items:
            $ref: '#/components/schemas/QuotaSegmentDto'
      required:
        - category
        - segments
    QuotaSegmentDto:
      type: object
      properties:
        value:
          $ref: '#/components/schemas/QuotaCategoryValue'
          example: male
        percentage:
          type: number
          minimum: 0
          maximum: 100
          description: The target percentage for this segment (0-100)
          example: 50
        id:
          type: string
          description: Unique identifier for the segment
          example: '1'
      required:
        - value
        - percentage
        - id
    QuotaCategoryValue:
      type: string
      description: >-
        The value for this segment (e.g., "Male" for gender, "18-24" for age,
        "USA" for location). Type depends on category.
      enum:
        - male
        - female
        - other
        - nonbinary
        - transmale
        - transfemale
        - prefernottoanswer
        - 18-20
        - 21-29
        - 30-39
        - 40-54
        - 55+
        - americanindianalaskannative
        - hispaniclatino
        - blackorafricanamerican
        - asianpacificislander
        - whitecaucasian
        - middleeastern
        - multipleethnicity
        - prefernotdisclose
        - AX
        - AL
        - DZ
        - AS
        - AD
        - AI
        - AQ
        - AG
        - AR
        - AM
        - AW
        - AU
        - AT
        - BS
        - BH
        - BD
        - BB
        - BY
        - BE
        - BZ
        - BJ
        - BM
        - BT
        - BO
        - BA
        - BW
        - BV
        - BR
        - VG
        - IO
        - BN
        - BG
        - BF
        - BI
        - CV
        - CM
        - CA
        - KY
        - CF
        - TD
        - CL
        - CX
        - CC
        - CO
        - KM
        - CG
        - CK
        - CR
        - HR
        - CU
        - CW
        - CY
        - CZ
        - CI
        - CD
        - DK
        - DJ
        - DM
        - EC
        - EG
        - SV
        - GQ
        - ER
        - EE
        - SZ
        - ET
        - FK
        - FO
        - FJ
        - FI
        - FR
        - GF
        - PF
        - TF
        - GA
        - GM
        - GE
        - DE
        - GI
        - GR
        - GL
        - GD
        - GP
        - GU
        - GT
        - GG
        - GN
        - GW
        - GY
        - HT
        - HM
        - VA
        - HN
        - HK
        - HU
        - IS
        - IN
        - ID
        - IR
        - IQ
        - IE
        - IM
        - IL
        - IT
        - JM
        - JP
        - JE
        - JO
        - KZ
        - KE
        - KI
        - LA
        - LV
        - LB
        - LR
        - LY
        - LI
        - LT
        - LU
        - MG
        - MW
        - MY
        - MV
        - ML
        - MT
        - MH
        - MQ
        - MR
        - MU
        - YT
        - MX
        - FM
        - MD
        - MC
        - MN
        - ME
        - MS
        - MA
        - MZ
        - NA
        - NR
        - NP
        - NL
        - NC
        - NZ
        - NI
        - NE
        - NU
        - NF
        - KP
        - MK
        - MP
        - 'NO'
        - OM
        - PW
        - PA
        - PG
        - PY
        - PE
        - PH
        - PN
        - PL
        - PT
        - PR
        - QA
        - RO
        - RW
        - RE
        - SH
        - KN
        - LC
        - PM
        - VC
        - WS
        - SM
        - ST
        - SA
        - RS
        - SC
        - SL
        - SG
        - SK
        - SI
        - SB
        - SO
        - ZA
        - GS
        - KR
        - ES
        - LK
        - SR
        - SJ
        - SE
        - CH
        - TZ
        - TW
        - TH
        - TL
        - TG
        - TK
        - TO
        - TT
        - TN
        - TR
        - TM
        - TC
        - TV
        - VI
        - UG
        - AE
        - GB
        - UM
        - US
        - UY
        - VU
        - VE
        - VN
        - WF
        - EH
        - ZM
        - ZW
        - all

````