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

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

Request

cURL
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"}'
Python
result = client.call("expensify", "create_report", {"workspace":"Acme Studio","title":"title"})
Node.js
const result = await cotlet.call('expensify', 'create_report', {"workspace":"Acme Studio","title":"title"});
CLI
cotlet call expensify create_report --data '{"workspace":"Acme Studio","title":"title"}'

Example response

JSON

{
  "report_id": "R10042",
  "title": "Week of 12 Oct",
  "workspace": "Acme Studio",
  "status": "Draft",
  "total": 0,
  "currency": "USD"
}

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.