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

# Get a cohort

> Reports a cohort's build status and size. Poll this after create or update.



## OpenAPI

````yaml /openapi.json get /api/v1/cohorts/{cohortId}
openapi: 3.0.3
info:
  title: DataDash Analytics API
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /api/v1/cohorts/{cohortId}:
    get:
      tags:
        - Cohorts
      summary: Get a cohort
      description: >-
        Reports a cohort's build status and size. Poll this after create or
        update.
      operationId: getCohort
      parameters:
        - in: path
          name: cohortId
          required: true
          schema:
            pattern: ^[0-9A-HJ-KM-NP-TV-Z]{13}$
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CohortDetail'
          description: the cohort
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            invalid request (malformed body, unknown field, or failed
            validation)
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: missing or invalid credentials
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: credentials lack access to this resource
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: no such cohort
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: internal error
components:
  schemas:
    CohortDetail:
      properties:
        cohortId:
          pattern: ^[0-9A-HJ-KM-NP-TV-Z]{13}$
          type: string
        createdAt:
          format: date-time
          type: string
        description:
          type: string
        numWallets:
          format: int64
          type: integer
        status:
          description: >-
            Membership is only complete once this reads ready; numWallets is 0
            until then.
          enum:
            - pending
            - building
            - ready
            - canceled
            - failed
          type: string
        title:
          type: string
        updatedAt:
          format: date-time
          type: string
      required:
        - cohortId
        - title
        - status
        - numWallets
      type: object
    Error:
      properties:
        code:
          description: machine-readable error code
          type: string
        message:
          description: human-readable description
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: API key issued for programmatic access.
      in: header
      name: X-Api-Key
      type: apiKey
    BearerAuth:
      bearerFormat: JWT
      description: User access token.
      scheme: bearer
      type: http

````