Skip to content

CSV exports

Add format=csv to /v1/insights/people or /v1/insights/work-statuses to get the whole filtered result as one CSV file, up to 10,000 rows.

Export Endpoint Columns, in order
Bookings /v1/insights/work-statuses Date, Name, Email, Type, Office, Neighbourhood, NeighbourhoodCategory, Extras, Guests, Notes, Checked In
Recent activity /v1/insights/people Name, Email, User ID, Number of Days this Week, Last Four Weeks, Last Four Weeks vs Average (%)
Terminal window
curl -OJ "https://api.officelycrew.com/v1/insights/work-statuses?from=2026-09-01&to=2026-09-30&format=csv" \
-H "Authorization: Bearer $OFFICELY_API_TOKEN"

-OJ saves the file under the name in Content-Disposition: officely-bookings-<from>-<to>.csv or officely-recent-activity-<referenceDate>.csv.

A Bookings export, from the synthetic example in openapi.json:

Date,Name,Email,Type,Office,Neighbourhood,NeighbourhoodCategory,Extras,Guests,Notes,Checked In
2026-10-14,Alex Morgan,alex@example.com,Working remotely,,,,,,,
2026-10-15,Alex Morgan,alex@example.com,Office,London,Product,Teams,Monitor,guest@example.com,Customer workshop,Yes
  • Up to 10,000 rows. A bigger export gets 422 EXPORT_TOO_LARGE before any of the file is sent; nothing is cut off silently. Narrow the dates or filters, or use JSON with pagination.
  • Leave out cursor and limit.
  • One CSV a minute per token, shared by both exports.
  • Errors are still JSON.
  • No results gives a file with only the header row.
  • UTF-8 text/csv, RFC 4180 quoting, CRLF line endings.
  • Text that a spreadsheet could run as a formula starts with an apostrophe. The JSON value is unchanged.
  • Extras and guest emails are joined with commas inside one quoted cell.
  • A neighbourhood without a category shows as Uncategorized.
  • Checked In is there only when a selected office uses check-in: Yes, No, or blank.

Like the dashboard export, Recent activity has only active, onboarded users, so includeNonOfficelyUsers and includeArchived must be false. Its User ID column is user.platformUserId: use user.id from the JSON in API paths and filters.

A Recent activity export, from the synthetic example in openapi.json:

Name,Email,User ID,Number of Days this Week,Last Four Weeks,Last Four Weeks vs Average (%)
Alex Morgan,alex@example.com,usr_alex,2,8,0
Did this answer your question?

Still need help? Chat to our support team.

Contact support