Step 1
Team summaryOne row for the whole team
ConveYour Reports API · Hawx
Show a manager how training is going for their team, who hasn't finished, and what each person has completed, all from your own backend. Every step below is one call to the same endpoint, GET https://hawx.conveyour.com/api/reports/{report_id}, with different parameters.
Step 1
Team summaryOne row for the whole team
Step 2
By campaignOne row per training campaign
Step 3
By contactEveryone, or only incomplete or completed
Step 4–5
One personTheir campaigns, then every lesson
The service token can read report data for every team it's assigned to. Put it in your server's secrets, call ConveYour from a proxy endpoint, and decide the team ID on the server from the signed-in manager. Never accept a team ID from the browser as-is. Step 6 shows the pattern.
Every request goes to your own domain:
https://hawx.conveyour.com/api
Authenticate with the x-conveyour-token header.
In Settings → API → Service Accounts, create an account for this integration, then a Server-only — Full API key under API Keys. Copy the token right away: it's shown once.
Guide: Create your credentials
| Requirement | Why |
|---|---|
| Grant the "Run the Campaign Progress report" permission | Service accounts are not admins and start with minimal access. Without this permission (run_campaign_progress_reports, under the Reports section) the report is refused. How permissions work |
| Assign the service account to every team you'll report on | The teams[] you send is honored only if the account belongs to that team. Otherwise ConveYour quietly falls back to the account's default or first team, with no error. An account on no team gets no contacts. |
| Keep the token on the server | Treat it like a password. Rotate it in Settings → API if it ever leaks. |
Older admin-level API keys can also run these reports, but they see every team and every report. A dedicated service account limited to the teams and permission above is the safer choice.
One row for every contact in the team who is assigned training: average completion, how many are missing completions, and how many finished everything. These are the tiles at the top of your dashboard.
| Parameter | Value | What it does |
|---|---|---|
data | 1 | Run the query and return rows. Without it you get only the report's configuration. |
teams[] | | Scopes contacts to this team. Keep the brackets. |
group_by | all | One summary row for the whole team. |
include_unassigned | false | Set true to also count team contacts with no training campaign (they show up as not started). |
campaign_ids[] | <CAMPAIGN_ID> | Optional. Repeat to limit to specific campaigns. |
| Name | Avg % Completion | Assigned Contacts | Missing Completions | Completed All | Not Started Yet |
|---|---|---|---|---|---|
| All Campaigns | 40% | 2,799 | 2,322 | 477 | 0 |
Numbers can arrive as strings ("0.40", "2322"), so parse them. Percent fields are 0–1: multiply by 100 to display.
The same counts split by training campaign. This is the default, so you can leave group_by off.
| Field | Type | Meaning |
|---|---|---|
name / internal_name | string | Campaign name and internal name |
avg_completion | 0–1 | Average share of released lessons completed |
assigned_contacts | int | Team contacts in this campaign |
missing_completions | int | Have released lessons still unfinished |
completed_all | int | Finished every released lesson |
not_started_yet | int | Assigned, but no lessons released yet |
estimated_overall_grade | 0–1 | Points earned over points possible |
estimated_overall_progress | 0–1 | Lesson items completed over items total |
lessons | int | Lessons in the campaign |
learners_with_progress | int | Shown as Contacts With Progress |
campaign_id | id | Pass back as campaign_ids[] to filter |
The roster. When a manager clicks "Missing Completions" in step 1, call this with status=incomplete. When they click "Completed All", use status=completed. Leave status off for everyone.
| Parameter | Value | What it does |
|---|---|---|
group_by | contact | One row per contact. |
status | incomplete | completed | Optional. Only contacts with this status. |
campaign_ids[] | <CAMPAIGN_ID> | Optional. Only completion within these campaigns. |
| Name | Completion % | Status | Campaigns Assigned | Campaigns Completed | Lessons Released | Lessons Completed |
|---|---|---|---|---|---|---|
| Jordan Ellis | 0% | incomplete | 1 | 0 | 3 | 0 |
| Priya Natarajan | 33% | incomplete | 2 | 0 | 6 | 2 |
| Marcus Webb | 0% | incomplete | 1 | 0 | 17 | 0 |
Keep con_id for each row: it's the key for steps 4 and 5. The full team comes back in one response (no paging), sorted with the least complete first. Names above are examples.
When a manager clicks a name from step 3, show that person's campaigns.
| Parameter | Value | What it does |
|---|---|---|
con_id | | Required. The contact from step 3. |
| Field | Type | Meaning |
|---|---|---|
campaign_name | string | Campaign |
lesson_completion_progress | 0–1 | Progress |
estimated_overall_grade | 0–1 | Grade |
points | number | Points earned |
joined_campaign_at / completed_campaign_at | date | When they joined and finished |
days_until_started / days_until_completed_campaign | number | Time to start and to finish |
lessons_released / lessons_completed | int | Lesson counts |
campaign_id | id | Use to filter step 5 to one campaign |
The most detailed view: each lesson, its campaign, progress, grade, and completion date.
| Parameter | Value | What it does |
|---|---|---|
con_id | | Required. |
start_date / end_date | YYYY-MM-DD | Optional. Defaults to the last 30 days. |
in_campaign | true | Only lessons from campaigns they're in right now. Default true. |
campaign_id | <CAMPAIGN_ID> | Optional. Only one campaign (from step 4). |
search | text | Optional. Search lessons. |
| Campaign | Lesson | Progress | Grade | Completed Lesson At | Lesson Tags |
|---|---|---|---|---|---|
| New Hire Onboarding | Safety Basics | 100% | 92% | 2026-11-04 | safety |
| New Hire Onboarding | Customer Greeting | 60% | — | sales |
Unlike steps 1–4, rows are under data.results. For the next page, repeat the request with query_id and cursor=<next_cursor> until has_more is false.
Your app knows who's signed in. Map that person to their ConveYour team ID on the server, then forward only the parameters you allow. This keeps the token private and stops a manager from reading another team by editing a request.
Map each manager to exactly one team ID on the server.
Send the team as teams[]=<id>. Brackets are required, and an invalid ID is ignored silently. Team scoping
Before steps 4 and 5, check the con_id came from that manager's step 3 list.
Branch on status in the body: errors can come back as HTTP 200 with "status": "failed".
Cache step 1 and 2 results for a few minutes. Each data=1 call runs a live query and can take a second or two.
Read Get a report for the full parameter reference. Call any report without data=1 to see its controls and fields without running it.
| You see | Likely cause |
|---|---|
| 403, or "status": "failed" on the report | The service account is missing the Campaign Progress permission. |
| Another team's numbers, or the same numbers for every team | The account isn't assigned to the team you sent, so ConveYour fell back to its default team. |
| Zero contacts | The account isn't assigned to any team, or the team ID is mistyped. |
| "data" has no rows | The request is missing data=1. |