Costs#

Read-only access to cost records across activities for reporting and analysis.

Authentication required

All endpoints require a Bearer token in the Authorization header. See the Authentication guide for setup instructions.

GET /v1/costs#

List cost records across activities, including creator details.

bash
GET /v1/costs?page_index=0&page_size=25&organization_id=org_123
Authorization: Bearer {token}

Parameters#

NameTypeRequiredDescription
pageIndexintegerRequiredZero-based page index for pagination.
pageSizeintegerRequiredNumber of items per page (1-100).
organizationIdstring (UUID)RequiredOrganization identifier.
activityIdstring (UUID)Filter by activity identifier.
creatorIdstring (UUID)Filter by creator identifier.
campaignIdstring (UUID)Filter by campaign identifier.

Response#

Returns { items, totalCount, facets } with paginated results.

Underlying SDK method: bw.costs.list(params)

GET /v1/costs/count#

Count cost records with optional activity and creator filters.

bash
GET /v1/costs/count?organization_id=org_123
Authorization: Bearer {token}

Parameters#

NameTypeRequiredDescription
organizationIdstring (UUID)RequiredOrganization identifier.
activityIdstring (UUID)Filter by activity identifier.
creatorIdstring (UUID)Filter by creator identifier.
campaignIdstring (UUID)Filter by campaign identifier.

Response#

Returns { count } with the total number of matching records.

Underlying SDK method: bw.costs.count(params)

GET /v1/costs/types#

Retrieve distinct cost type labels used across the organization.

bash
GET /v1/costs/types?page_index=0&page_size=25&organization_id=org_123
Authorization: Bearer {token}

Parameters#

NameTypeRequiredDescription
pageIndexintegerRequiredZero-based page index for pagination.
pageSizeintegerRequiredNumber of items per page (1-100).
organizationIdstring (UUID)RequiredOrganization identifier.

Response#

Returns { items, totalCount, facets } with paginated results.

Underlying SDK method: bw.costs.types.list(params)

Autocomplete

Use this endpoint to populate autocomplete suggestions when creating or editing cost records.