---
title: "Test call with version config"
method: POST
path: "/agent/{id}/versions/{versionId}/test-call"
tags: ["Agent Versioning - Versions"]
deprecated: true
---

# Test call with version config

`POST /agent/{id}/versions/{versionId}/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 `revisionId`. Will be removed at the sunset date.

|
Initiate a test call using a specific published version's configuration.
The response always includes `conversationId` and `callId`. For `webcall`
and `chat`, it also includes `token`, `roomName`, and `host`. Those fields
are omitted for `telephony`.

## Path parameters

- `id` string, required
- `versionId` 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
    - `conversationId` string, required — Conversation ID created for the test call
    - `callId` string, required — Call ID created for the test call
    - `token` string — Returned for webcall and chat modes only
    - `roomName` string — Returned for webcall and chat modes only
    - `host` string — Returned for webcall and chat modes only

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `403` — Forbidden. Returned for workflow_graph agents when the organization lacks conversational agents access.
- `404` — Agent or version 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/revisions/c2d0eb64b01a/schema)
