action stream_io_api_list_permissions { label: "List permissions" description: "Lists all available permissions" provider: stream_io_api method: GET path: "/permissions" encoding: json output: { type: "object" required: ["duration", "permissions"] properties: { duration: { type: "string" description: "Duration of the request in human-readable format" } permissions: { type: "array" items: { type: "object" required: ["id", "name", "description", "action", "owner", "same_team", "custom", "level", "tags"] properties: { action: { type: "string" description: "Action name this permission is for (e.g. SendMessage)" } condition: { type: "object" description: "MongoDB style condition which decides whether or not the permission is granted" } custom: { type: "boolean" description: "Whether this is a custom permission or built-in" } description: { type: "string" description: "Description of the permission" } id: { type: "string" description: "Unique permission ID" } level: { type: "string" description: "Level at which permission could be applied (app or channel)" enum: ["app", "channel"] } name: { type: "string" description: "Name of the permission" } owner: { type: "boolean" description: "Whether this permission applies to resource owner or not" } same_team: { type: "boolean" description: "Whether this permission applies to teammates (multi-tenancy mode only)" } tags: { type: "array" description: "List of tags of the permission" items: { type: "string" } } } } } } } }