---
raw: true
search:
  tags:
    - Teams
    - POST
seo:
  description: >-
    Lets people with a verified address at this company domain join as…
    Reference for the POST /v1/teams/{teamId}/auto-enroll endpoint in the
    Spacefast API.
sidebar:
  label: Add a team auto-enroll domain
  badge: POST
title: Add a team auto-enroll domain
type: openapi-operation
---
Lets people with a verified address at this company domain join as members. New domains must match a verified email address of an existing team member. Domains are IDNA-canonicalized; shared mailbox providers, IP addresses and public suffixes are rejected. Adding an existing domain returns the same entry. No membership is created until the person chooses Join.

`POST /v1/teams/{teamId}/auto-enroll`

**Request body** (`application/json`, required)

- `kind` (string)
- `value` (string, required) — Company email domain, such as example.com.

Request body example:

```json
{
  "kind": "domain",
  "value": "string"
}
```

**Responses**

- `201` — Response for status 201
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 201:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "teamId": "string",
    "kind": "domain",
    "value": "string",
    "createdAt": "2019-08-24T14:15:22Z"
  }
}
```
