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

# Setup agent

> Sets up an agent with LinkedIn credentials and location



## OpenAPI

````yaml POST /agents/{id}/setup
openapi: 3.1.0
info:
  title: Kakiyo API
  description: API for automating LinkedIn outreach campaigns with AI-powered conversations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.kakiyo.com/v1
security:
  - bearerAuth: []
paths:
  /agents/{id}/setup:
    post:
      summary: Setup Agent
      description: Sets up an agent with LinkedIn credentials and location
      operationId: setupAgent
      parameters:
        - name: id
          in: path
          description: ID of the agent
          required: true
          schema:
            type: string
      requestBody:
        description: Agent setup information
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetupAgentRequest'
        required: true
      responses:
        '200':
          description: Agent setup successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Agent setup successfully
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Agent not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SetupAgentRequest:
      type: object
      required:
        - login
        - password
        - country
      properties:
        login:
          type: string
          format: email
          example: linkedin_email@example.com
        password:
          type: string
          minLength: 6
          example: secure_password_123
        country:
          type: string
          minLength: 2
          maxLength: 2
          example: US
    Error:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        message:
          type: string
          example: The request parameters failed validation
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                example: name
              message:
                type: string
                example: The name field is required
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````