List Blocks

List built-in and workspace-deployed blocks visible to the caller. Integration allowlists and preview visibility restrict results. Use capability=trigger for workflow starters and Get Block or Get Tool to resolve operation and tool IDs.

OAuth scope: api:read.

GET/api/v2/blocks
X-API-Key<token>

Sua API key do Studio, pessoal ou com escopo de workspace. Gere uma em Settings e depois API Keys. As operações que rejeitam API keys de workspace dizem isso na própria descrição.

Em: header

Parâmetros de query

workspaceId*string

Workspace whose integration allowlist, revealed preview blocks, and deployed custom blocks decide what this catalog contains.

Tamanho1 <= length <= 128
search?string

Case-insensitive substring match against the block id, name, and description.

Tamanho1 <= length <= 200
category?string

Restrict to one toolbar category.

Valor em"blocks" | "tools" | "triggers"
capability?string

Restrict to blocks that can start a workflow — the triggers category, blocks declaring triggerAllowed, and blocks with trigger-mode fields.

Valor em"trigger"
source?string

Restrict to built-in blocks or this workspace's deployed custom blocks.

Valor em"builtin" | "custom"
sortBy?string

Campo usado para ordenar o resultado. A ordenação por name diferencia maiúsculas de minúsculas e segue a collation do armazenamento, então não conte com uma ordem que ignore maiúsculas e minúsculas.

Padrão"id"
Valor em"id" | "name" | "category"
sortOrder?string

Direção da ordenação.

Padrão"asc"
Valor em"asc" | "desc"
limit?integer

Maximum blocks to return per page. Must be a whole number from 1 to 100. Defaults to 50.

Padrão50
Intervalo1 <= value <= 100
cursor?string

Cursor opaco da página anterior. Devolva-o com a mesma ordenação e os mesmos filtros; apenas limit pode mudar. Altere qualquer outra coisa e a paginação precisa recomeçar sem cursor.

Tamanho1 <= length

Corpo da resposta

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://agent-studio.seeyu.ai/api/v2/blocks?workspaceId=string" \  -H "X-API-Key: YOUR_API_KEY"
{
  "data": [
    {
      "id": "slack",
      "name": "Slack",
      "description": "Send messages and read channels in Slack.",
      "category": "tools",
      "integrationType": "communication",
      "source": "builtin",
      "authMode": "oauth",
      "triggerAllowed": true,
      "triggerCapable": true,
      "triggerIds": [
        "slack_webhook"
      ],
      "toolIds": [
        "slack_message",
        "slack_canvas_read"
      ],
      "operationIds": [
        "send",
        "read"
      ],
      "preview": false,
      "docsLink": "https://docs.seeyu.ai/tools/slack",
      "tags": [
        "messaging"
      ]
    }
  ],
  "nextCursor": null
}
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid request"
  }
}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Authentication required"
  }
}
{
  "error": {
    "code": "FORBIDDEN",
    "message": "Insufficient workspace permissions",
    "details": {
      "code": "INSUFFICIENT_WORKSPACE_ROLE"
    }
  }
}
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Not found"
  }
}
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "API rate limit exceeded",
    "details": {
      "retryAfter": "2026-01-01T00:00:30.000Z"
    }
  }
}
{
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Internal server error"
  }
}
{
  "error": {
    "code": "SERVICE_UNAVAILABLE",
    "message": "Service temporarily unavailable"
  }
}