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

# Create Eval Job

> Enqueue a background eval job (today: generate_initial — Claude-generate an initial eval suite for a workforce component, written to the env branch's worktree).



## OpenAPI

````yaml POST /orgs/{org_id}/projects/{project_id}/envs/{env_id}/evals/jobs
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: analytics
    description: Org and project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/projects/{project_id}/envs/{env_id}/evals/jobs:
    post:
      tags:
        - projects
      description: >-
        Enqueue a background eval job (today: generate_initial — Claude-generate
        an initial eval suite for a workforce component, written to the env
        branch's worktree).
      operationId: handler
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
        - name: project_id
          in: path
          required: true
          schema:
            type: string
        - name: env_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnqueueEvalJobReqBody'
        required: true
      responses:
        '202':
          description: Job enqueued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnqueueEvalJobResBody'
        '400':
          description: Missing component selector or unknown kind
        '403':
          description: Insufficient permissions
        '404':
          description: Component not found
        '409':
          description: Component already has a live eval job in this env
      security:
        - bearer_auth: []
components:
  schemas:
    EnqueueEvalJobReqBody:
      type: object
      properties:
        commit:
          type: boolean
          description: |-
            Commit the generated file to the env branch when the job
            succeeds. Default false: the file lands uncommitted in the
            worktree for review (manual runs see it; the deploy gate needs a
            commit).
        component_id:
          type:
            - string
            - 'null'
          description: |-
            Workforce component by numeric app id (the `TIMBAL_APP_ID` value;
            number or string). At least one of `component_id` /
            `component_uid` is required; when both are set they must resolve
            to the same component.
        component_uid:
          type:
            - string
            - 'null'
          description: Workforce component by manifest uid (the `_id` in `timbal.yaml`).
        guidance:
          type:
            - string
            - 'null'
          description: Optional steer for the generator, e.g. "focus on the refund flow".
        kind:
          type:
            - string
            - 'null'
          description: |-
            Job kind. Defaults to `"generate_initial"` (the only kind today;
            the vocabulary grows server-side without new endpoints).
    EnqueueEvalJobResBody:
      type: object
      description: |-
        Response body returned by the enqueue endpoint. The HTTP status is
        `202 Accepted` — poll `GET .../evals/jobs/{job_uid}` for terminal
        state (a succeeded `generate_initial` job's file then shows up on
        `GET .../evals/definitions` with `committed: false` unless the job
        committed).
      required:
        - job_uid
        - kind
        - status
      properties:
        job_uid:
          type: string
          format: uuid
        kind:
          type: string
          description: Job kind (e.g. `"generate_initial"`).
        status:
          type: string
          description: Always `queued` at accept time.
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````