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
| Name | Type | Description |
|---|---|---|
| workspace string required | string | Workspace name or ID from list_workspaces, e.g. 'Acme Studio'. |
Request
curl "https://cotlet.dev/api/v1/expensify/workspace?workspace=Acme+Studio" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("expensify", "get_workspace", {"workspace":"Acme Studio"}) const result = await cotlet.call('expensify', 'get_workspace', {"workspace":"Acme Studio"}); cotlet call expensify get_workspace --data '{"workspace":"Acme Studio"}' Example response
{
"workspace_id": "W3A91C",
"name": "Acme Studio",
"currency": "USD",
"role": "admin",
"approval_workflow": true,
"categories": [
"Meals",
"Travel",
"Software",
"Office supplies"
],
"tags": [
"Northwind",
"Internal"
]
}