---
title: "Retrieve a mock for current connection settings."
method: GET
path: "/api/connection"
---

# Retrieve a mock for current connection settings.

`GET /api/connection`

## Response `200`

OK

- object
  - `current` ConnCurrent
    - `baudrate` integer, nullable
    - `port` string, nullable
    - `printerProfile` string
    - `state` 'Operational' | 'Printing' | 'Pausing' | 'Paused' | 'Cancelling' | 'Error' | 'Offline' | 'Busy'
  - `options` ConnOptions
    - `ports` string[]
    - `baudrates` integer[]
    - `printerProfiles` object[]
      - `id` string
      - `name` string
  - `connect` ConnConfig
    - `hostname` string
    - `port` integer
    - `tls` boolean
    - `registrated` boolean
  - `states` ConnStates
    - `printer` object
      - `ok` boolean
      - `message` string
    - `connect` object
      - `ok` boolean, nullable
      - `message` string

## Other responses

- `403` — Unauthorized

## Changes

- **2021-09-23** `7ad880a6c0c4` — 8 info
  - added the optional property `connect` to the response with the `200` status
  - added the optional property `states` to the response with the `200` status
  - the response property `text` became required for the status `403`
  - the response property `title` became required for the status `403`
  - …4 more
- **2021-04-15** `50f55b7fa1c5` — 1 warning
  - added the new `Busy` enum value to the `current/state` response property for the response status `200`
- **2021-02-22** `30eda14983ed` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/prusa3d/apis/prusalink-web/changes/api/connection/get.md)

---

[API](https://skmtc.dev/prusa3d/apis/prusalink-web.md) · [All operations](https://skmtc.dev/prusa3d/apis/prusalink-web/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prusa3d/prusalink-web/revisions/ebdce30f1db8/schema)
