Skip to navigation

Query campaigns based on specified criteria.

To discover available fields and operators for campaign queries: Call /api/query/options/Campaign to retrieve parameters, operators, and result fields.Build one or more groups of conditions using those parameters.POST the resulting RaiseDonors.Api.Models.Query.QueryRequestModel to this endpoint. For numeric fields using the Between operator, provide the lower bound in value and the upper bound in secondaryValue. When includeDetails=true, the response includes all related entities (Segments, Pages, PageStatistics) similar to the GET by ID endpoint. This may impact performance for large result sets.

Authentication

Authorizationstring

JWT Authorization header using the Bearer scheme. Example: “Authorization: Bearer {token}”

Request

The campaign query request, including RaiseDonors.Api.Models.Query.QueryRequestModel.QueryType, structured groups/conditions, selectedColumns, includeDetails, and paging options.

QueryRequestModelobjectRequired
Request body for advanced query endpoints such as donor and campaign queries.
OR
ParsedQueryResponseModelobjectRequired
Represents a parsedquery response model.

Response

OK
itemslist of objectsOptional
totalintegerOptional

Errors

400
Bad Request Error