---
title: "Test call with draft config"
method: POST
path: "/agent/{id}/drafts/{draftId}/test-call"
tags: ["Agent Versioning - Drafts"]
---

# Test call with draft config

`POST /agent/{id}/drafts/{draftId}/test-call`

Initiate a test call using the draft's resolved configuration.

## Path parameters

- `id` string, required
- `draftId` string, required

## Request body

- TestCallRequest
  - `mode` 'webcall' | 'chat' | 'telephony' — Test call mode
  - `toPhone` string — Phone number for telephony mode

## Response `200`

Test call initiated

- object
  - `status` boolean
  - `data` object — Test call result details

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `500` — Internal server error

## Changes

- **2026-04-20** `801f1d220d57` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smallest-inc/apis/agent-management-api/changes/agent/:id/drafts/:draftId/test-call/post.md)

---

[API](https://skmtc.dev/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.dev/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/2bfbd089ccb3/schema)
