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

# Get an environment



## OpenAPI

````yaml /api-reference/openapi.json get /v1/environments/{env_id}
openapi: 3.1.0
info:
  title: Veri API
  description: >-
    REST API for the Veri RL post-training platform. All requests require a
    Bearer API key (`vk_` prefix).
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.veri.studio
    description: Production
security: []
tags:
  - name: Training jobs
    description: Create, monitor, and manage training jobs.
  - name: Datasets
    description: Upload and connect training datasets.
  - name: Deployments
    description: Serve trained models and run inference.
  - name: Volumes
    description: Persistent file storage mounted into jobs.
  - name: Models
    description: Custom model registry deployments serve from.
  - name: Regions
    description: Discover available launch regions.
  - name: GPU
    description: Live GPU availability by provider and region.
  - name: Compatibility
    description: Advisory model and runtime compatibility guidance.
  - name: Code artifacts
    description: Upload custom training script bundles.
  - name: Billing
    description: Credit balance and transaction history.
  - name: API keys
    description: Create and revoke API keys.
  - name: Account
    description: The authenticated caller's identity.
  - name: SSH keys
    description: Manage SSH key pairs for compute access.
  - name: Settings
    description: Account-level integrations (Weights & Biases).
  - name: Metrics
    description: Prometheus metrics export for your own observability stack.
  - name: Public runs
    description: Unauthenticated reads of runs their owners published to Explore.
paths:
  /v1/environments/{env_id}:
    get:
      tags:
        - Environments
      summary: Get an environment
      operationId: get
      parameters:
        - name: env_id
          in: path
          description: Environment ID
          required: true
          schema:
            type: string
        - name: version
          in: query
          description: Return this version instead of the latest.
          required: false
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: The environment with its latest (or requested) version
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentResponse'
        '404':
          description: Not found in this workspace, or no such version
      security:
        - bearerAuth: []
components:
  schemas:
    EnvironmentResponse:
      type: object
      required:
        - object
        - id
        - name
        - latest_version
        - created_by
        - created_at
        - updated_at
        - version
      properties:
        object:
          type: string
        id:
          type: string
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        latest_version:
          type: integer
          format: int32
        created_by:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        version:
          $ref: '#/components/schemas/EnvironmentVersionResponse'
          description: The latest version unless `?version=` asked for another.
    EnvironmentVersionResponse:
      type: object
      required:
        - object
        - environment_id
        - version
        - spec
        - created_by
        - created_at
      properties:
        object:
          type: string
        environment_id:
          type: string
        version:
          type: integer
          format: int32
        spec:
          $ref: '#/components/schemas/EnvironmentSpec'
          description: >-
            The normalized spec: defaults filled, hosts lowercased, skills
            pinned.
        created_by:
          type: string
        created_at:
          type: string
          format: date-time
    EnvironmentSpec:
      type: object
      required:
        - harness
        - model
        - size
        - egress
        - allowed_hosts
        - env
        - secrets
        - mcp_servers
        - skills
        - permissions
        - idle_timeout_s
      properties:
        harness:
          type: string
        model:
          $ref: '#/components/schemas/ModelSpec'
        size:
          type: string
        egress:
          type: string
        allowed_hosts:
          type: array
          items:
            type: string
        env:
          type: object
          additionalProperties:
            type: string
          propertyNames:
            type: string
        secrets:
          type: array
          items:
            type: string
        mcp_servers:
          type: array
          items:
            $ref: '#/components/schemas/McpServerSpec'
        skills:
          type: array
          items:
            $ref: '#/components/schemas/SkillPin'
        permissions:
          $ref: '#/components/schemas/Permissions'
        idle_timeout_s:
          type: integer
          format: int64
    ModelSpec:
      type: object
      properties:
        deployment_id:
          type:
            - string
            - 'null'
        base_url:
          type:
            - string
            - 'null'
        secret:
          type:
            - string
            - 'null'
    McpServerSpec:
      type: object
      required:
        - name
        - url
      properties:
        name:
          type: string
        url:
          type: string
        secret:
          type:
            - string
            - 'null'
    SkillPin:
      type: object
      required:
        - name
        - version
      properties:
        name:
          type: string
        version:
          type: integer
          format: int32
    Permissions:
      type: object
      required:
        - default
        - rules
      properties:
        default:
          type: string
        rules:
          type: array
          items:
            $ref: '#/components/schemas/PermissionRule'
    PermissionRule:
      type: object
      required:
        - tool
        - action
      properties:
        tool:
          type: string
        action:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: API key with the `vk_` prefix. Create one from the dashboard.

````

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