# apps.connections.open

> A one-time WebSocket URL for Socket Mode (valid a few seconds).

Source: https://slaiky.xyz/docs/reference/methods/apps.connections.open

Connect to it, then acknowledge each envelope with `{ "t": "app.ack", "d": { "envelopeId" } }`.

`POST https://app.slaiky.xyz/api/methods/apps.connections.open` · needs the bot token

## Arguments

No arguments.

## Answer

`{ "ok": true, … }` with: url: string. A refusal is `{ "ok": false, "error": { "code", "message" } }` ([errors](/docs/errors)).

## Example

Recorded on a real server (ids replaced).

*you run*

```sh

curl -s https://app.slaiky.xyz/api/methods/apps.connections.open \
  -H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
  -H 'content-type: application/json' \
  -d '{}'

```

*Slaiky → your app · `answer`*

```json

{
  "ok": true,
  "url": "wss://app.slaiky.xyz/ws?ticket=docs-ticket"
}

```
