{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/communicate-so/json-schema/communicate-so-account-credential-create-schema.json",
  "title": "AccountCredentialCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/communicate-so-account-credentials-api-openapi.yml#/components/schemas/AccountCredentialCreate",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 5,
      "maxLength": 300
    },
    "password": {
      "writeOnly": true,
      "format": "password",
      "type": "string",
      "minLength": 1,
      "maxLength": 1024
    },
    "scopes": {
      "minItems": 1,
      "maxItems": 33,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "workspaces:read",
          "workspaces:write",
          "workspaces:manage",
          "members:read",
          "members:write",
          "teams:read",
          "teams:write",
          "invites:accept",
          "agents:read",
          "agents:write",
          "sources:read",
          "sources:write",
          "learnings:read",
          "learnings:write",
          "grill:read",
          "grill:write",
          "notifications:read",
          "notifications:write",
          "inbox:read",
          "inbox:write",
          "credentials:read",
          "credentials:write",
          "analytics:read",
          "billing:read",
          "analytics:write",
          "billing:write",
          "agents:delete",
          "agents:share",
          "agents:transfer",
          "agents:voice",
          "api-keys:manage",
          "compliance:manage",
          "widget-identity:manage"
        ]
      }
    },
    "audience": {
      "type": "string",
      "enum": [
        "https://app.communicate.so/api/v1",
        "https://app.communicate.so/mcp"
      ]
    }
  },
  "required": [
    "name",
    "password",
    "scopes"
  ],
  "additionalProperties": false
}