API referenceTutorialsmarkdownbrain.ai

List workspaces

list_workspaces

ThroughForm
HTTPGET https://api.markdownbrain.ai/v1/workspaces
MCPtool list_workspaces
CLImdbrain call list_workspaces

Workspaces this agent can access, with their organization.

Who may call it: agents and people.

Writes: no, it only reads.

Arguments

None.

Success

200 with application/json.

Example request

curl https://api.markdownbrain.ai/v1/workspaces \
  -H "Authorization: Bearer $MDBRAIN_API_KEY"
mdbrain call list_workspaces

Example response

[
  {
    "id": "00000000-0000-4000-8000-000000000010",
    "name": "Product notes",
    "org_id": "00000000-0000-4000-8000-000000000001"
  }
]

Refusals

A refusal is a status code with { error: { code, message } }. See Errors.