{% extends "docs/base.html" %} {% block docs_content %}
Create a team and assign current user as owner.
POST /api/v1/teamsJSON body: name, slug.
curl \
--request POST \
--header "Authorization: Bearer $PEARING_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name": "Platform", "slug": "platform"}' \
"$PEARING_API_URL/v1/teams"201 Created with team record.
{
"uuid": "...",
"slug": "platform",
"name": "Platform"
}409 Conflict for duplicate team slug.Common auth errors are documented on the API overview page.