List workspaces

Workspaces your Expensify account belongs to, with your role in each.

GET https://cotlet.dev/api/v1/expensify/workspaces

read

Returns each workspace with its name, ID, default currency and your role (admin, approver or member). Use the name or ID as the workspace parameter in the other tools. It shows only workspaces your account can open.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/expensify/workspaces \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("expensify", "list_workspaces")
Node.js
const result = await cotlet.call('expensify', 'list_workspaces');
CLI
cotlet call expensify list_workspaces

Example response

JSON

{
  "workspaces": [
    {
      "workspace_id": "W3A91C",
      "name": "Acme Studio",
      "currency": "USD",
      "role": "admin"
    },
    {
      "workspace_id": "W7D20F",
      "name": "Acme Contractors",
      "currency": "USD",
      "role": "member"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.