Skip to main content
POST
Export posts as CSV

Authorizations

Authorization
string
header
required

OAuth 2.1 authorization code + PKCE (S256). Tokens are tenant-bound (company_id) and scoped. Discover endpoints via /.well-known/oauth-authorization-server.

Body

application/json

Optional filters / explicit ids for the CSV export.

filters
object
selectedIds
string[]

Response

A CSV attachment of the matching posts, served as Content-Disposition: attachment; filename="posts.csv". A header row followed by one row per post, columns in this order: Creator, Program, Platform, Title, Views, Likes, Comments, Bookmarks, Shares, Uploaded At, URL. Text columns are double-quoted with embedded quotes doubled; numeric columns are unquoted and default to 0; Uploaded At is an ISO 8601 timestamp, or empty when the post has none. Rows are newest upload first. There is no row limit and no pagination. A request with no filters and no selectedIds exports every post in the company, and the surface-wide 120-second function timeout is the only ceiling - a large enough tenant fails on time rather than returning a partial file. Narrow the request unless you genuinely want everything.

The response is of type string.