---
title: "Preview joining a voice server"
method: POST
path: "/voice/join/preview"
tags: ["Voice"]
---

# Preview joining a voice server

`POST /voice/join/preview`

## Request

- Base URL: `https://web.fluxer.app/api/v1`
- URL: `https://web.fluxer.app/api/v1/voice/join/preview`
- Auth: none required

Shows the server id, region, coordinates and webhook URL a new voice server would get from a join token. Send Authorization: VoiceJoin with the token. The call changes nothing and does not use the token.

## Request body

- VoiceJoinPreviewRequest
  - `public_ipv4` string, ipv4, nullable: Public IPv4 address of the voice machine
  - `public_ipv6` string, ipv6, nullable: Public IPv6 address of the voice machine
  - `region_id` string: Existing region the operator asked for
  - `cpu_count` integer: CPU count of the voice machine
  - `memory_bytes` integer: Memory of the voice machine in bytes
  - `rexctl_version` string: Version of rexctl on the voice machine

## Response `200`

Success

- VoiceJoinPreviewResponse
  - `server_id` string, required: Suggested server id, or the preset of the token
  - `server_id_pinned` boolean, required: Whether the token sets the server id, which the join then always uses
  - `region` object, required
    - `id` string, required: Region id
    - `name` string, required: Region name
    - `distance_km` number, nullable, required: Distance from the voice machine, or null without GeoIP data
    - `new` boolean, required: Whether the region is created when the server joins
    - `source` 'token' | 'requested' | 'nearest' | 'default', required: Why Fluxer picked the region, from the token, region_id, the nearest region or the default region
  - `latitude` number, nullable, required: Server latitude from GeoIP, rounded to 0.1 degrees
  - `longitude` number, nullable, required: Server longitude from GeoIP, rounded to 0.1 degrees
  - `hostname` string, nullable, required: Hostname preset of the token, or null
  - `suggested_hostname` string, required: A hostname under the instance domain the operator may use
  - `soft_connection_limit` number, nullable, required: Soft limit preset of the token, or null
  - `webhook_url` string, required: URL the server sends LiveKit webhooks to
  - `api_code_version` integer, required: Version of the API server code
  - `release` string, required: Fluxer release of the API, or an empty string for a development build
  - `expires_at` string, required: ISO 8601 timestamp when the token stops working
  - `turn_servers` VoiceTurnServer[], required: TURN servers of the instance, for the LiveKit configuration of the voice server
    - `host` string, required: Hostname or IPv4 address of the TURN server
    - `port` integer, required: Port of the TURN server
    - `protocol` 'udp' | 'tcp' | 'tls', required: Transport clients use to connect to the TURN server
    - `username` string: Fixed TURN username
    - `credential` string: Fixed TURN password
    - `secret` string: Shared secret LiveKit signs short-lived TURN credentials with
    - `ttl` integer: Lifetime of the signed credentials in seconds

## Other responses

- `400`: Bad Request - The request was malformed or contained invalid data
- `429`: Too Many Requests - You are being rate limited
- `500`: Internal Server Error - An unexpected error occurred

## Changes

- **2026-10-30** `2ce7b1fa9860`: 2 info
  - added the new optional request property `public_ipv6`
  - added the required property `turn_servers` to the response with the `200` status
- **2026-10-30** `a1e7d4dc7c27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fluxer/apis/fluxer-api/changes/voice/join/preview/post.md)

---

[API](https://skmtc.dev/fluxer/apis/fluxer-api.md) - [All operations](https://skmtc.dev/fluxer/apis/fluxer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fluxer/apis/fluxer-api/revisions/cc5362b4bc5d?raw)
