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

# Capture baseline

> Captures a new versioned baseline (optional inline `snapshot` and `storageRefs`).



## OpenAPI

````yaml /openapi/control-plane.yaml post /projects/{id}/baselines
openapi: 3.1.0
info:
  title: Alibi Control Plane API
  version: 0.1.0
  description: >-
    HTTP API mounted at `/api` on the Alibi control plane (default
    `http://127.0.0.1:4100`). Derived from
    `apps/control-plane/src/api/routes.ts`. Auth via `x-alibi-api-key` or Bearer
    token. Demo keys: `junnu-key-demo`, `laddu-key-demo`, `viewer-key-demo`.
  license:
    name: MIT
servers:
  - url: http://127.0.0.1:4100/api
    description: Local control plane
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: System
    x-group: System
  - name: Auth
    x-group: Auth
  - name: Projects
    x-group: Projects
  - name: Baselines
    x-group: Baselines
  - name: Policy
    x-group: Policy
  - name: Cases
    x-group: Cases
  - name: Sandboxes
    x-group: Sandboxes
  - name: Sessions
    x-group: Sessions
  - name: Runs
    x-group: Runs
  - name: Verify
    x-group: Verify
  - name: CI
    x-group: CI
  - name: Hosted
    x-group: Hosted environments
paths:
  /projects/{id}/baselines:
    post:
      tags:
        - Baselines
      summary: Capture baseline
      description: >-
        Captures a new versioned baseline (optional inline `snapshot` and
        `storageRefs`).
      operationId: captureBaseline
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: demo-coffee
          description: Project id
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                label:
                  type: string
                schemaFingerprint:
                  type: string
                storageRefs:
                  type: object
                  additionalProperties: true
                snapshot:
                  type: object
                  additionalProperties: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  projectId:
                    type: string
                  version:
                    type: integer
                  label:
                    type: string
                  schemaFingerprint:
                    type: string
                  storageRefs:
                    type: object
                    properties:
                      sql:
                        type: string
                      redis:
                        type: string
                      object:
                        type: string
                  checksums:
                    type: object
                    additionalProperties: true
                  env:
                    type: string
                  rebasedFromId:
                    type: string
                  createdAt:
                    type: string
                    format: date-time
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
      x-codeSamples:
        - lang: curl
          source: >-
            curl -s -X POST
            http://127.0.0.1:4100/api/projects/demo-coffee/baselines \
              -H 'content-type: application/json' -H 'x-alibi-api-key: junnu-key-demo' \
              -d '{"label":"seed"}'
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-alibi-api-key
      description: 'Demo: junnu-key-demo | laddu-key-demo | viewer-key-demo'
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.