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

# Test call with draft config

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

> **Deprecated.**

**Deprecated.** Test-calls are exempt from the v1 write-block and remain functional. Migrate to `POST /agent/{id}/branches/{branchId}/test-call` with `includeDraft: true`. Will be removed at the sunset date.

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

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/versions/6d1036a76fbc/schema)
