Skip to main content
POST
/
team
/
create-team
Create a child team
curl --request POST \
  --url https://bee.theswarm.com/team/create-team \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "team_name": "<string>",
  "owner_email": "<string>",
  "company_website": "<string>",
  "company_linkedin_url": "<string>"
}
'
{
  "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Available for Swarm Partners only. Get in touch to learn more about becoming a partner.
Creates a new child team under your partner account. The response returns a team_id β€” save this value, as it is required to authenticate subsequent requests on behalf of that team. For a conceptual overview, see Team Management β€” Create Team.

Using the team_id

Pass the returned team_id in the x-authenticate-team header to perform actions in the context of the child team:
x-authenticate-team: <team_id>
This header is supported by the following endpoints: When the header is omitted, the action is performed in the context of the parent team.

Team ownership

If owner_email is omitted, the parent team’s owner automatically becomes the owner of the newly created child team.

Authorizations

x-api-key
string
header
required

Body

application/json
team_name
string
required

Name of the new team

owner_email
string

Email of the team owner. If omitted, the current team's owner is used.

company_website
string

Company website to use for automatic network mapping. Cannot be combined with company_linkedin_url.

company_linkedin_url
string

Company LinkedIn URL to use for automatic network mapping. Cannot be combined with company_website.

Response

Team created successfully

team_id
string<uuid>
required

ID of the newly created team