Get workspace

Categories, tags and approval setup of one workspace.

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

read

Returns the workspace categories and tags, whether an approval workflow is on, and your role. Read it before creating expenses so the category and tag values match what the workspace allows. Categories and tags you have no right to see come back empty.

Parameters

Parameters: get_workspace
NameTypeDescription
workspace string required string Workspace name or ID from list_workspaces, e.g. 'Acme Studio'.

Request

cURL
curl "https://cotlet.dev/api/v1/expensify/workspace?workspace=Acme+Studio" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("expensify", "get_workspace", {"workspace":"Acme Studio"})
Node.js
const result = await cotlet.call('expensify', 'get_workspace', {"workspace":"Acme Studio"});
CLI
cotlet call expensify get_workspace --data '{"workspace":"Acme Studio"}'

Example response

JSON

{
  "workspace_id": "W3A91C",
  "name": "Acme Studio",
  "currency": "USD",
  "role": "admin",
  "approval_workflow": true,
  "categories": [
    "Meals",
    "Travel",
    "Software",
    "Office supplies"
  ],
  "tags": [
    "Northwind",
    "Internal"
  ]
}

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.