---
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. Defaults to `webcall` when omitted.
  - `toPhone` string — Phone number to call. Required only when `mode` is `telephony`. Omit for `webcall` and `chat`.

## Response `200`

Test call initiated

- object
  - `status` boolean
  - `data` object — Test call result details
    - `callId` string — The call ID of the initiated test call. Use with GET /conversation/{id} to fetch the call log.

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `403` — Forbidden access
- `404` — Agent or draft not found
- `500` — Internal server error

## Changes

- **2026-05-26** `5a6b4e19f353` — 3 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - added the optional property `data/callId` to the response with the `200` status
- **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/ea4ea58d7c4e/schema)
