---
title: "POST /txcxn"
method: POST
path: "/txcxn"
tags: ["TELEX"]
---

# POST /txcxn

`POST /txcxn`

## Request body

- CreateTelexConnectionDto
  - `location` object, required — The current location of the aircraft
    - `x` number, required — The X coordinate
    - `y` number, required — The Y coordinate
  - `trueAltitude` number, required — The altitude above sea level of the aircraft in feet
  - `heading` number, required — The heading the aircraft in degrees
  - `freetextEnabled` boolean, required — Whether the user wants to receive freetext messages
  - `aircraftType` object, required — The aircraft type the connection associated with
  - `destination` string — The destination of the flight
  - `origin` string — The origin of the flight
  - `flight` string, required — The flight number

## Response `201`

A flight got created

- FlightToken
  - `accessToken` string, required — The access token for secured endpoints
  - `connection` string, required — The connection ID the token refers to
  - `flight` string, required — The flight number the token refers to

## Other responses

- `400` — An active flight with the given flight number is already in use

---

[API](https://skmtc.dev/flybywiresim/apis/flybywire-simulations-api.md) · [All operations](https://skmtc.dev/flybywiresim/apis/flybywire-simulations-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flybywiresim/flybywire-simulations-api/revisions/3013dbd0cff1/schema)
