team

Create a new team

post/team/create

Request

  • Base URL
    https://api.scalar.com/core
  • URL
    https://api.scalar.com/core/team/create
  • Auth
    HTTP bearer

Request body

Example request

{
  "project": {
    "uid": "UakgbKJ5m9gl0JDMbcJqL",
    "createdAt": 1735689600,
    "updatedAt": 1735689600,
    "name": "Acme Documentation",
    "activeDeployment": {
      "uid": "UakgbKJ5m9gl0JDMbcJqL",
      "domain": "docs.example.com",
      "publishedAt": 1735689600
    },
    "lastPublished": 1735689600,
    "lastPublishedUid": "PakgbKJ5m9gl0JDMbcJqL",
    "loginPortalUid": "LakgbKJ5m9gl0JDMbcJqL",
    "userInfoHookUrl": "https://example.com/hooks/user-info",
    "userInfoHookSecretUid": "UakgbKJ5m9gl0JDMbcJqL",
    "activeThemeId": "TakgbKJ5m9gl0JDMbcJqL",
    "typesenseId": 42,
    "agentEnabled": true,
    "analyticsEnabled": true,
    "chatInsightsEnabled": true,
    "accessGroups": [
      "UakgbKJ5m9gl0JDMbcJqL"
    ],
    "website": {
      "lastDeployed": 1735689600
    }
  },
  "teamInfo": {
    "slug": "acme-api"
  },
  "invites": [
    {
      "email": "alex@example.com"
    }
  ]
}

Response

Default Response

teamUidstring required

Changes