{
  "components": {
    "schemas": {
      "AgentEnvelope": {
        "properties": {
          "actions_completed": {
            "items": {
              "type": "string"
            },
            "title": "Actions Completed",
            "type": "array"
          },
          "handoff": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handoff"
          },
          "human_required": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HumanRequired"
              },
              {
                "type": "null"
              }
            ]
          },
          "message_for_user_agent": {
            "title": "Message For User Agent",
            "type": "string"
          },
          "pending_human_steps": {
            "items": {
              "$ref": "#/components/schemas/PendingHumanStep"
            },
            "title": "Pending Human Steps",
            "type": "array"
          },
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "setup_access_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Setup Access Token"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "status",
          "message_for_user_agent"
        ],
        "title": "AgentEnvelope",
        "type": "object"
      },
      "AssistantConfigRequest": {
        "properties": {
          "config": {
            "additionalProperties": true,
            "title": "Config",
            "type": "object"
          }
        },
        "title": "AssistantConfigRequest",
        "type": "object"
      },
      "CatalogResponse": {
        "properties": {
          "terminology_note": {
            "title": "Terminology Note",
            "type": "string"
          },
          "tools": {
            "items": {
              "$ref": "#/components/schemas/CatalogToolResponse"
            },
            "title": "Tools",
            "type": "array"
          }
        },
        "required": [
          "tools",
          "terminology_note"
        ],
        "title": "CatalogResponse",
        "type": "object"
      },
      "CatalogToolResponse": {
        "properties": {
          "agent_can_submit_credentials": {
            "default": false,
            "title": "Agent Can Submit Credentials",
            "type": "boolean"
          },
          "auth_type": {
            "title": "Auth Type",
            "type": "string"
          },
          "availability": {
            "title": "Availability",
            "type": "string"
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "title": "Capabilities",
            "type": "array"
          },
          "category": {
            "title": "Category",
            "type": "string"
          },
          "docs_url": {
            "default": "",
            "title": "Docs Url",
            "type": "string"
          },
          "industries": {
            "items": {
              "type": "string"
            },
            "title": "Industries",
            "type": "array"
          },
          "required_fields": {
            "items": {
              "type": "string"
            },
            "title": "Required Fields",
            "type": "array"
          },
          "terminology_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Terminology Note"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "tool_id": {
            "title": "Tool Id",
            "type": "string"
          },
          "ui_connection_label": {
            "default": "Connection",
            "title": "Ui Connection Label",
            "type": "string"
          }
        },
        "required": [
          "tool_id",
          "title",
          "category",
          "availability",
          "auth_type"
        ],
        "title": "CatalogToolResponse",
        "type": "object"
      },
      "ClaimRequest": {
        "properties": {
          "agent_claim_token": {
            "title": "Agent Claim Token",
            "type": "string"
          }
        },
        "required": [
          "agent_claim_token"
        ],
        "title": "ClaimRequest",
        "type": "object"
      },
      "ClaimResponse": {
        "properties": {
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "setup_access_token": {
            "title": "Setup Access Token",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "setup_access_token",
          "session_id",
          "status"
        ],
        "title": "ClaimResponse",
        "type": "object"
      },
      "ConsentPreviewResponse": {
        "properties": {
          "allowed_actions": {
            "items": {
              "type": "string"
            },
            "title": "Allowed Actions",
            "type": "array"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "partner_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Partner Agent"
          },
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "status"
        ],
        "title": "ConsentPreviewResponse",
        "type": "object"
      },
      "ConsentRequest": {
        "properties": {
          "consent_token": {
            "title": "Consent Token",
            "type": "string"
          }
        },
        "required": [
          "consent_token"
        ],
        "title": "ConsentRequest",
        "type": "object"
      },
      "ConsentResponse": {
        "properties": {
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "setup_access_token": {
            "title": "Setup Access Token",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "setup_access_token",
          "session_id",
          "status"
        ],
        "title": "ConsentResponse",
        "type": "object"
      },
      "CreateSessionRequest": {
        "properties": {
          "partner_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Attribution for the external agent host (claude, chatgpt, cursor, custom).",
            "title": "Partner Agent"
          }
        },
        "title": "CreateSessionRequest",
        "type": "object"
      },
      "CreateSessionResponse": {
        "properties": {
          "agent_claim_token": {
            "title": "Agent Claim Token",
            "type": "string"
          },
          "consent_url": {
            "title": "Consent Url",
            "type": "string"
          },
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "consent_url",
          "agent_claim_token",
          "status"
        ],
        "title": "CreateSessionResponse",
        "type": "object"
      },
      "EnableToolRequest": {
        "properties": {
          "payload": {
            "additionalProperties": true,
            "title": "Payload",
            "type": "object"
          }
        },
        "title": "EnableToolRequest",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "HumanRequired": {
        "properties": {
          "fields": {
            "items": {
              "type": "string"
            },
            "title": "Fields",
            "type": "array"
          },
          "instructions": {
            "title": "Instructions",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          }
        },
        "required": [
          "type",
          "instructions"
        ],
        "title": "HumanRequired",
        "type": "object"
      },
      "HumanStepCompleteRequest": {
        "properties": {
          "step": {
            "enum": [
              "payment",
              "tool"
            ],
            "title": "Step",
            "type": "string"
          },
          "tool_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Id"
          }
        },
        "required": [
          "step"
        ],
        "title": "HumanStepCompleteRequest",
        "type": "object"
      },
      "KnowledgeRequest": {
        "properties": {
          "knowledge": {
            "additionalProperties": true,
            "title": "Knowledge",
            "type": "object"
          }
        },
        "title": "KnowledgeRequest",
        "type": "object"
      },
      "OpenApiNoteResponse": {
        "properties": {
          "docs": {
            "title": "Docs",
            "type": "string"
          },
          "llms": {
            "title": "Llms",
            "type": "string"
          },
          "terminology": {
            "title": "Terminology",
            "type": "string"
          }
        },
        "required": [
          "terminology",
          "docs",
          "llms"
        ],
        "title": "OpenApiNoteResponse",
        "type": "object"
      },
      "PendingHumanStep": {
        "description": "One dashboard action the agent is waiting on.",
        "properties": {
          "instructions": {
            "title": "Instructions",
            "type": "string"
          },
          "step": {
            "title": "Step",
            "type": "string"
          },
          "tool_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Id"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          }
        },
        "required": [
          "step",
          "instructions"
        ],
        "title": "PendingHumanStep",
        "type": "object"
      },
      "ProfileRequest": {
        "properties": {
          "profile": {
            "additionalProperties": true,
            "title": "Profile",
            "type": "object"
          }
        },
        "title": "ProfileRequest",
        "type": "object"
      },
      "SelectToolsRequest": {
        "properties": {
          "tool_ids": {
            "items": {
              "type": "string"
            },
            "title": "Tool Ids",
            "type": "array"
          }
        },
        "title": "SelectToolsRequest",
        "type": "object"
      },
      "SessionToolState": {
        "properties": {
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Message"
          },
          "result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "tool_id": {
            "title": "Tool Id",
            "type": "string"
          }
        },
        "required": [
          "tool_id",
          "status"
        ],
        "title": "SessionToolState",
        "type": "object"
      },
      "SessionView": {
        "properties": {
          "actions_completed": {
            "items": {
              "type": "string"
            },
            "title": "Actions Completed",
            "type": "array"
          },
          "handoff": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handoff"
          },
          "human_required": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HumanRequired"
              },
              {
                "type": "null"
              }
            ]
          },
          "message_for_user_agent": {
            "title": "Message For User Agent",
            "type": "string"
          },
          "pending_human_steps": {
            "items": {
              "$ref": "#/components/schemas/PendingHumanStep"
            },
            "title": "Pending Human Steps",
            "type": "array"
          },
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "setup_access_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Setup Access Token"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "tools": {
            "items": {
              "$ref": "#/components/schemas/SessionToolState"
            },
            "title": "Tools",
            "type": "array"
          }
        },
        "required": [
          "session_id",
          "status",
          "message_for_user_agent"
        ],
        "title": "SessionView",
        "type": "object"
      },
      "TelephonyRequest": {
        "properties": {
          "telephony": {
            "additionalProperties": true,
            "title": "Telephony",
            "type": "object"
          }
        },
        "title": "TelephonyRequest",
        "type": "object"
      },
      "TestCallRequest": {
        "properties": {
          "duration_sec": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Sec"
          },
          "status": {
            "default": "passed",
            "title": "Status",
            "type": "string"
          }
        },
        "title": "TestCallRequest",
        "type": "object"
      },
      "ToolActionView": {
        "properties": {
          "actions_completed": {
            "items": {
              "type": "string"
            },
            "title": "Actions Completed",
            "type": "array"
          },
          "handoff": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handoff"
          },
          "human_required": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HumanRequired"
              },
              {
                "type": "null"
              }
            ]
          },
          "message_for_user_agent": {
            "title": "Message For User Agent",
            "type": "string"
          },
          "pending_human_steps": {
            "items": {
              "$ref": "#/components/schemas/PendingHumanStep"
            },
            "title": "Pending Human Steps",
            "type": "array"
          },
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "setup_access_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Setup Access Token"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "tool": {
            "$ref": "#/components/schemas/SessionToolState"
          }
        },
        "required": [
          "session_id",
          "status",
          "message_for_user_agent",
          "tool"
        ],
        "title": "ToolActionView",
        "type": "object"
      },
      "ToolsStatusResponse": {
        "properties": {
          "all_resolved": {
            "title": "All Resolved",
            "type": "boolean"
          },
          "pending_human_steps": {
            "items": {
              "$ref": "#/components/schemas/PendingHumanStep"
            },
            "title": "Pending Human Steps",
            "type": "array"
          },
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "tools": {
            "items": {
              "$ref": "#/components/schemas/SessionToolState"
            },
            "title": "Tools",
            "type": "array"
          }
        },
        "required": [
          "session_id",
          "status",
          "tools",
          "all_resolved"
        ],
        "title": "ToolsStatusResponse",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "WebhookRegisterRequest": {
        "properties": {
          "webhook_url": {
            "title": "Webhook Url",
            "type": "string"
          }
        },
        "required": [
          "webhook_url"
        ],
        "title": "WebhookRegisterRequest",
        "type": "object"
      },
      "WebhookRegisterResponse": {
        "properties": {
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "webhook_url": {
            "title": "Webhook Url",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "webhook_url",
          "status"
        ],
        "title": "WebhookRegisterResponse",
        "type": "object"
      }
    },
    "securitySchemes": {
      "DashboardCookie": {
        "description": "Dashboard session cookie. Workspace owner only.",
        "in": "cookie",
        "name": "access_token",
        "type": "apiKey"
      },
      "SetupBearer": {
        "description": "Setup access token returned by POST /v1/setup/sessions/{session_id}/claim.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "contact": {
      "name": "Voicetta developer docs",
      "url": "https://voicetta.com/developers"
    },
    "description": "Provision a Voicetta workspace from another agent. Create a session, send the\nhuman to the consent URL, then exchange `agent_claim_token` for a setup bearer\nonce they authorize. Later steps use `Authorization: Bearer setup_...`.\n\nPayment, phone purchase, and tool credentials stay in the dashboard. Poll\n`pending_human_steps` and wait for the human; do not ask them to paste tokens.\n\nGuides: https://voicetta.com/developers",
    "title": "Voicetta Setup API",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/setup/openapi-note": {
      "get": {
        "operationId": "setup_openapi_note_v1_setup_openapi_note_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenApiNoteResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [],
        "summary": "Terminology",
        "tags": [
          "Catalog"
        ]
      }
    },
    "/v1/setup/sessions": {
      "post": {
        "operationId": "create_setup_session_v1_setup_sessions_post",
        "parameters": [
          {
            "in": "header",
            "name": "X-Partner-Agent",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Partner-Agent"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSessionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateSessionResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [],
        "summary": "Create session",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}": {
      "get": {
        "operationId": "get_setup_session_v1_setup_sessions__session_id__get",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionView"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Get session",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/advance": {
      "post": {
        "operationId": "advance_setup_session_v1_setup_sessions__session_id__advance_post",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Advance session",
        "tags": [
          "Steps"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/assistant": {
      "post": {
        "operationId": "configure_assistant_v1_setup_sessions__session_id__assistant_post",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssistantConfigRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Configure assistant",
        "tags": [
          "Steps"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/claim": {
      "post": {
        "operationId": "claim_setup_session_v1_setup_sessions__session_id__claim_post",
        "parameters": [
          {
            "in": "path",
            "name": "session_id",
            "required": true,
            "schema": {
              "title": "Session Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClaimRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [],
        "summary": "Claim access token",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/consent": {
      "post": {
        "operationId": "consent_setup_session_v1_setup_sessions__session_id__consent_post",
        "parameters": [
          {
            "in": "path",
            "name": "session_id",
            "required": true,
            "schema": {
              "title": "Session Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsentResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DashboardCookie": []
          }
        ],
        "summary": "Grant consent",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/consent-preview": {
      "get": {
        "operationId": "preview_setup_consent_v1_setup_sessions__session_id__consent_preview_get",
        "parameters": [
          {
            "in": "path",
            "name": "session_id",
            "required": true,
            "schema": {
              "title": "Session Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "consent_token",
            "required": true,
            "schema": {
              "title": "Consent Token",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsentPreviewResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [],
        "summary": "Preview consent",
        "tags": [
          "Sessions"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/handoff": {
      "get": {
        "operationId": "get_handoff_summary_v1_setup_sessions__session_id__handoff_get",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Get handoff",
        "tags": [
          "Handoff"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/human-step/complete": {
      "post": {
        "operationId": "complete_human_step_v1_setup_sessions__session_id__human_step_complete_post",
        "parameters": [
          {
            "in": "path",
            "name": "session_id",
            "required": true,
            "schema": {
              "title": "Session Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanStepCompleteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DashboardCookie": []
          }
        ],
        "summary": "Complete human step",
        "tags": [
          "Steps"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/knowledge": {
      "post": {
        "operationId": "upload_knowledge_v1_setup_sessions__session_id__knowledge_post",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KnowledgeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Upload knowledge",
        "tags": [
          "Steps"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/phone": {
      "post": {
        "operationId": "request_phone_number_v1_setup_sessions__session_id__phone_post",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TelephonyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Request phone number",
        "tags": [
          "Steps"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/phone/confirm-payment": {
      "post": {
        "operationId": "confirm_phone_payment_v1_setup_sessions__session_id__phone_confirm_payment_post",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Confirm payment",
        "tags": [
          "Steps"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/phone/provisioned": {
      "post": {
        "operationId": "mark_phone_provisioned_v1_setup_sessions__session_id__phone_provisioned_post",
        "parameters": [
          {
            "in": "query",
            "name": "voicetta_phone",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Voicetta Phone"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Mark phone provisioned",
        "tags": [
          "Steps"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/profile": {
      "post": {
        "operationId": "submit_business_profile_v1_setup_sessions__session_id__profile_post",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Submit profile",
        "tags": [
          "Steps"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/test-call": {
      "post": {
        "operationId": "run_test_call_v1_setup_sessions__session_id__test_call_post",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestCallRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEnvelope"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Record test call",
        "tags": [
          "Steps"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/tools": {
      "get": {
        "operationId": "get_tools_status_v1_setup_sessions__session_id__tools_get",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolsStatusResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Get tool status",
        "tags": [
          "Tools"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/tools/select": {
      "post": {
        "operationId": "select_tools_v1_setup_sessions__session_id__tools_select_post",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectToolsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionView"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Select tools",
        "tags": [
          "Tools"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/tools/{tool_id}/enable": {
      "post": {
        "operationId": "enable_tool_v1_setup_sessions__session_id__tools__tool_id__enable_post",
        "parameters": [
          {
            "in": "path",
            "name": "tool_id",
            "required": true,
            "schema": {
              "title": "Tool Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnableToolRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolActionView"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Enable tool",
        "tags": [
          "Tools"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/tools/{tool_id}/skip": {
      "post": {
        "operationId": "skip_tool_v1_setup_sessions__session_id__tools__tool_id__skip_post",
        "parameters": [
          {
            "in": "path",
            "name": "tool_id",
            "required": true,
            "schema": {
              "title": "Tool Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionView"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Skip tool",
        "tags": [
          "Tools"
        ]
      }
    },
    "/v1/setup/sessions/{session_id}/webhooks/register": {
      "post": {
        "operationId": "register_setup_webhook_v1_setup_sessions__session_id__webhooks_register_post",
        "parameters": [
          {
            "in": "header",
            "name": "authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookRegisterRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookRegisterResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "SetupBearer": []
          }
        ],
        "summary": "Register webhook",
        "tags": [
          "Handoff"
        ]
      }
    },
    "/v1/setup/tools/catalog": {
      "get": {
        "operationId": "list_tools_catalog_v1_setup_tools_catalog_get",
        "parameters": [
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          },
          {
            "in": "query",
            "name": "industry",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Industry"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [],
        "summary": "List tools",
        "tags": [
          "Catalog"
        ]
      }
    },
    "/v1/setup/tools/catalog/{tool_id}": {
      "get": {
        "operationId": "get_tool_catalog_item_v1_setup_tools_catalog__tool_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "tool_id",
            "required": true,
            "schema": {
              "title": "Tool Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogToolResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [],
        "summary": "Get tool",
        "tags": [
          "Catalog"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Production",
      "url": "https://api.voicetta.com"
    }
  ],
  "tags": [
    {
      "description": "Setup tools an agent can select. UI label: Connection.",
      "name": "Catalog"
    },
    {
      "description": "Create a session, consent, and claim a bearer.",
      "name": "Sessions"
    },
    {
      "description": "Profile, assistant, knowledge, phone, and human steps.",
      "name": "Steps"
    },
    {
      "description": "Select, enable, or skip tools for this session.",
      "name": "Tools"
    },
    {
      "description": "Webhook registration and the final handoff card.",
      "name": "Handoff"
    }
  ]
}
