Create a team

posthttps://api.expiryedge.com/v1/createTeam
editor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/createTeam' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Front Desk"
}'
Response
{
  "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 parameters

application/json
  • namestringrequired
    min length: 1

Returns

201
Team created.
  • messagestringrequired
  • teamobjectrequired
    A team (department) inside an organization.

Errors

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.