{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/api-evangelist/tinybird/main/json-schema/tinybird-token-schema.json", "title": "Tinybird Token", "description": "Schema for a Tinybird authentication Token with scoped permissions", "type": "object", "properties": { "id": { "type": "string", "description": "Unique identifier for the token" }, "name": { "type": "string", "description": "Human-readable name for the token" }, "token": { "type": "string", "description": "The actual token value used for API authentication" }, "scopes": { "type": "array", "description": "List of permission scopes granted to this token", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Scope type (e.g., DATASOURCES:READ, PIPE:CREATE, ADMIN)" }, "resource": { "type": "string", "description": "Specific resource the scope applies to" }, "filter": { "type": "string", "description": "Row-level filter condition for data access control" } } } }, "created_at": { "type": "string", "format": "date-time" } }, "required": ["id", "name", "token"] }