레퍼런스HTTP APITeams

Create a team

POST
/v1/teams

Owners and admins (team.manage). A live team's name is unique in its workspace (409 ALREADY_EXISTS). Writes a create_team receipt.

Auth: cookie session only; no scope. Idempotency-Key: ignored.

Authorization

cookieSession
cookie__Host-werft_session<token>

For the web console: the browser session cookie set by POST /v1/auth/login. It holds the scopes of the user's workspace role (owner: all; admin and member: all but sessions:recover). Requests other than GET must also send X-Requested-With: werft-web.

Header Parameters

X-Requested-With?"werft-web"

Required with a cookie session: the literal werft-web.

Value in"werft-web"

Request Body

application/json
  1. body
name*string
Length1 <= length <= 100

Response Body

The team, created with no members; receipt_id names its create_team receipt.

application/json
  1. response
team*
receipt_id*|null
Example Request
curl -X POST 'https://example.com/v1/teams' \  -H 'Content-Type: application/json' \  -d '{  "name": "research admins"}'
Example Response
{  "team": {    "id": "019a0000-0000-7000-8000-00000000b0a1",    "workspace_id": "9d2c4e61-8a3b-4f70-b1e5-6c0a7d3f2b98",    "name": "research admins",    "member_count": 0,    "created_by": "3e7f1a90-5c2d-4b8e-8f61-2a9d0c4b7e35",    "created_at": "2026-10-23T09:00:00Z",    "revision": 1  },  "receipt_id": "c4a1e9d2-7b3f-4e8a-a6c5-1d2e3f4a5b6c"}