# Assign Warmup Tag

> Put a tag on an email account.

Requires an API key with the `write` scope.

Warmup tags group accounts in the warmup pool. They do not change sending. Repeating the call is safe: a tag already on the account stays as it is.

## Path Parameters

<ParamField path="account_id" type="string" required>The email account id.</ParamField>
<ParamField path="tag_id" type="string" required>The tag id.</ParamField>

## Response

<ResponseField name="data" type="object">
  <Expandable title="data">
    <ResponseField name="accountId" type="string">The email account.</ResponseField>
    <ResponseField name="tagId" type="string">The tag.</ResponseField>
    <ResponseField name="assigned" type="boolean">`true`.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
```bash cURL
curl -X POST "https://api.foxreach.io/api/v1/warmup/pool/acc_abc123/tags/tag_abc123" \
  -H "X-API-Key: otr_your_key"
```

```python Python SDK
from foxreach import FoxReach

client = FoxReach(api_key="otr_your_key")
client.warmup.assign_tag("acc_abc123", "tag_abc123")
```

```typescript TypeScript SDK
import { FoxReach } from "foxreach";

const client = new FoxReach({ apiKey: "otr_your_key" });
await client.warmup.assignTag("acc_abc123", "tag_abc123");
```
</RequestExample>

<ResponseExample>
```json
{
  "data": {"accountId": "acc_abc123", "tagId": "tag_abc123", "assigned": true}
}
```
</ResponseExample>

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `write` |
| `404` | `Account not found`: the account does not exist in this workspace |
| `404` | `Tag not found`: the tag does not exist in this workspace |

## Rate Limit

- **120 requests per minute, shared by every `write` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`write`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns, see [Rate Limiting](/rate-limiting).
