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

# Create Reseller

> Creates a new reseller for the specified account

## Path Parameters

<ParamField path="accountId" type="string" required>
  The account ID to create the reseller under
</ParamField>

## Request Body

<ParamField body="resellerName" type="string" required>
  Name of the reseller
</ParamField>

<ParamField body="external_id" type="string">
  External identifier for integration with your systems
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.telzino.com/v1/accounts/account-123/resellers" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "resellerName": "Test Reseller",
      "external_id": "external-reseller-123"
    }'
  ```

  ```javascript JavaScript theme={null}
  const accountId = 'account-123';

  const response = await fetch(
    `https://api.telzino.com/v1/accounts/${accountId}/resellers`,
    {
      method: 'POST',
      headers: {
        'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        resellerName: 'Test Reseller',
        external_id: 'external-reseller-123'
      })
    }
  );

  const reseller = await response.json();
  ```

  ```python Python theme={null}
  import requests

  account_id = 'account-123'

  response = requests.post(
      f'https://api.telzino.com/v1/accounts/{account_id}/resellers',
      headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
      json={
          'resellerName': 'Test Reseller',
          'external_id': 'external-reseller-123'
      }
  )

  reseller = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "reseller-abc123",
    "account_id": "account-123",
    "name": "Test Reseller",
    "external_id": "external-reseller-123",
    "created_at": "2024-01-15T10:30:00Z"
  }
  ```

  ```json 400 theme={null}
  {
    "error": "Invalid request data",
    "details": [
      {
        "code": "too_small",
        "minimum": 1,
        "type": "string",
        "inclusive": true,
        "exact": false,
        "message": "resellerName is required",
        "path": ["resellerName"]
      }
    ]
  }
  ```
</ResponseExample>
