---
title: "Enable a Binance Square account"
canonical_url: "https://tweetstream.io/docs/api/enable-binance-square-account"
last_updated: 2026-11-05
---

# Enable a Binance Square account

POST /api/binance-square adds posts from one Binance Square account to your stream. Pick a handle from the list endpoint; the response confirms the change.

Canonical URL: https://tweetstream.io/docs/api/enable-binance-square-account

## `POST /api/binance-square`

`https://api.tweetstream.io/api/binance-square`

## Authorization

| Name | Type | Description |
| --- | --- | --- |
| `Authorization` | `string`, required | Bearer authentication with your TweetStream API key: `Bearer <key>`. |

## Body

| Name | Type | Description |
| --- | --- | --- |
| `account` | `string`, required |  |

### Body example

```json
{
  "account": "marketdesk"
}
```

## Response fields

| Name | Type | Description |
| --- | --- | --- |
| `account` | `string`, required |  |
| `binanceSquareEnabled` | `boolean`, required |  |

## Responses

| Status | Description | Headers |
| --- | --- | --- |
| `200` | Success |  |
| `400` | Invalid request |  |
| `401` | Missing or invalid API key |  |
| `403` | The authenticated account cannot use this capability |  |
| `500` | The request could not be completed |  |

### 200

```json
{
  "account": "<string>",
  "binanceSquareEnabled": true
}
```

### 400

```json
{
  "error": "<string>"
}
```

### 401

```json
{
  "error": "<string>"
}
```

### 403

```json
{
  "error": "<string>"
}
```

### 500

```json
{
  "error": "<string>"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.tweetstream.io/api/binance-square \
  --header "Authorization: Bearer $TWEETSTREAM_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "account": "marketdesk"
}'
```

### JavaScript

```javascript
const response = await fetch("https://api.tweetstream.io/api/binance-square", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TWEETSTREAM_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "account": "marketdesk"
  }),
});

console.log(response.status, await response.json());
```

### Python

```python
import os
import requests

response = requests.post(
    "https://api.tweetstream.io/api/binance-square",
    headers={"Authorization": f"Bearer {os.environ['TWEETSTREAM_API_KEY']}"},
    json={
        "account": "marketdesk",
    },
)

print(response.status_code, response.json())
```
