---
title: "Start connecting a messaging channel"
description: "Returns a link that finishes the connection within 15 minutes: a Telegram link that opens the Cool Computers bot, or the Slack page that installs the Cool Computers app."
canonical: "https://www.cool.computer/docs/api-reference/messaging/start-connecting-a-messaging-channel"
---
# Start connecting a messaging channel

> Returns a link that finishes the connection within 15 minutes: a Telegram link that opens the Cool Computers bot, or the Slack page that installs the Cool Computers app.

```http
POST https://api.cool.computer/api/messaging/{provider}/connect
```

Returns a link that finishes the connection within 15 minutes: a Telegram link that opens the Cool Computers bot, or the Slack page that installs the Cool Computers app. A Slack install finishes in a browser signed in to the account that started it; a browser signed out is asked to sign in first. Starting again replaces a link still pending. Finishing a link replaces the account's existing connection on that provider: earlier chats stay, answers not yet sent there are dropped, and the next message starts a new chat. Callers: the account owner, with the browser session, a user API key or an access token; organization API keys are refused, as for starting a chat.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `provider` (path, "telegram" or "slack", required): Messaging provider.

## Responses

- `200`: The link that finishes the connection.
  - `application/json` (object)
    - `url` (string, uri, required)
- `400`: Bad Request.
- `401`: Unauthorized.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `503`: Service Unavailable.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl -X POST "https://api.cool.computer/api/messaging/$PARAM_PROVIDER/connect" \
  -H "authorization: Bearer $TOKEN"
```
