> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add multiple symbols at once

> Efficiently add multiple symbols to the vocabulary in a single request. This is more efficient than making individual requests for each symbol…

Efficiently add multiple symbols to the vocabulary in a single request.
This is more efficient than making individual requests for each symbol.
**Example**

```bash theme={null}
curl -X POST 'https://api.nsr.stateset.com/api/v1/nsr/symbols/batch' \
-H 'X-API-Key: your-api-key' \
-H 'Content-Type: application/json' \
-d '&#123;'names': ['WALK', 'RUN', 'JUMP', 'TURN_LEFT', 'TURN_RIGHT']&#125;'
```

**Required scope:** `write`

### Request body

`AddSymbolsRequest`

<ParamField body="names" type="string[]" required>
  List of symbol names
</ParamField>

### Response

`ListSymbolsResponse`

<ResponseField name="symbols" type="SymbolResponse[]" required>
  List of symbols

  <Expandable title="SymbolResponse">
    <ResponseField name="has_program" type="boolean" required>
      Whether the symbol has an associated program
    </ResponseField>

    <ResponseField name="id" type="integer (int64)" required>
      Symbol ID
    </ResponseField>

    <ResponseField name="name" type="string" required>
      Symbol name
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="total" type="integer" required>
  Total count
</ResponseField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Symbols added successfully                         |
| `400` | Invalid request - empty list or too many symbols   |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.nsr.stateset.com/api/v1/nsr/symbols/batch' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "names": [
      "WALK",
      "RUN",
      "JUMP",
      "TURN_LEFT",
      "TURN_RIGHT"
    ]
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "symbols": [
      {
        "has_program": true,
        "id": 1001,
        "name": "Two-Person Tent"
      }
    ],
    "total": 102
  }
  ```
</ResponseExample>
