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

# Create Agent Config



## OpenAPI

````yaml https://api.dev-sgp.scale.com/openapi-versions/v5/openapi.json post /v5/agent_configs
openapi: 3.1.0
info:
  title: EGP API V5
  description: >-
    This is the parent API for all EGP APIs. If you are looking for the EGP API,
    please go to https://api.egp.scale.com/docs.
  contact:
    name: Scale Generative AI Platform
    url: https://scale.com/genai-platform
  version: 0.1.0
servers:
  - url: https://api.egp.scale.com
security: []
paths:
  /v5/agent_configs:
    post:
      tags:
        - Agent Configs
      summary: Create Agent Config
      operationId: POST-V5-/v5/agent_configs
      parameters:
        - name: x-selected-account-id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Account ID Header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAgentConfigRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentConfig'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CreateAgentConfigRequest:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        description:
          title: Description
          type: string
          maxLength: 2000
        system_prompt:
          type: string
          maxLength: 100000
          minLength: 1
          title: System Prompt
        harness:
          $ref: '#/components/schemas/Harness'
          description: Harness strategy. See Harness enum for supported values.
        allowed_tools:
          items:
            $ref: '#/components/schemas/AllowedTool'
          type: array
          title: Allowed Tools
          description: >-
            Tools enabled for this config. See AllowedTool enum for the
            catalogue.
        model:
          type: string
          maxLength: 255
          minLength: 1
          title: Model
      type: object
      required:
        - name
        - system_prompt
        - harness
        - model
      title: CreateAgentConfigRequest
    AgentConfig:
      properties:
        id:
          type: string
          title: Id
        object:
          type: string
          const: agent_config
          title: Object
          default: agent_config
        name:
          type: string
          title: Name
        description:
          title: Description
          type: string
        system_prompt:
          type: string
          title: System Prompt
        harness:
          type: string
          title: Harness
        allowed_tools:
          items:
            type: string
          type: array
          title: Allowed Tools
        model:
          type: string
          title: Model
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - name
        - system_prompt
        - harness
        - allowed_tools
        - model
        - created_at
        - updated_at
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Harness:
      type: string
      enum:
        - claude-code
        - codex
        - litellm
      title: Harness
      description: |-
        Supported agent harness strategies.

        Mirrors ``PROVIDERS`` in golden-agent's ``project/harness/activity.py``.
    AllowedTool:
      type: string
      enum:
        - Read
        - Write
        - Edit
        - Bash
        - Glob
        - Grep
        - List
        - WebFetch
        - WebSearch
        - Task
        - TodoWrite
        - NotebookEdit
        - ExitPlanMode
        - Slack
        - Linear
        - GitHub
        - Confluence
        - Notion
        - Datadog
        - PagerDuty
        - Salesforce
        - Figma
        - Granola
      title: AllowedTool
      description: |-
        Tools an agent config may be granted.

        Granting an MCP server name (Slack, Linear, etc.) authorizes every tool
        exposed by that server, scoped via the agent's credentials.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          title: Error Type
          type: string
        input:
          title: Input
        ctx:
          type: object
          title: Context
          additionalProperties: true
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````