Skip to content

List engagements

Request

🔐 Required role: API_ADMIN

📖 Data dictionary: Engagement

Project engagement tracking with comprehensive workflow management

Uses standard limit/offset pagination via pageSize and page — see Pagination. Use total.aggregate.count to detect the end.

This endpoint delivers complete project engagement management including:

  • Client engagement tracking with date-based filtering
  • Multi-level staff assignment management (partner and manager roles)
  • Project status workflow tracking and reporting
  • Template-driven engagement naming and standardization
  • Date range analysis for project timeline management

Project Management Capabilities:

  • Start and end date tracking for project lifecycles
  • Status-based workflow management (DRAFT, SENT, EXECUTED, etc.)
  • Staff assignment tracking at partner and manager levels
  • Client relationship management for engagement context

Workflow Features:

  • Template-based engagement creation for consistency
  • Status progression tracking for project milestones
  • Staff allocation and responsibility assignment
  • Client-specific engagement history and analysis

Business Intelligence:

  • Engagement duration analysis and reporting
  • Staff utilization and assignment tracking
  • Client engagement patterns and history
  • Project status distribution and workflow analysis

Filtering: this operation accepts only pageSize and page, and any other body property is rejected with 400. To filter or sort, use POST /gql/v1/engagements/search.

Rows are ordered by name ascending, then createdAt descending. The response holds the rows in engagements and the total number of engagements in total.aggregate.count.

Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Bodyapplication/json
pageSizeinteger, [ 1 .. 1000 ]

Limit — number of records to return (not a page count). Hasura maps this to limit.

Default:50
Example:25
pageinteger, >= 0

Offset — number of records to skip. This is not a page index. To fetch the next N rows after the first N, send pageSize: N and page: N. An offset at or beyond total.aggregate.count returns an empty result array.

Default:0
Example:0
curl -i -X POST \
  https://api.sandbox.aiwyn.app/gql/v1/engagements \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "pageSize": 25,
    "page": 0
  }'

Responses

Successfully retrieved engagement records

Bodyapplication/json
engagementsArray of objects(Engagement)required
totalobject(AggregateCount)required

Standard count aggregation

Response
{ "engagements": [ { … } ], "total": { "aggregate": { … } } }