ConveYour Reports API · Hawx

Build a training drill-down with the Campaign Progress report

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 summary

One row for the whole team

Step 2

By campaign

One row per training campaign

Step 3

By contact

Everyone, or only incomplete or completed

Step 4–5

One person

Their campaigns, then every lesson

Run these calls from your backend, never the browser

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.

Before you start

API host

Every request goes to your own domain:

https://hawx.conveyour.com/api

Authenticate with the x-conveyour-token header.

A new service account and key

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

RequirementWhy
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.

Fill these in to personalize every link and request below


1

Team summary: how is training going overall?

group_by=all

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.

ParameterValueWhat it does
data1Run the query and return rows. Without it you get only the report's configuration.
teams[] Scopes contacts to this team. Keep the brackets.
group_byallOne summary row for the whole team.
include_unassignedfalseSet 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.

What comes back

NameAvg % CompletionAssigned ContactsMissing CompletionsCompleted AllNot Started Yet
All Campaigns40%2,7992,3224770

Numbers can arrive as strings ("0.40", "2322"), so parse them. Percent fields are 0–1: multiply by 100 to display.

2

By campaign: which trainings are lagging?

group_by=campaign

The same counts split by training campaign. This is the default, so you can leave group_by off.

What comes back: one row per campaign

FieldTypeMeaning
name / internal_namestringCampaign name and internal name
avg_completion0–1Average share of released lessons completed
assigned_contactsintTeam contacts in this campaign
missing_completionsintHave released lessons still unfinished
completed_allintFinished every released lesson
not_started_yetintAssigned, but no lessons released yet
estimated_overall_grade0–1Points earned over points possible
estimated_overall_progress0–1Lesson items completed over items total
lessonsintLessons in the campaign
learners_with_progressintShown as Contacts With Progress
campaign_ididPass back as campaign_ids[] to filter
3

By contact: who hasn't finished?

group_by=contact

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.

ParameterValueWhat it does
group_bycontactOne row per contact.
statusincomplete | completedOptional. Only contacts with this status.
campaign_ids[]<CAMPAIGN_ID>Optional. Only completion within these campaigns.

What comes back

NameCompletion %StatusCampaigns AssignedCampaigns CompletedLessons ReleasedLessons Completed
Jordan Ellis0%incomplete1030
Priya Natarajan33%incomplete2062
Marcus Webb0%incomplete10170

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.

4

One person: progress in each campaign

contactsCampaignProgress

When a manager clicks a name from step 3, show that person's campaigns.

ParameterValueWhat it does
con_idRequired. The contact from step 3.

What comes back: one row per campaign

FieldTypeMeaning
campaign_namestringCampaign
lesson_completion_progress0–1Progress
estimated_overall_grade0–1Grade
pointsnumberPoints earned
joined_campaign_at / completed_campaign_atdateWhen they joined and finished
days_until_started / days_until_completed_campaignnumberTime to start and to finish
lessons_released / lessons_completedintLesson counts
campaign_ididUse to filter step 5 to one campaign
5

One person: every lesson (transcript)

contactsLessonTranscripts

The most detailed view: each lesson, its campaign, progress, grade, and completion date.

ParameterValueWhat it does
con_idRequired.
start_date / end_dateYYYY-MM-DDOptional. Defaults to the last 30 days.
in_campaigntrueOnly lessons from campaigns they're in right now. Default true.
campaign_id<CAMPAIGN_ID>Optional. Only one campaign (from step 4).
searchtextOptional. Search lessons.

What comes back: paged, 100 rows at a time

CampaignLessonProgressGradeCompleted Lesson AtLesson Tags
New Hire OnboardingSafety Basics100%92%2026-11-04safety
New Hire OnboardingCustomer Greeting60%—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.


6

Wire it through your backend

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.

Checklist

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.

If something looks wrong

You seeLikely cause
403, or "status": "failed" on the reportThe service account is missing the Campaign Progress permission.
Another team's numbers, or the same numbers for every teamThe account isn't assigned to the team you sent, so ConveYour fell back to its default team.
Zero contactsThe account isn't assigned to any team, or the team ID is mistyped.
"data" has no rowsThe request is missing data=1.