{
  "info": {
    "name": "Stackby — mcp.ai",
    "description": "REST API for the Stackby MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/stackby",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "stackby_create_rows",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/rows",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "rows"
          ]
        },
        "description": "Create 1 to 10 rows in a Stackby table in one request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"records\": \"\",\n  \"stack_id\": \"\",\n  \"table_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stackby_delete_rows",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/rows",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "rows"
          ]
        },
        "description": "Delete 1 to 10 identified rows from a Stackby table.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"row_ids\": \"\",\n  \"stack_id\": \"\",\n  \"table_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stackby_list_columns",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/columns",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "columns"
          ]
        },
        "description": "List columns and their types for a Stackby table so row field names can be chosen correctly.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"stack_id\": \"\",\n  \"table_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stackby_list_rows",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/rows",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "rows"
          ]
        },
        "description": "List one page of rows from a Stackby table, or retrieve specific rows by ID, with optional filtering, view selection, and single-field sorting.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filter\": \"\",\n  \"offset\": 0,\n  \"row_ids\": \"\",\n  \"view_id\": \"\",\n  \"stack_id\": \"\",\n  \"table_id\": \"\",\n  \"page_size\": 0,\n  \"sort_field\": \"\",\n  \"sort_direction\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stackby_list_stacks",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/stacks",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "stacks"
          ]
        },
        "description": "List accessible Stackby stacks in a known workspace and return IDs needed for table discovery.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"workspace_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stackby_list_tables",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/tables",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "tables"
          ]
        },
        "description": "List tables in a Stackby stack and return their IDs and names.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"stack_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stackby_list_views",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/views",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "views"
          ]
        },
        "description": "Return view IDs and names for a Stackby table for use in view-scoped row queries.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"stack_id\": \"\",\n  \"table_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stackby_list_workspaces",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/workspaces",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "workspaces"
          ]
        },
        "description": "List accessible Stackby workspaces and return the workspace IDs needed to discover stacks.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stackby_update_rows",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/rows",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "rows"
          ]
        },
        "description": "Partially update 1 to 10 existing Stackby rows in one request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"records\": \"\",\n  \"stack_id\": \"\",\n  \"table_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}