Create a team

posthttps://api.expiryedge.com/v1/createTeam
editor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/createTeam' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Front Desk"
}'
Antwort
{
  "message": "Team created successfully",
  "team": {
    "team_id": "tm_3Fh8qLx",
    "team_name": "Front Desk",
    "created_at": "2026-09-27T14:05:00.000Z",
    "created_by": "ops@northwinddental.com"
  }
}

Team names are unique per organization (case-insensitive). The caller becomes a member. The plan's team limit is enforced; reaching it returns 400 with limitReached: true.

Body-Parameter

application/json
  • namestringerforderlich
    min length: 1

Rückgabe

201
Team created.
  • messagestringerforderlich
  • teamobjecterforderlich
    A team (department) inside an organization.

Fehler

400
Name missing, name already used, or plan team limit reached.
401
Missing, expired or invalid bearer token.
403
Authenticated, but your role or organization does not allow this action.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.