---
title: "Synthetic Test Twilio Number"
method: POST
path: "/api/channels/twilio/numbers/{account_id}/synthetic-test"
tags: ["channels", "channels", "twilio-voice"]
---

# Synthetic Test Twilio Number

`POST /api/channels/twilio/numbers/{account_id}/synthetic-test`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/channels/twilio/numbers/{account_id}/synthetic-test`
- Auth: none declared

Health-check the post-connect SIP path without placing a real call.

Verifies (in order):
  - Twilio creds still authenticate against the saved AccountSid.
  - The IncomingPhoneNumber record still exists and is attached to
    the per-tenant Twilio Elastic SIP Trunk (set by PR3b's
    outbound provisioning).
  - The LiveKit inbound trunk we route Twilio→LiveKit through is
    still registered on the LiveKit server.
  - The per-tenant LiveKit outbound trunk we route LiveKit→PSTN
    through is still registered.

Persists the result to `state.last_synthetic_test` so the channel
card can show pass/fail without re-running the checks. NEVER places
a real call (would cost money + need throwaway destination).

## Path parameters

- `account_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
