> ## Documentation Index
> Fetch the complete documentation index at: https://allhandsai-chore-regenerate-agent-sdk-openapi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Meta Profile

> Get a meta-profile's full configuration.



## OpenAPI

````yaml /openapi/agent-sdk.json get /api/meta-profiles/{name}
openapi: 3.1.0
info:
  description: OpenHands Agent Server - REST/WebSocket interface for OpenHands AI Agent
  title: OpenHands Agent Server
  version: 1.52.0
servers: []
security: []
paths:
  /api/meta-profiles/{name}:
    get:
      tags:
        - Meta-profiles
      summary: Get Meta Profile
      description: Get a meta-profile's full configuration.
      operationId: get_meta_profile_api_meta_profiles__name__get
      parameters:
        - in: path
          name: name
          required: true
          schema:
            maxLength: 64
            minLength: 1
            pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$
            title: Name
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaProfileDetailResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
components:
  schemas:
    MetaProfileDetailResponse:
      properties:
        config:
          $ref: '#/components/schemas/MetaProfile'
        name:
          title: Name
          type: string
      required:
        - name
        - config
      title: MetaProfileDetailResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    MetaProfile:
      description: A declarative model-routing configuration.
      properties:
        classes:
          description: Ordered list of task classes and their target profiles.
          items:
            $ref: '#/components/schemas/MetaProfileClass'
          title: Classes
          type: array
        classifier_model:
          description: Name of the saved LLM profile used to classify the task.
          title: Classifier Model
          type: string
        model_table:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Optional text inserted into `{{ model_table }}` for direct-routing
            prompts.
          title: Model Table
        prompt_template:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Optional direct-routing prompt template. When set, the classifier
            receives this rendered prompt and should return JSON with a `model`
            field instead of a class number.
          title: Prompt Template
      required:
        - classifier_model
      title: MetaProfile
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    MetaProfileClass:
      description: A single task category and the LLM profile that should handle it.
      properties:
        description:
          description: >-
            Natural-language description of the kind of task this class covers
            (e.g. 'task is UI oriented or requires looking at images').
          title: Description
          type: string
        model:
          description: >-
            Name of the saved LLM profile to switch to for tasks matching this
            class.
          title: Model
          type: string
      required:
        - description
        - model
      title: MetaProfileClass
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-Session-API-Key
      type: apiKey

````

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