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

# List contexts for a product



## OpenAPI

````yaml https://app.getkontext.io/openapi.json get /v1/products/{productId}/contexts
openapi: 3.1.0
info:
  title: Kontext API
  version: 1.0.0
  description: >-
    API documentation for Kontext — generated from Zod schemas in
    @kontext/api-contract
servers:
  - url: https://getkontext.io/api
    description: Production
  - url: http://localhost:5173/api
    description: Development
security:
  - BearerAuth: []
paths:
  /v1/products/{productId}/contexts:
    get:
      tags:
        - Contexts
      summary: List contexts for a product
      parameters:
        - schema:
            type: string
          required: true
          name: productId
          in: path
      responses:
        '200':
          description: List of contexts
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        description:
                          type:
                            - string
                            - 'null'
                      required:
                        - id
                        - name
                        - description
                required:
                  - data
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        message:
                          type: string
                        path:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: number
                      required:
                        - code
                        - message
                required:
                  - error
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        message:
                          type: string
                        path:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: number
                      required:
                        - code
                        - message
                required:
                  - error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key (ktx_key_*) or session Bearer token

````