Get the cost breakdown of a workspace

View as MarkdownOpen in Claude
Returns the spend for a workspace over a reporting period. The response includes an aggregated `current_study_cost` and a paginated list of per-study cost rows. Results can be filtered and sorted via query parameters; pass `limit` and `offset` to page through the study rows. ### Enabling the feature This endpoint is only available to select workspaces and will need enabling before it can be used.

Authentication

AuthorizationToken
The Prolific API uses API token to authenticate requests. You can create an API token directly from your settings. Your API token does not have an expiry date and carries full permission, so be sure to keep them secure. If your token is leaked, delete it and create a new one directly in the app. In your requests add `Authorization` header with the value `Token <your token>`.

Path parameters

workspace_idstringRequired
Workspace id

Query parameters

reporting_period_startdatetimeRequired

Start of the reporting period (ISO 8601). Payments that settled at or after this timestamp are included.

reporting_period_enddatetimeRequired

End of the reporting period (ISO 8601). Payments that settled at or before this timestamp are included. Must be on or after reporting_period_start.

project_namelist of stringsOptional

Filter studies whose project name matches (case-insensitive substring). Pass a comma-separated list to match any of several names.

statuslist of enumsOptional

Filter studies by status. Pass a comma-separated list to match any of several statuses.

Allowed values:
published_by_emaillist of stringsOptional

Filter studies by the email of the researcher who published them. Pass a comma-separated list to match any of several emails.

orderingenumOptional
Sort order for the study rows.
limitintegerOptional0-100Defaults to 0

Maximum number of study rows to return (max 100). 0 returns all matching rows.

offsetintegerOptional>=0Defaults to 0
Number of study rows to skip before returning results.

Response

Success
current_study_costobject
Breakdown of a cost into its participant, fee and tax components.
resultslist of objects
metaobject

Errors

4XX
Client Request Error