{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/tray-ai/refs/heads/main/json-schema/user.json", "title": "Tray.ai User", "description": "A user in the Tray.ai platform, either an external embedded user or an organization member.", "type": "object", "properties": { "id": { "type": "string", "description": "Tray internal user identifier" }, "name": { "type": "string", "description": "Display name of the user" }, "externalUserId": { "type": "string", "description": "External user identifier set during creation (embedded users only)" }, "email": { "type": "string", "format": "email", "description": "Email address of the user" }, "isTestUser": { "type": "boolean", "description": "Whether the user is marked as a test user (excluded from billing)" }, "role": { "type": "string", "description": "Role of the user in the organization" }, "status": { "type": "string", "description": "Account status (active, invited, etc.)" } }, "required": ["id"] }