Create report
Creates an empty draft report in a workspace.
POST https://cotlet.dev/api/v1/expensify/reports
write
Creates a Draft report on the workspace you name and returns its ID; nobody is notified until you submit it. Add expenses with add_expense_to_report and send it with submit_report. The draft stays editable and can be deleted in Expensify, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| workspace string required | string | Workspace name or ID from list_workspaces, e.g. 'Acme Studio'. |
| title string required | string | Report title. |
Request
curl -X POST https://cotlet.dev/api/v1/expensify/reports \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"workspace":"Acme Studio","title":"title"}' result = client.call("expensify", "create_report", {"workspace":"Acme Studio","title":"title"}) const result = await cotlet.call('expensify', 'create_report', {"workspace":"Acme Studio","title":"title"}); cotlet call expensify create_report --data '{"workspace":"Acme Studio","title":"title"}' Example response
{
"report_id": "R10042",
"title": "Week of 12 Oct",
"workspace": "Acme Studio",
"status": "Draft",
"total": 0,
"currency": "USD"
}