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

# Verify agent connection

> Verify an agent's connection and persist the result when successful



## OpenAPI

````yaml /api-reference/openapi.json post /agents/{agent_uuid}/verify-connection
openapi: 3.1.0
info:
  title: Calibrate Public API
  version: 0.1.0
  description: Programmatic API for CI/automation. Pass your key in the `X-API-Key` header.
servers:
  - url: https://api.calibrate.artpark.ai
    description: Production
security: []
paths:
  /agents/{agent_uuid}/verify-connection:
    post:
      tags:
        - agents
      summary: Verify agent connection
      description: Verify an agent's connection and persist the result when successful
      operationId: verify_agent_connection_agents__agent_uuid__verify_connection_post
      parameters:
        - name: agent_uuid
          in: path
          required: true
          schema:
            type: string
            description: The agent whose connection to verify
            examples:
              - f47ac10b-58cc-4372-a567-0e02b2c3d479
            title: Agent Uuid
          description: The agent whose connection to verify
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentVerifyRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyConnectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AgentVerifyRequest:
      properties:
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
          description: >-
            Model to verify. Omit for a basic connection check. Provide it for a
            model-specific check before benchmarking that model
          examples:
            - openai/gpt-4.1
        messages:
          anyOf:
            - items:
                additionalProperties:
                  type: string
                type: object
              type: array
            - type: 'null'
          description: >-
            Sample chat messages to send during verification. Omit to use the
            default probe
          examples:
            - - content: Hello
                role: user
      type: object
      title: AgentVerifyRequest
      description: |-
        Body for verifying an existing agent by ID. The endpoint (`agent_url`,
        `agent_headers`) comes from the agent's stored config, so only the probe
        inputs are accepted here.
    VerifyConnectionResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: True if the agent responded successfully to the verification probe
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: Reason the verification failed
        sample_response:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Sample output returned by the agent during verification
      type: object
      required:
        - success
      title: VerifyConnectionResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````