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

# Add agent



## OpenAPI

````yaml /agent-openapi.json post /api/v1/agents
openapi: 3.1.0
info:
  title: Polpo API
  version: 1.0.0
  description: >-
    REST API for Polpo — an AI agent that manages teams of AI coding agents.
    Manage tasks, missions, agents, playbooks, skills, and approvals. For
    conversational interaction, use the OpenAI-compatible POST
    /v1/chat/completions endpoint.
servers:
  - url: http://localhost:3890
    description: Local development
security:
  - bearerAuth: []
paths:
  /api/v1/agents:
    post:
      tags:
        - Agents
      summary: Add agent
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                role:
                  type: string
                model:
                  type: string
                allowedTools:
                  type: array
                  items:
                    type: string
                systemPrompt:
                  type: string
                skills:
                  type: array
                  items:
                    type: string
                maxTurns:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                identity:
                  type: object
                  properties:
                    displayName:
                      type: string
                    title:
                      type: string
                    company:
                      type: string
                    email:
                      type: string
                    bio:
                      type: string
                    timezone:
                      type: string
                    avatar:
                      type: string
                    responsibilities:
                      type: array
                      items:
                        anyOf:
                          - type: string
                          - type: object
                            properties:
                              area:
                                type: string
                              description:
                                type: string
                              priority:
                                type: string
                                enum:
                                  - critical
                                  - high
                                  - medium
                                  - low
                            required:
                              - area
                              - description
                    tone:
                      type: string
                    personality:
                      type: string
                    socials:
                      type: object
                      additionalProperties:
                        type: string
                reportsTo:
                  type: string
                assignedLoops:
                  type: array
                  description: Project-level Agentic Loop names assigned to this agent.
                  items:
                    type: string
                defaultLoop:
                  type: string
                  description: Default assigned Agentic Loop for this agent.
                browserProfile:
                  type: string
              required:
                - name
      responses:
        '201':
          description: Agent added
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  data:
                    type: object
                    properties:
                      added:
                        type: boolean
                    required:
                      - added
                required:
                  - ok
                  - data
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key passed as a Bearer token. Configure via the apiKeys field in
        polpo.json or the POLPO_API_KEY environment variable.

````