---
title: "Change Ultra Speed accounts"
canonical_url: "https://tweetstream.io/docs/api/set-ultra-accounts"
last_updated: 2026-11-05
---

# Change Ultra Speed accounts

Turn Ultra Speed on or off for accounts, each by handle.

Canonical URL: https://tweetstream.io/docs/api/set-ultra-accounts

## `POST /api/ultra/accounts`

`https://api.tweetstream.io/api/ultra/accounts`

## Authorization

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

## Headers

| Name | Type | Description |
| --- | --- | --- |
| `Idempotency-Key` | `string`, required | Required. Generate one key per intended purchase or change and reuse it on retries; the same key returns the same result. |

## Body

| Name | Type | Description |
| --- | --- | --- |
| `changes` | `object[]`, required | an array of at most 100 item(s) |
| `changes.enabled` | `boolean`, required |  |
| `changes.handle` | `string`, required | a string matching the pattern ^@?[A-Za-z0-9_]{1,15}$ |
| `subscriptionId` | `string`, required | a string at most 128 character(s) long |

### Body example

```json
{
  "changes": [
    {
      "enabled": true,
      "handle": "marketdesk"
    }
  ],
  "subscriptionId": "sub_1QExampleUltra"
}
```

## Response fields

| Name | Type | Description |
| --- | --- | --- |
| `accountLimit` | `integer`, required | an integer |
| `accounts` | `object[]`, required |  |
| `accounts.handle` | `string`, required | a string matching the pattern ^@?[A-Za-z0-9_]{1,15}$ |
| `accounts.id` | `string`, required | a string matching the pattern ^[1-9][0-9]{0,19}$ |
| `subscriptionId` | `string`, required |  |
| `results` | `object[]`, required |  |
| `results.enabled` | `boolean`, required |  |
| `results.handle` | `string`, required | a string matching the pattern ^@?[A-Za-z0-9_]{1,15}$ |
| `results.message` | `string` | a string at most 200 character(s) long |
| `results.outcome` | `enum<string>`, required |  |

## Responses

| Status | Description | Headers |
| --- | --- | --- |
| `200` | Success |  |
| `400` | Invalid request, wrong code, or the Terms were not accepted |  |
| `401` | Missing or invalid API key, or the setup proof is missing or expired |  |
| `404` | No such checkout or link, or the account has no entitlement for this product |  |
| `409` | Idempotency, checkout, offer or trial conflict |  |
| `429` | Rate limit or activation budget reached; retry after retryAfterSeconds |  |
| `503` | Temporarily unavailable; retry later |  |

### 200

```json
{
  "accountLimit": 5,
  "accounts": [
    {
      "handle": "marketdesk",
      "id": "1189745302"
    }
  ],
  "subscriptionId": "sub_1QExampleUltra",
  "results": [
    {
      "enabled": true,
      "handle": "marketdesk",
      "outcome": "applied"
    }
  ]
}
```

### 400

```json
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "<string>",
    "reason": "not_offered",
    "retryAfterSeconds": 123
  },
  "next": {
    "message": "<string>",
    "action": "call_action",
    "method": "POST",
    "name": "<string>",
    "url": "<string>",
    "who": "agent"
  }
}
```

### 401

```json
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "<string>",
    "reason": "not_offered",
    "retryAfterSeconds": 123
  },
  "next": {
    "message": "<string>",
    "action": "call_action",
    "method": "POST",
    "name": "<string>",
    "url": "<string>",
    "who": "agent"
  }
}
```

### 404

```json
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "<string>",
    "reason": "not_offered",
    "retryAfterSeconds": 123
  },
  "next": {
    "message": "<string>",
    "action": "call_action",
    "method": "POST",
    "name": "<string>",
    "url": "<string>",
    "who": "agent"
  }
}
```

### 409

```json
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "<string>",
    "reason": "not_offered",
    "retryAfterSeconds": 123
  },
  "next": {
    "message": "<string>",
    "action": "call_action",
    "method": "POST",
    "name": "<string>",
    "url": "<string>",
    "who": "agent"
  }
}
```

### 429

```json
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "<string>",
    "reason": "not_offered",
    "retryAfterSeconds": 123
  },
  "next": {
    "message": "<string>",
    "action": "call_action",
    "method": "POST",
    "name": "<string>",
    "url": "<string>",
    "who": "agent"
  }
}
```

### 503

```json
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "<string>",
    "reason": "not_offered",
    "retryAfterSeconds": 123
  },
  "next": {
    "message": "<string>",
    "action": "call_action",
    "method": "POST",
    "name": "<string>",
    "url": "<string>",
    "who": "agent"
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.tweetstream.io/api/ultra/accounts \
  --header "Authorization: Bearer $TWEETSTREAM_API_KEY" \
  --header 'Idempotency-Key: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
  --header 'Content-Type: application/json' \
  --data '{
  "changes": [
    {
      "enabled": true,
      "handle": "marketdesk"
    }
  ],
  "subscriptionId": "sub_1QExampleUltra"
}'
```

### JavaScript

```javascript
const response = await fetch("https://api.tweetstream.io/api/ultra/accounts", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TWEETSTREAM_API_KEY}`,
    "Idempotency-Key": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "changes": [
      {
        "enabled": true,
        "handle": "marketdesk"
      }
    ],
    "subscriptionId": "sub_1QExampleUltra"
  }),
});

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

### Python

```python
import os
import requests

response = requests.post(
    "https://api.tweetstream.io/api/ultra/accounts",
    headers={"Authorization": f"Bearer {os.environ['TWEETSTREAM_API_KEY']}", "Idempotency-Key": "7c9e6679-7425-40de-944b-e07fc1f90ae7"},
    json={
        "changes": [
            {
                "enabled": True,
                "handle": "marketdesk",
            },
        ],
        "subscriptionId": "sub_1QExampleUltra",
    },
)

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