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

# AIエージェントを取得する



## OpenAPI

````yaml GET /agents/{id}
openapi: 3.1.0
info:
  title: AIコール API
  version: '1.0'
  description: 自社のシステムからAIエージェントで電話をかけ、通話の結果を受け取るためのAPIです。
servers:
  - url: https://api.ai-call.co
security:
  - bearerAuth: []
tags:
  - name: 通話
  - name: エージェント・電話番号
  - name: Webhook
paths:
  /agents/{id}:
    get:
      tags:
        - エージェント・電話番号
      summary: AIエージェントを取得する
      operationId: getAgent
      parameters:
        - name: id
          in: path
          required: true
          description: AIエージェントのID
          schema:
            type: string
      responses:
        '200':
          description: AIエージェント
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Agent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Agent:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        design:
          type: string
          enum:
            - prompt
            - flow
          description: '`prompt`＝簡単な設計、`flow`＝高度な設計'
        ready:
          type: boolean
          description: 通話に使えるか（会話が設定済みか）
        status:
          type:
            - string
            - 'null'
        phone_numbers:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              phone_number:
                type: string
              inbound:
                type: boolean
              outbound:
                type: boolean
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: 機械で判断するための英字のコード
              example: do_not_call
            message:
              type: string
              description: 日本語の説明
              example: この番号は架電しない設定です。
  responses:
    Unauthorized:
      description: APIキーがないか無効です（`missing_api_key` `invalid_api_key`）。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: このAPIキーに必要な権限がありません（`insufficient_scope`）。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: >-
        見つかりません（`not_found` `call_not_found` `agent_not_found`
        `webhook_not_found`）。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 管理画面「設定 → API」で作成したAPIキー（`aic_sk_…`）。

````

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