Introduction
Mpuza AI Portal gives your job platform its models behind one address: search, ranking, shortlisting, recommendation, job drafts and qualification checks.
How it works
- Sign up in the developer portal and make a key. You get an API key and a secret key.
- Feed your jobs, your candidates and what people do, or let the portal read them from your own system.
- Call a model. Search answers at once. Shortlisting runs in the background and you read the list later.
- Follow your usage and your invoices, by the API or in the portal.
The models
These are the models switched on for organizations. Prices and free amounts are set in the portal, under Models, and differ by model: search is charged by the word, ranking and shortlisting by the number of applicants, and a model with no price yet answers 402 on a live key.
| Model | Call | What it does |
|---|---|---|
| Search | POST /v1/search | Finds jobs for what a person typed |
| Ranking | POST /v1/rank | Ranks the applicants you send |
| Shortlisting | POST /v1/shortlist | Ranks every applicant of a job, in the background |
| Recommender | POST /v1/recommend | Best jobs for a person, or their score for jobs you name |
| Job draft | POST /v1/job-draft | Writes a job description |
| Qualification match | POST /v1/qualify | Checks education against a job |
Quickstart
Make a sandbox key, send one job and one person, and run your first search. About five minutes.
1. Make a key
Sign up in the developer portal, open Keys and make a sandbox key. The API key starts with mpz_test_. Copy both keys now and keep them on your server.
2. Check the key
Who is this key
API key and secret keyThe organization the API key belongs to and the key itself (its name, its mode and only the start of it). No secret is returned.
curl -X GET "https://ai.mpuza.com/api-portal/v1/whoami" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"key": {
"mode": "sandbox",
"name": "Website"
},
"organization": {
"name": "Acme Ltd",
"status": "active"
}
}3. Send a job
Add or update one job
API key and secret keyKeeps only the fields switched on for the models of your key. A required field that is missing or of the wrong type refuses the job.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | No | Your id of the job. Without it a new one is made. |
| title | string | Yes | The title of the job. |
| ... | fields | No | The other fields of a job. The guide in the developer portal lists each one for each model. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/job" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "J-1001",
"slug": "data-analyst",
"tags": [
"data"
],
"title": "Data analyst",
"status": "active",
"benefits": [
"Medical insurance"
],
"job_type": "full-time",
"logo_url": "https://acme.example/logo.png",
"locations": [
"Kigali"
],
"company_id": "C-1",
"created_at": "2026-10-01",
"department": "Analytics",
"expires_at": "2026-12-01",
"salary_max": 1200,
"salary_min": 800,
"view_count": 0,
"description": "Turns data into decisions for the finance team.",
"company_name": "Acme Ltd",
"company_size": "11-50",
"published_at": "2026-10-01",
"requirements": [
"Two years of experience"
],
"salary_period": "month",
"experience_max": 5,
"experience_min": 2,
"qualifications": "Bachelor degree in statistics or a related field",
"company_website": "https://acme.example",
"salary_currency": "USD",
"skills_required": [
"SQL",
"Excel"
],
"company_industry": "Finance",
"experience_level": "mid",
"responsibilities": [
"Build reports",
"Clean data"
],
"skills_preferred": [
"Python"
],
"work_arrangement": "hybrid",
"application_count": 0,
"education_required": {
"field": "Statistics",
"degree": "Bachelor"
},
"verification_badge": "verified",
"screening_questions": [],
"language_requirements": [
"English"
],
"ai_match_required_score": 60,
"preferred_qualifications": "A master degree"
}'{
"action": "added",
"job_id": "J-1001",
"success": true,
"in_model": true,
"dropped_fields": []
}4. Search
Search jobs
API key and secret keyFinds jobs for what a person typed. The query is used exactly as typed.
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | What the person typed, exactly as typed. |
| limit | integer | No | How many jobs in the page. 1 to 100, default 50. |
| offset | integer | No | How many jobs to skip, the start of the page. Default 0. |
- Counted: Words in the query. A short query and a long sentence are the same model; a query of 6 words or more is answered through its own lane.
curl -X POST "https://ai.mpuza.com/api-portal/v1/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "data analyst jobs in Kigali paying over 800 USD"
}'{
"total": 1,
"offset": 0,
"results": [
{
"id": "J-1001",
"title": "Data analyst",
"company": "Acme Ltd",
"job_type": "full-time",
"location": [
"Kigali"
],
"match_score": 0.91,
"match_priority": "strong"
}
],
"success": true,
"has_more": true,
"search_term": "data analyst jobs in Kigali paying over 800 USD",
"total_matches": 42,
"processing_time_ms": 41.2
}Shortened example. has_more is true while more jobs follow: ask for the next page with offset.
Authentication
Every call carries two keys: your API key and the secret key that goes with it.
The two keys
| Key | Header | Looks like |
|---|---|---|
| API key | Authorization: Bearer YOUR_API_KEY | mpz_test_... or mpz_live_... |
| Secret key | X-Secret-Key: YOUR_SECRET_KEY | the one secret key of your organization |
The portal accepts a call only with both. The secret key is kept encrypted and is never shown again once you have set it.
Example
curl "https://ai.mpuza.com/api-portal/v1/whoami" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"Where to get them
- In the developer portal, under Keys. The key is shown once, and an owner can look at it again later.
- A developer can look at sandbox keys. Only an owner can look at live keys.
Sandbox and live
A sandbox key (mpz_test_) is always free. A live key may only use models that have a price. Each key can be limited to some models, and can have its own limit of calls that run and wait at the same time.
Errors and limits
What can go wrong, and what to do about it.
The shape of an error
An error has an HTTP status and a JSON body with a code and a message you can write to your logs.
{
"error": {
"code": "invalid_request",
"message": "query must be a non-empty string"
}
}Statuses
| Status | Code | What to do |
|---|---|---|
| 400 | invalid_request | A field is missing or of the wrong type. Read the message. Do not retry as it is. |
| 401 | invalid_api_key | The key is missing, unknown or disabled, or the secret key does not go with it. |
| 402 | no_price | No price is set for this model or this size yet. |
| 403 | organization_suspended / model_not_allowed | Your organization is suspended, or this key may not use this model. |
| 404 | not_found | The thing does not exist. For shortlisting and recommendation: you have not fed the data yet. |
| 409 | event_id_in_use / training_running | The id was used for another call, or a training is already running. |
| 422 | invalid_record / unsafe_address / invalid_input | The body is well formed but not acceptable. error.details.problems lists each problem. |
| 429 | rate_limited / queue_full | Too many calls. Wait for the time in the Retry-After header and send again. |
| 502 | model_failed | The model failed. It is recorded and not charged. Retry with backoff. |
| 503 | queue_unavailable | Try again shortly. |
| 504 | queue_timeout | The call waited too long. It was not run and not counted. |
Safe retries
Send an Idempotency-Key header (up to 64 characters) with a call. If you have to send it again, use the same value and the call is counted once.
Headers
The headers you can send, and the ones that come back with every model call.
Request headers
| Header | Required | What it is for |
|---|---|---|
| Authorization | Yes | Bearer YOUR_API_KEY |
| X-Secret-Key | Yes | The secret key that goes with the API key |
| Idempotency-Key | No | One id for one call. A retry with the same id is counted once. Up to 64 characters. |
| X-Mpuza-Notify | No | Who is waiting for this call, any id of yours. 1 to 64 letters, digits or . _ : - . It comes back unchanged in the callbacks, so you can tell your user where the call is in the queue. |
| X-Mpuza-Reference | No | What the call is for. Same rules. It also comes back in the callbacks. |
Response headers of a model call
| Header | Meaning |
|---|---|
| X-Mpuza-Event-Id | The id of this call, to quote when you ask us about it |
| X-Mpuza-Quantity | What was counted: words, applicants, applications or calls |
| X-Mpuza-Free-Reason | sandbox, trial or none |
| X-Mpuza-Trial-Left | What is left of your free amount for this model |
| X-Mpuza-Trial-Unit | The unit of that free amount |
| X-Mpuza-Queue-Wait-Ms | How long the call waited in your queue, in milliseconds |
Search
Search for jobs, a short query or a long sentence
- 1Feed your jobsPOST /v1/upsert/job
- 2Or send many at onceoptionalPOST /v1/upsert/bulk
- 3Or let the portal fetch them from your platformoptionalPUT /v1/connectionGET /v1/connectionPOST /v1/connection/testPOST /v1/connection/enable
- 4See what the portal fetches: all, one job or one candidateoptionalGET /v1/connection/jobsGET /v1/connection/candidatesGET /v1/connection/jobs/{jobId}/applicantsGET /v1/connection/candidates/{userId}
- 5Train on your recordsoptionalPOST /v1/trainingGET /v1/training
- 6Call searchPOST /v1/search
1. Feed your jobs
The model works on your own jobs. Send each job. If your jobs live in your own system, fetch them from there instead (see the step below): a training uses either what you send here or what the portal fetches from your platform, never both.
Add or update one job
API key and secret keyKeeps only the fields switched on for the models of your key. A required field that is missing or of the wrong type refuses the job.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | No | Your id of the job. Without it a new one is made. |
| title | string | Yes | The title of the job. |
| ... | fields | No | The other fields of a job. The guide in the developer portal lists each one for each model. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/job" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "J-1001",
"slug": "data-analyst",
"tags": [
"data"
],
"title": "Data analyst",
"status": "active",
"benefits": [
"Medical insurance"
],
"job_type": "full-time",
"logo_url": "https://acme.example/logo.png",
"locations": [
"Kigali"
],
"company_id": "C-1",
"created_at": "2026-10-01",
"department": "Analytics",
"expires_at": "2026-12-01",
"salary_max": 1200,
"salary_min": 800,
"view_count": 0,
"description": "Turns data into decisions for the finance team.",
"company_name": "Acme Ltd",
"company_size": "11-50",
"published_at": "2026-10-01",
"requirements": [
"Two years of experience"
],
"salary_period": "month",
"experience_max": 5,
"experience_min": 2,
"qualifications": "Bachelor degree in statistics or a related field",
"company_website": "https://acme.example",
"salary_currency": "USD",
"skills_required": [
"SQL",
"Excel"
],
"company_industry": "Finance",
"experience_level": "mid",
"responsibilities": [
"Build reports",
"Clean data"
],
"skills_preferred": [
"Python"
],
"work_arrangement": "hybrid",
"application_count": 0,
"education_required": {
"field": "Statistics",
"degree": "Bachelor"
},
"verification_badge": "verified",
"screening_questions": [],
"language_requirements": [
"English"
],
"ai_match_required_score": 60,
"preferred_qualifications": "A master degree"
}'{
"action": "added",
"job_id": "J-1001",
"success": true,
"in_model": true,
"dropped_fields": []
}2. Or send many at once (optional)
Jobs, candidates and events can go in one call. One bad record does not stop the others.
Add or update lists of records
API key and secret keyJobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.
| Field | Type | Required | Description |
|---|---|---|---|
| jobs | array | No | Jobs, as in the single call. |
| candidates | array | No | Candidates, as in the single call. |
| events | array | No | Behaviour events. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/bulk" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"jobs": [
{
"id": "J-1001",
"title": "Data analyst"
}
],
"events": [
{
"job_id": "J-1001",
"user_id": "U-2001",
"event_type": "view"
}
],
"candidates": [
{
"user_id": "U-2001"
}
]
}'{
"jobs": 1,
"errors": [],
"events": 1,
"jobs_ok": 1,
"events_ok": 1,
"candidates": 1,
"candidates_ok": 1
}3. Or let the portal fetch them from your platform (optional)
If your jobs and candidates live in your own system, you do not have to send them. Set the address of your platform with PUT /v1/connection (data_base_url). The portal then reads GET {address}/jobs and GET {address}/candidates from your system. Read the address back, test it, and switch fetching on. Once it is on, a training uses what your platform serves and not what you sent through the API.
Set or change the address the portal fetches from
API key and secret keyThis is where you say where your jobs and candidates live. Send the address of your own platform in data_base_url, and the portal reads them from there. Send only what you want to change: whatever you leave out stays as it is.
| Field | Type | Required | Description |
|---|---|---|---|
| data_base_url | string | No | The address of your platform. The portal adds /jobs and /candidates to it: https://api.company.rw/mpuza makes it read https://api.company.rw/mpuza/jobs and https://api.company.rw/mpuza/candidates. |
| path_overrides | object | No | Only if your paths are not named /jobs and /candidates. For example { "jobs": "/v2/vacancies" } makes the portal read https://api.company.rw/mpuza/v2/vacancies for your jobs. |
| callback_url | string | No | Where the portal tells your system what happened (a training finished, a fetch failed). Leave it out if you do not want callbacks. |
- Your system serves two paths under that address, GET /jobs and GET /candidates. Each takes page, page_size and updated_since, and answers { "data": [ ...records ], "total", "latest", "has_more" }. updated_since lets your system give only the records changed after a given time.
- Read the address back at any time with GET /v1/connection. An address the portal cannot safely call is refused with 422 unsafe_address.
- Then test it (POST /v1/connection/test) and switch fetching on (POST /v1/connection/enable).
- While fetching is on, a training reads your jobs and candidates from this address and not the records you sent through the API. Switch fetching off to train on what you sent.
curl -X PUT "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"data_base_url": "https://api.company.rw/mpuza"
}'{
"endpoint": {
"data_base_url": "https://api.company.rw/mpuza"
}
}Read your connection
API key and secret keyShows where the portal fetches from now: your data address (data_base_url), your two paths, your callback address, and whether fetching is on. Secrets are never given back. To change the address, use PUT /v1/connection.
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"endpoint": {
"fetching": true,
"data_base_url": "https://api.company.rw/mpuza"
}
}Test the connection
API key and secret keyReads the first records of every path and says which expected fields your service does not send.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/test" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"paths": {},
"fingerprints": {}
}Switch fetching on
API key and secret keyOnly works when the test passes. From then on a training reads your jobs and candidates from your address, and the records you sent through the API are not used by it.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/enable" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "ok"
}4. See what the portal fetches: all, one job or one candidate (optional)
These calls read your system the way a training does and show you what came back: all your jobs, all your candidates, the people who applied to one job, or one candidate. Use them to check that your system sends what the model needs, or after you add or change a job or a candidate.
Fetch your jobs: one page or all
API key and secret keyReads GET {your data address}/jobs on your system, the way a training does, and gives you the jobs themselves, a page at a time or every job with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/jobs"
}Fetch your candidates: one page or all
API key and secret keyReads GET {your data address}/candidates on your system, the way a training does, and gives you the candidates themselves, a page at a time or everyone with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch the applicants of one job
API key and secret keyThe people who applied to one job, each as a full record with what they did. It asks GET {your data address}/candidates?job_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Default 1. |
| page_size | integer | No | 1 to 500, default 50. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs/J-1001/applicants" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch one candidate
API key and secret keyOne person as the portal reads them: their profile, skills, education, certifications and work experience, all their applications, and what they did (views, saves, ignored jobs, searches). It asks GET {your data address}/candidates?user_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates/U-2001" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}5. Train on your records (optional)
A training reads your records first, and then the models learn from them, from your records alone. It uses one source, never both. If fetching from your platform is switched on, it reads your jobs and candidates from the address you set, and only those: what you sent through the API is not part of that training, so a record you sent but your platform does not serve will not be in it. If fetching is off, it uses the records you sent through the API. It starts by itself a short while after you send data, and on a schedule. When you add or change a job or a candidate in your own system, start a training and the portal fetches your records again before it trains. The training.started callback tells you which source it will use, and training.completed tells you when it is done.
Start a training
API key and secret keyTrains on your own records alone. It answers 202 at once; the callbacks training.started, fetch.completed and training.completed follow.
- One training at a time for each organization. A second one answers 409.
- The source: with fetching on, the training reads your jobs and candidates from your platform address; with fetching off, it uses the records you sent through the API. The training.started callback says which one it will use.
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "started",
"training_id": "0b8e0c6c"
}History of fetches and trainings
API key and secret keyCounts received and rejected for each kind of record, the fields missing and the error. Never the records.
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"runs": []
}6. Call search
Search for jobs, a short query or a long sentence
Search jobs
API key and secret keyFinds jobs for what a person typed. The query is used exactly as typed.
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | What the person typed, exactly as typed. |
| limit | integer | No | How many jobs in the page. 1 to 100, default 50. |
| offset | integer | No | How many jobs to skip, the start of the page. Default 0. |
- Counted: Words in the query. A short query and a long sentence are the same model; a query of 6 words or more is answered through its own lane.
curl -X POST "https://ai.mpuza.com/api-portal/v1/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "data analyst jobs in Kigali paying over 800 USD"
}'{
"total": 1,
"offset": 0,
"results": [
{
"id": "J-1001",
"title": "Data analyst",
"company": "Acme Ltd",
"job_type": "full-time",
"location": [
"Kigali"
],
"match_score": 0.91,
"match_priority": "strong"
}
],
"success": true,
"has_more": true,
"search_term": "data analyst jobs in Kigali paying over 800 USD",
"total_matches": 42,
"processing_time_ms": 41.2
}Shortened example. has_more is true while more jobs follow: ask for the next page with offset.
Data it reads
| Record | Required fields |
|---|---|
| job | id, title, slug, job_type, locations, skills_required, education_required, description, published_at, expires_at, created_at, view_count, application_count, status, tags, company_name |
| required_certifications | certification_name |
| required_education | degree |
| required_experience | title |
| required_skills | skill_name |
| requirement_items | text |
| responsibility_items | text |
Other fields are optional. The developer portal guide lists every field of every record.
Applicant ranking
Ranks the applicants of one job
- 1Feed your jobsPOST /v1/upsert/job
- 2Feed your candidatesPOST /v1/upsert/candidate
- 3Or send many at onceoptionalPOST /v1/upsert/bulk
- 4Record the applicationsPOST /v1/webhooks/recommendation-events
- 5Or let the portal fetch them from your platformoptionalPUT /v1/connectionGET /v1/connectionPOST /v1/connection/testPOST /v1/connection/enable
- 6See what the portal fetches: all, one job or one candidateoptionalGET /v1/connection/jobsGET /v1/connection/candidatesGET /v1/connection/jobs/{jobId}/applicantsGET /v1/connection/candidates/{userId}
- 7Train on your recordsoptionalPOST /v1/trainingGET /v1/training
- 8Call applicant rankingPOST /v1/rank
1. Feed your jobs
The model works on your own jobs. Send each job. If your jobs live in your own system, fetch them from there instead (see the step below): a training uses either what you send here or what the portal fetches from your platform, never both.
Add or update one job
API key and secret keyKeeps only the fields switched on for the models of your key. A required field that is missing or of the wrong type refuses the job.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | No | Your id of the job. Without it a new one is made. |
| title | string | Yes | The title of the job. |
| ... | fields | No | The other fields of a job. The guide in the developer portal lists each one for each model. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/job" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "J-1001",
"slug": "data-analyst",
"tags": [
"data"
],
"title": "Data analyst",
"status": "active",
"benefits": [
"Medical insurance"
],
"job_type": "full-time",
"logo_url": "https://acme.example/logo.png",
"locations": [
"Kigali"
],
"company_id": "C-1",
"created_at": "2026-10-01",
"department": "Analytics",
"expires_at": "2026-12-01",
"salary_max": 1200,
"salary_min": 800,
"view_count": 0,
"description": "Turns data into decisions for the finance team.",
"company_name": "Acme Ltd",
"company_size": "11-50",
"published_at": "2026-10-01",
"requirements": [
"Two years of experience"
],
"salary_period": "month",
"experience_max": 5,
"experience_min": 2,
"qualifications": "Bachelor degree in statistics or a related field",
"company_website": "https://acme.example",
"salary_currency": "USD",
"skills_required": [
"SQL",
"Excel"
],
"company_industry": "Finance",
"experience_level": "mid",
"responsibilities": [
"Build reports",
"Clean data"
],
"skills_preferred": [
"Python"
],
"work_arrangement": "hybrid",
"application_count": 0,
"education_required": {
"field": "Statistics",
"degree": "Bachelor"
},
"verification_badge": "verified",
"screening_questions": [],
"language_requirements": [
"English"
],
"ai_match_required_score": 60,
"preferred_qualifications": "A master degree"
}'{
"action": "added",
"job_id": "J-1001",
"success": true,
"in_model": true,
"dropped_fields": []
}2. Feed your candidates
Send each person with their skills, education, certifications and work experience. No name, email or phone number is asked for.
Add or update one candidate
API key and secret keyA person with their skills, education, certifications and work experience. No name, email or phone is asked for.
| Field | Type | Required | Description |
|---|---|---|---|
| user_id | string | Yes | Your id of the person. |
| skills | array | No | For example { skill_name, years_experience }. |
| education | array | No | For example { degree, field_of_study }. |
| certifications | array | No | For example { certification_name }. |
| work_experience | array | No | For example { title, description, industry, start_date, end_date, is_current }. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/candidate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"city": "Kigali",
"sector": "Kimironko",
"skills": [
{
"skill_name": "SQL",
"years_experience": 4
}
],
"country": "RW",
"summary": "Five years of reporting work",
"user_id": "U-2001",
"district": "Gasabo",
"headline": "Data analyst",
"province": "Kigali City",
"education": [
{
"degree": "Bachelor's",
"field_of_study": "Statistics"
}
],
"languages": [
"English",
"Kinyarwanda"
],
"is_rwandan": true,
"date_of_birth": "1995-04-12",
"certifications": [
{
"certification_name": "Google Data Analytics"
}
],
"expected_salary": 900,
"job_preferences": {
"job_type": [
"full-time"
]
},
"work_experience": [
{
"title": "Analyst",
"skills": [
"SQL"
],
"end_date": "2024-01-01",
"industry": "Finance",
"is_current": false,
"start_date": "2021-01-01",
"description": "Monthly reports"
}
]
}'{
"action": "added",
"success": true,
"in_model": true,
"candidate_id": "U-2001",
"dropped_fields": []
}3. Or send many at once (optional)
Jobs, candidates and events can go in one call. One bad record does not stop the others.
Add or update lists of records
API key and secret keyJobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.
| Field | Type | Required | Description |
|---|---|---|---|
| jobs | array | No | Jobs, as in the single call. |
| candidates | array | No | Candidates, as in the single call. |
| events | array | No | Behaviour events. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/bulk" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"jobs": [
{
"id": "J-1001",
"title": "Data analyst"
}
],
"events": [
{
"job_id": "J-1001",
"user_id": "U-2001",
"event_type": "view"
}
],
"candidates": [
{
"user_id": "U-2001"
}
]
}'{
"jobs": 1,
"errors": [],
"events": 1,
"jobs_ok": 1,
"events_ok": 1,
"candidates": 1,
"candidates_ok": 1
}4. Record the applications
Tell the model who applied to which job.
Record an application
API key and secret keyAn application is sent as an event of type application: the person, the job, and the profile as it was when they applied.
| Field | Type | Required | Description |
|---|---|---|---|
| event_type | string | Yes | application |
| user_id | string | Yes | The person who applied. |
| job_id | string | Yes | The job they applied to. |
| event_date | string | No | When they applied. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/webhooks/recommendation-events" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_id": "J-1001",
"user_id": "U-2001",
"event_date": "2026-10-20",
"event_type": "application"
}'{
"errors": [],
"accepted": 1,
"rejected": 0,
"queue_size": 1,
"received_at": "2026-10-27T10:00:00.000Z"
}5. Or let the portal fetch them from your platform (optional)
If your jobs and candidates live in your own system, you do not have to send them. Set the address of your platform with PUT /v1/connection (data_base_url). The portal then reads GET {address}/jobs and GET {address}/candidates from your system. Read the address back, test it, and switch fetching on. Once it is on, a training uses what your platform serves and not what you sent through the API.
Set or change the address the portal fetches from
API key and secret keyThis is where you say where your jobs and candidates live. Send the address of your own platform in data_base_url, and the portal reads them from there. Send only what you want to change: whatever you leave out stays as it is.
| Field | Type | Required | Description |
|---|---|---|---|
| data_base_url | string | No | The address of your platform. The portal adds /jobs and /candidates to it: https://api.company.rw/mpuza makes it read https://api.company.rw/mpuza/jobs and https://api.company.rw/mpuza/candidates. |
| path_overrides | object | No | Only if your paths are not named /jobs and /candidates. For example { "jobs": "/v2/vacancies" } makes the portal read https://api.company.rw/mpuza/v2/vacancies for your jobs. |
| callback_url | string | No | Where the portal tells your system what happened (a training finished, a fetch failed). Leave it out if you do not want callbacks. |
- Your system serves two paths under that address, GET /jobs and GET /candidates. Each takes page, page_size and updated_since, and answers { "data": [ ...records ], "total", "latest", "has_more" }. updated_since lets your system give only the records changed after a given time.
- Read the address back at any time with GET /v1/connection. An address the portal cannot safely call is refused with 422 unsafe_address.
- Then test it (POST /v1/connection/test) and switch fetching on (POST /v1/connection/enable).
- While fetching is on, a training reads your jobs and candidates from this address and not the records you sent through the API. Switch fetching off to train on what you sent.
curl -X PUT "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"data_base_url": "https://api.company.rw/mpuza"
}'{
"endpoint": {
"data_base_url": "https://api.company.rw/mpuza"
}
}Read your connection
API key and secret keyShows where the portal fetches from now: your data address (data_base_url), your two paths, your callback address, and whether fetching is on. Secrets are never given back. To change the address, use PUT /v1/connection.
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"endpoint": {
"fetching": true,
"data_base_url": "https://api.company.rw/mpuza"
}
}Test the connection
API key and secret keyReads the first records of every path and says which expected fields your service does not send.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/test" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"paths": {},
"fingerprints": {}
}Switch fetching on
API key and secret keyOnly works when the test passes. From then on a training reads your jobs and candidates from your address, and the records you sent through the API are not used by it.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/enable" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "ok"
}6. See what the portal fetches: all, one job or one candidate (optional)
These calls read your system the way a training does and show you what came back: all your jobs, all your candidates, the people who applied to one job, or one candidate. Use them to check that your system sends what the model needs, or after you add or change a job or a candidate.
Fetch your jobs: one page or all
API key and secret keyReads GET {your data address}/jobs on your system, the way a training does, and gives you the jobs themselves, a page at a time or every job with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/jobs"
}Fetch your candidates: one page or all
API key and secret keyReads GET {your data address}/candidates on your system, the way a training does, and gives you the candidates themselves, a page at a time or everyone with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch the applicants of one job
API key and secret keyThe people who applied to one job, each as a full record with what they did. It asks GET {your data address}/candidates?job_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Default 1. |
| page_size | integer | No | 1 to 500, default 50. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs/J-1001/applicants" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch one candidate
API key and secret keyOne person as the portal reads them: their profile, skills, education, certifications and work experience, all their applications, and what they did (views, saves, ignored jobs, searches). It asks GET {your data address}/candidates?user_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates/U-2001" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}7. Train on your records (optional)
A training reads your records first, and then the models learn from them, from your records alone. It uses one source, never both. If fetching from your platform is switched on, it reads your jobs and candidates from the address you set, and only those: what you sent through the API is not part of that training, so a record you sent but your platform does not serve will not be in it. If fetching is off, it uses the records you sent through the API. It starts by itself a short while after you send data, and on a schedule. When you add or change a job or a candidate in your own system, start a training and the portal fetches your records again before it trains. The training.started callback tells you which source it will use, and training.completed tells you when it is done.
Start a training
API key and secret keyTrains on your own records alone. It answers 202 at once; the callbacks training.started, fetch.completed and training.completed follow.
- One training at a time for each organization. A second one answers 409.
- The source: with fetching on, the training reads your jobs and candidates from your platform address; with fetching off, it uses the records you sent through the API. The training.started callback says which one it will use.
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "started",
"training_id": "0b8e0c6c"
}History of fetches and trainings
API key and secret keyCounts received and rejected for each kind of record, the fields missing and the error. Never the records.
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"runs": []
}8. Call applicant ranking
Ranks the applicants of one job
Rank applicants
API key and secret keyRanks the applicants you send in the call, best first.
| Field | Type | Required | Description |
|---|---|---|---|
| job_id | string | No | The job the applicants are ranked for, as its id is in your data. |
| applicants | array | Yes | The applicants to rank. Each one is a person with their user_id. |
- Counted: Applicants in the run (the length of `applicants`). A run over the largest priced range is refused.
curl -X POST "https://ai.mpuza.com/api-portal/v1/rank" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_id": "J-1001",
"applicants": [
{
"skills": [
"SQL"
],
"user_id": "U-2001",
"experience_years": 4
}
]
}'{
"ranked_applicants": [
{
"tier": "strong",
"userId": "U-2002",
"summary": "Five years of SQL and reporting work",
"isRanked": true,
"applicationId": "A-77",
"matchPercentage": 88,
"criticalRequirementFailed": false
}
]
}Shortened example. The list is best first.
Data it reads
| Record | Required fields |
|---|---|
| application | job_id, user_id |
| candidate | user_id, job_preferences |
| certifications | user_id, certification_name |
| education | user_id, degree, field_of_study |
| job | id, title, slug, job_type, locations, skills_required, education_required, description, published_at, expires_at, created_at, view_count, application_count, status, tags, company_name |
| required_certifications | certification_name |
| required_education | degree |
| required_experience | title |
| required_skills | skill_name |
| requirement_items | text |
| responsibility_items | text |
| skills | user_id, skill_name |
| work_experience | user_id, title, description, start_date, is_current |
Other fields are optional. The developer portal guide lists every field of every record.
Shortlisting
Content shortlist of the applicants of one job
- 1Feed your jobsPOST /v1/upsert/job
- 2Feed your candidatesPOST /v1/upsert/candidate
- 3Or send many at onceoptionalPOST /v1/upsert/bulk
- 4Record the applicationsPOST /v1/webhooks/recommendation-events
- 5Or let the portal fetch them from your platformoptionalPUT /v1/connectionGET /v1/connectionPOST /v1/connection/testPOST /v1/connection/enable
- 6See what the portal fetches: all, one job or one candidateoptionalGET /v1/connection/jobsGET /v1/connection/candidatesGET /v1/connection/jobs/{jobId}/applicantsGET /v1/connection/candidates/{userId}
- 7Train on your recordsoptionalPOST /v1/trainingGET /v1/training
- 8Start the shortlistingPOST /v1/shortlist
- 9Read the finished listGET /v1/jobsGET /v1/jobs/{id}
1. Feed your jobs
The model works on your own jobs. Send each job. If your jobs live in your own system, fetch them from there instead (see the step below): a training uses either what you send here or what the portal fetches from your platform, never both.
Add or update one job
API key and secret keyKeeps only the fields switched on for the models of your key. A required field that is missing or of the wrong type refuses the job.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | No | Your id of the job. Without it a new one is made. |
| title | string | Yes | The title of the job. |
| ... | fields | No | The other fields of a job. The guide in the developer portal lists each one for each model. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/job" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "J-1001",
"slug": "data-analyst",
"tags": [
"data"
],
"title": "Data analyst",
"status": "active",
"benefits": [
"Medical insurance"
],
"job_type": "full-time",
"logo_url": "https://acme.example/logo.png",
"locations": [
"Kigali"
],
"company_id": "C-1",
"created_at": "2026-10-01",
"department": "Analytics",
"expires_at": "2026-12-01",
"salary_max": 1200,
"salary_min": 800,
"view_count": 0,
"description": "Turns data into decisions for the finance team.",
"company_name": "Acme Ltd",
"company_size": "11-50",
"published_at": "2026-10-01",
"requirements": [
"Two years of experience"
],
"salary_period": "month",
"experience_max": 5,
"experience_min": 2,
"qualifications": "Bachelor degree in statistics or a related field",
"company_website": "https://acme.example",
"salary_currency": "USD",
"skills_required": [
"SQL",
"Excel"
],
"company_industry": "Finance",
"experience_level": "mid",
"responsibilities": [
"Build reports",
"Clean data"
],
"skills_preferred": [
"Python"
],
"work_arrangement": "hybrid",
"application_count": 0,
"education_required": {
"field": "Statistics",
"degree": "Bachelor"
},
"verification_badge": "verified",
"screening_questions": [],
"language_requirements": [
"English"
],
"ai_match_required_score": 60,
"preferred_qualifications": "A master degree"
}'{
"action": "added",
"job_id": "J-1001",
"success": true,
"in_model": true,
"dropped_fields": []
}2. Feed your candidates
Send each person with their skills, education, certifications and work experience. No name, email or phone number is asked for.
Add or update one candidate
API key and secret keyA person with their skills, education, certifications and work experience. No name, email or phone is asked for.
| Field | Type | Required | Description |
|---|---|---|---|
| user_id | string | Yes | Your id of the person. |
| skills | array | No | For example { skill_name, years_experience }. |
| education | array | No | For example { degree, field_of_study }. |
| certifications | array | No | For example { certification_name }. |
| work_experience | array | No | For example { title, description, industry, start_date, end_date, is_current }. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/candidate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"city": "Kigali",
"sector": "Kimironko",
"skills": [
{
"skill_name": "SQL",
"years_experience": 4
}
],
"country": "RW",
"summary": "Five years of reporting work",
"user_id": "U-2001",
"district": "Gasabo",
"headline": "Data analyst",
"province": "Kigali City",
"education": [
{
"degree": "Bachelor's",
"field_of_study": "Statistics"
}
],
"languages": [
"English",
"Kinyarwanda"
],
"is_rwandan": true,
"date_of_birth": "1995-04-12",
"certifications": [
{
"certification_name": "Google Data Analytics"
}
],
"expected_salary": 900,
"job_preferences": {
"job_type": [
"full-time"
]
},
"work_experience": [
{
"title": "Analyst",
"skills": [
"SQL"
],
"end_date": "2024-01-01",
"industry": "Finance",
"is_current": false,
"start_date": "2021-01-01",
"description": "Monthly reports"
}
]
}'{
"action": "added",
"success": true,
"in_model": true,
"candidate_id": "U-2001",
"dropped_fields": []
}3. Or send many at once (optional)
Jobs, candidates and events can go in one call. One bad record does not stop the others.
Add or update lists of records
API key and secret keyJobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.
| Field | Type | Required | Description |
|---|---|---|---|
| jobs | array | No | Jobs, as in the single call. |
| candidates | array | No | Candidates, as in the single call. |
| events | array | No | Behaviour events. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/bulk" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"jobs": [
{
"id": "J-1001",
"title": "Data analyst"
}
],
"events": [
{
"job_id": "J-1001",
"user_id": "U-2001",
"event_type": "view"
}
],
"candidates": [
{
"user_id": "U-2001"
}
]
}'{
"jobs": 1,
"errors": [],
"events": 1,
"jobs_ok": 1,
"events_ok": 1,
"candidates": 1,
"candidates_ok": 1
}4. Record the applications
Tell the model who applied to which job.
Record an application
API key and secret keyAn application is sent as an event of type application: the person, the job, and the profile as it was when they applied.
| Field | Type | Required | Description |
|---|---|---|---|
| event_type | string | Yes | application |
| user_id | string | Yes | The person who applied. |
| job_id | string | Yes | The job they applied to. |
| event_date | string | No | When they applied. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/webhooks/recommendation-events" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_id": "J-1001",
"user_id": "U-2001",
"event_date": "2026-10-20",
"event_type": "application"
}'{
"errors": [],
"accepted": 1,
"rejected": 0,
"queue_size": 1,
"received_at": "2026-10-27T10:00:00.000Z"
}5. Or let the portal fetch them from your platform (optional)
If your jobs and candidates live in your own system, you do not have to send them. Set the address of your platform with PUT /v1/connection (data_base_url). The portal then reads GET {address}/jobs and GET {address}/candidates from your system. Read the address back, test it, and switch fetching on. Once it is on, a training uses what your platform serves and not what you sent through the API.
Set or change the address the portal fetches from
API key and secret keyThis is where you say where your jobs and candidates live. Send the address of your own platform in data_base_url, and the portal reads them from there. Send only what you want to change: whatever you leave out stays as it is.
| Field | Type | Required | Description |
|---|---|---|---|
| data_base_url | string | No | The address of your platform. The portal adds /jobs and /candidates to it: https://api.company.rw/mpuza makes it read https://api.company.rw/mpuza/jobs and https://api.company.rw/mpuza/candidates. |
| path_overrides | object | No | Only if your paths are not named /jobs and /candidates. For example { "jobs": "/v2/vacancies" } makes the portal read https://api.company.rw/mpuza/v2/vacancies for your jobs. |
| callback_url | string | No | Where the portal tells your system what happened (a training finished, a fetch failed). Leave it out if you do not want callbacks. |
- Your system serves two paths under that address, GET /jobs and GET /candidates. Each takes page, page_size and updated_since, and answers { "data": [ ...records ], "total", "latest", "has_more" }. updated_since lets your system give only the records changed after a given time.
- Read the address back at any time with GET /v1/connection. An address the portal cannot safely call is refused with 422 unsafe_address.
- Then test it (POST /v1/connection/test) and switch fetching on (POST /v1/connection/enable).
- While fetching is on, a training reads your jobs and candidates from this address and not the records you sent through the API. Switch fetching off to train on what you sent.
curl -X PUT "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"data_base_url": "https://api.company.rw/mpuza"
}'{
"endpoint": {
"data_base_url": "https://api.company.rw/mpuza"
}
}Read your connection
API key and secret keyShows where the portal fetches from now: your data address (data_base_url), your two paths, your callback address, and whether fetching is on. Secrets are never given back. To change the address, use PUT /v1/connection.
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"endpoint": {
"fetching": true,
"data_base_url": "https://api.company.rw/mpuza"
}
}Test the connection
API key and secret keyReads the first records of every path and says which expected fields your service does not send.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/test" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"paths": {},
"fingerprints": {}
}Switch fetching on
API key and secret keyOnly works when the test passes. From then on a training reads your jobs and candidates from your address, and the records you sent through the API are not used by it.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/enable" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "ok"
}6. See what the portal fetches: all, one job or one candidate (optional)
These calls read your system the way a training does and show you what came back: all your jobs, all your candidates, the people who applied to one job, or one candidate. Use them to check that your system sends what the model needs, or after you add or change a job or a candidate.
Fetch your jobs: one page or all
API key and secret keyReads GET {your data address}/jobs on your system, the way a training does, and gives you the jobs themselves, a page at a time or every job with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/jobs"
}Fetch your candidates: one page or all
API key and secret keyReads GET {your data address}/candidates on your system, the way a training does, and gives you the candidates themselves, a page at a time or everyone with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch the applicants of one job
API key and secret keyThe people who applied to one job, each as a full record with what they did. It asks GET {your data address}/candidates?job_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Default 1. |
| page_size | integer | No | 1 to 500, default 50. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs/J-1001/applicants" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch one candidate
API key and secret keyOne person as the portal reads them: their profile, skills, education, certifications and work experience, all their applications, and what they did (views, saves, ignored jobs, searches). It asks GET {your data address}/candidates?user_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates/U-2001" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}7. Train on your records (optional)
A training reads your records first, and then the models learn from them, from your records alone. It uses one source, never both. If fetching from your platform is switched on, it reads your jobs and candidates from the address you set, and only those: what you sent through the API is not part of that training, so a record you sent but your platform does not serve will not be in it. If fetching is off, it uses the records you sent through the API. It starts by itself a short while after you send data, and on a schedule. When you add or change a job or a candidate in your own system, start a training and the portal fetches your records again before it trains. The training.started callback tells you which source it will use, and training.completed tells you when it is done.
Start a training
API key and secret keyTrains on your own records alone. It answers 202 at once; the callbacks training.started, fetch.completed and training.completed follow.
- One training at a time for each organization. A second one answers 409.
- The source: with fetching on, the training reads your jobs and candidates from your platform address; with fetching off, it uses the records you sent through the API. The training.started callback says which one it will use.
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "started",
"training_id": "0b8e0c6c"
}History of fetches and trainings
API key and secret keyCounts received and rejected for each kind of record, the fields missing and the error. Never the records.
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"runs": []
}8. Start the shortlisting
Content shortlist of the applicants of one job
Shortlist the applicants of a job
Background job API key and secret keyRanks every applicant of one job. It runs in the background: you get a job id at once and read the finished list later.
| Field | Type | Required | Description |
|---|---|---|---|
| job_id | string | Yes | The job whose applicants are ranked, as its id is in your data. |
- Counted: Applications of that job that you have fed.
- Charged on the applications of this job that you fed. A job with no applications answers 404 no_applicants.
- The finished list is ranked_applicants, best first. The fields below are the job and, for each applicant, what is given back.
- The job may also be in the path (POST /v1/shortlist/{jobId}). Both forms follow the same rule.
- Answered at once with a job id; read the answer with GET /v1/jobs/{id}. The SDK waits for it.
curl -X POST "https://ai.mpuza.com/api-portal/v1/shortlist" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_id": "J-1001"
}'{
"job_id": "ev_01",
"status": "queued",
"status_url": "/v1/jobs/ev_01"
}Read the finished list with GET /v1/jobs/{id}.
9. Read the finished list
The call answered at once with a job id. Read that job until its status is done; the list is in the result.
Your recent background jobs
API key and secret keyNewest first, with their ids and where they are. Jobs are kept for 24 hours; the last 200 are listed.
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | How many jobs to list. 1 to 100, default 20. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"jobs": [
{
"job_id": "ev_01",
"status": "done",
"created_at": "2026-11-18T10:00:00Z"
}
]
}Read a background job
API key and secret keyThe state and the answer of one job. States: queued, running, done (the answer is in result) and failed (the reason is in error).
- The id is the job_id a call returned, or the Idempotency-Key you sent.
curl -X GET "https://ai.mpuza.com/api-portal/v1/jobs/ev_01" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"job_id": "ev_01",
"result": {
"ranked_applicants": []
},
"status": "done"
}Data it reads
| Record | Required fields |
|---|---|
| application | job_id, user_id |
| candidate | user_id, job_preferences |
| certifications | none required |
| education | user_id, degree, field_of_study |
| job | id, title, skills_required, description |
| required_certifications | certification_name |
| required_education | degree |
| required_experience | title |
| required_skills | skill_name |
| requirement_items | text |
| responsibility_items | text |
| skills | user_id, skill_name |
| work_experience | user_id, title, description, start_date, is_current |
Other fields are optional. The developer portal guide lists every field of every record.
Recommender
Recommends one job to matching users
- 1Feed your jobsPOST /v1/upsert/job
- 2Feed your candidatesPOST /v1/upsert/candidate
- 3Or send many at onceoptionalPOST /v1/upsert/bulk
- 4Record the applicationsPOST /v1/webhooks/recommendation-events
- 5Send what people doPOST /v1/webhooks/recommendation-eventsPOST /v1/webhooks/recommendation-events/batch
- 6Or let the portal fetch them from your platformoptionalPUT /v1/connectionGET /v1/connectionPOST /v1/connection/testPOST /v1/connection/enable
- 7See what the portal fetches: all, one job or one candidateoptionalGET /v1/connection/jobsGET /v1/connection/candidatesGET /v1/connection/jobs/{jobId}/applicantsGET /v1/connection/candidates/{userId}
- 8Train on your recordsoptionalPOST /v1/trainingGET /v1/training
- 9Call recommenderPOST /v1/recommend
1. Feed your jobs
The model works on your own jobs. Send each job. If your jobs live in your own system, fetch them from there instead (see the step below): a training uses either what you send here or what the portal fetches from your platform, never both.
Add or update one job
API key and secret keyKeeps only the fields switched on for the models of your key. A required field that is missing or of the wrong type refuses the job.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | No | Your id of the job. Without it a new one is made. |
| title | string | Yes | The title of the job. |
| ... | fields | No | The other fields of a job. The guide in the developer portal lists each one for each model. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/job" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "J-1001",
"slug": "data-analyst",
"tags": [
"data"
],
"title": "Data analyst",
"status": "active",
"benefits": [
"Medical insurance"
],
"job_type": "full-time",
"logo_url": "https://acme.example/logo.png",
"locations": [
"Kigali"
],
"company_id": "C-1",
"created_at": "2026-10-01",
"department": "Analytics",
"expires_at": "2026-12-01",
"salary_max": 1200,
"salary_min": 800,
"view_count": 0,
"description": "Turns data into decisions for the finance team.",
"company_name": "Acme Ltd",
"company_size": "11-50",
"published_at": "2026-10-01",
"requirements": [
"Two years of experience"
],
"salary_period": "month",
"experience_max": 5,
"experience_min": 2,
"qualifications": "Bachelor degree in statistics or a related field",
"company_website": "https://acme.example",
"salary_currency": "USD",
"skills_required": [
"SQL",
"Excel"
],
"company_industry": "Finance",
"experience_level": "mid",
"responsibilities": [
"Build reports",
"Clean data"
],
"skills_preferred": [
"Python"
],
"work_arrangement": "hybrid",
"application_count": 0,
"education_required": {
"field": "Statistics",
"degree": "Bachelor"
},
"verification_badge": "verified",
"screening_questions": [],
"language_requirements": [
"English"
],
"ai_match_required_score": 60,
"preferred_qualifications": "A master degree"
}'{
"action": "added",
"job_id": "J-1001",
"success": true,
"in_model": true,
"dropped_fields": []
}2. Feed your candidates
Send each person with their skills, education, certifications and work experience. No name, email or phone number is asked for.
Add or update one candidate
API key and secret keyA person with their skills, education, certifications and work experience. No name, email or phone is asked for.
| Field | Type | Required | Description |
|---|---|---|---|
| user_id | string | Yes | Your id of the person. |
| skills | array | No | For example { skill_name, years_experience }. |
| education | array | No | For example { degree, field_of_study }. |
| certifications | array | No | For example { certification_name }. |
| work_experience | array | No | For example { title, description, industry, start_date, end_date, is_current }. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/candidate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"city": "Kigali",
"sector": "Kimironko",
"skills": [
{
"skill_name": "SQL",
"years_experience": 4
}
],
"country": "RW",
"summary": "Five years of reporting work",
"user_id": "U-2001",
"district": "Gasabo",
"headline": "Data analyst",
"province": "Kigali City",
"education": [
{
"degree": "Bachelor's",
"field_of_study": "Statistics"
}
],
"languages": [
"English",
"Kinyarwanda"
],
"is_rwandan": true,
"date_of_birth": "1995-04-12",
"certifications": [
{
"certification_name": "Google Data Analytics"
}
],
"expected_salary": 900,
"job_preferences": {
"job_type": [
"full-time"
]
},
"work_experience": [
{
"title": "Analyst",
"skills": [
"SQL"
],
"end_date": "2024-01-01",
"industry": "Finance",
"is_current": false,
"start_date": "2021-01-01",
"description": "Monthly reports"
}
]
}'{
"action": "added",
"success": true,
"in_model": true,
"candidate_id": "U-2001",
"dropped_fields": []
}3. Or send many at once (optional)
Jobs, candidates and events can go in one call. One bad record does not stop the others.
Add or update lists of records
API key and secret keyJobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.
| Field | Type | Required | Description |
|---|---|---|---|
| jobs | array | No | Jobs, as in the single call. |
| candidates | array | No | Candidates, as in the single call. |
| events | array | No | Behaviour events. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/bulk" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"jobs": [
{
"id": "J-1001",
"title": "Data analyst"
}
],
"events": [
{
"job_id": "J-1001",
"user_id": "U-2001",
"event_type": "view"
}
],
"candidates": [
{
"user_id": "U-2001"
}
]
}'{
"jobs": 1,
"errors": [],
"events": 1,
"jobs_ok": 1,
"events_ok": 1,
"candidates": 1,
"candidates_ok": 1
}4. Record the applications
Tell the model who applied to which job.
Record an application
API key and secret keyAn application is sent as an event of type application: the person, the job, and the profile as it was when they applied.
| Field | Type | Required | Description |
|---|---|---|---|
| event_type | string | Yes | application |
| user_id | string | Yes | The person who applied. |
| job_id | string | Yes | The job they applied to. |
| event_date | string | No | When they applied. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/webhooks/recommendation-events" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_id": "J-1001",
"user_id": "U-2001",
"event_date": "2026-10-20",
"event_type": "application"
}'{
"errors": [],
"accepted": 1,
"rejected": 0,
"queue_size": 1,
"received_at": "2026-10-27T10:00:00.000Z"
}5. Send what people do
Views, saves, ignored jobs and searches make the answers better.
Send behaviour events
API key and secret keyWhat people do: view, saved_job, application, incomplete_application, ignored_job and search. A list or { events: [...] } is accepted too. For a long list use /batch.
| Field | Type | Required | Description |
|---|---|---|---|
| event_type | string | Yes | view, saved_job, application, incomplete_application, ignored_job or search. |
| user_id | string | Yes | The person. |
| job_id | string | No | The job, for every type except search. |
| query | string | No | For a search event: what was typed. |
| event_date | string | No | When it happened, as a date. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/webhooks/recommendation-events" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_id": "J-1001",
"user_id": "U-2001",
"event_date": "2026-10-20",
"event_type": "view"
}'{
"errors": [],
"accepted": 1,
"rejected": 0,
"queue_size": 1,
"received_at": "2026-10-27T10:00:00.000Z"
}Send a batch of behaviour events
API key and secret keyThe same as sending one event, for a list: send { events: [...] } with many events in one call. Use it for a long list.
| Field | Type | Required | Description |
|---|---|---|---|
| events | array | Yes | The events: each one as in the single call (event_type, user_id, and the job or the query). |
curl -X POST "https://ai.mpuza.com/api-portal/v1/webhooks/recommendation-events/batch" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": [
{
"job_id": "J-1001",
"user_id": "U-2001",
"event_date": "2026-10-20",
"event_type": "view"
},
{
"query": "data analyst",
"user_id": "U-2001",
"event_type": "search",
"searched_at": "2026-10-20T08:00:00Z"
}
]
}'{
"errors": [],
"accepted": 2,
"rejected": 0,
"queue_size": 2,
"received_at": "2026-10-27T10:00:00.000Z"
}6. Or let the portal fetch them from your platform (optional)
If your jobs and candidates live in your own system, you do not have to send them. Set the address of your platform with PUT /v1/connection (data_base_url). The portal then reads GET {address}/jobs and GET {address}/candidates from your system. Read the address back, test it, and switch fetching on. Once it is on, a training uses what your platform serves and not what you sent through the API.
Set or change the address the portal fetches from
API key and secret keyThis is where you say where your jobs and candidates live. Send the address of your own platform in data_base_url, and the portal reads them from there. Send only what you want to change: whatever you leave out stays as it is.
| Field | Type | Required | Description |
|---|---|---|---|
| data_base_url | string | No | The address of your platform. The portal adds /jobs and /candidates to it: https://api.company.rw/mpuza makes it read https://api.company.rw/mpuza/jobs and https://api.company.rw/mpuza/candidates. |
| path_overrides | object | No | Only if your paths are not named /jobs and /candidates. For example { "jobs": "/v2/vacancies" } makes the portal read https://api.company.rw/mpuza/v2/vacancies for your jobs. |
| callback_url | string | No | Where the portal tells your system what happened (a training finished, a fetch failed). Leave it out if you do not want callbacks. |
- Your system serves two paths under that address, GET /jobs and GET /candidates. Each takes page, page_size and updated_since, and answers { "data": [ ...records ], "total", "latest", "has_more" }. updated_since lets your system give only the records changed after a given time.
- Read the address back at any time with GET /v1/connection. An address the portal cannot safely call is refused with 422 unsafe_address.
- Then test it (POST /v1/connection/test) and switch fetching on (POST /v1/connection/enable).
- While fetching is on, a training reads your jobs and candidates from this address and not the records you sent through the API. Switch fetching off to train on what you sent.
curl -X PUT "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"data_base_url": "https://api.company.rw/mpuza"
}'{
"endpoint": {
"data_base_url": "https://api.company.rw/mpuza"
}
}Read your connection
API key and secret keyShows where the portal fetches from now: your data address (data_base_url), your two paths, your callback address, and whether fetching is on. Secrets are never given back. To change the address, use PUT /v1/connection.
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"endpoint": {
"fetching": true,
"data_base_url": "https://api.company.rw/mpuza"
}
}Test the connection
API key and secret keyReads the first records of every path and says which expected fields your service does not send.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/test" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"paths": {},
"fingerprints": {}
}Switch fetching on
API key and secret keyOnly works when the test passes. From then on a training reads your jobs and candidates from your address, and the records you sent through the API are not used by it.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/enable" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "ok"
}7. See what the portal fetches: all, one job or one candidate (optional)
These calls read your system the way a training does and show you what came back: all your jobs, all your candidates, the people who applied to one job, or one candidate. Use them to check that your system sends what the model needs, or after you add or change a job or a candidate.
Fetch your jobs: one page or all
API key and secret keyReads GET {your data address}/jobs on your system, the way a training does, and gives you the jobs themselves, a page at a time or every job with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/jobs"
}Fetch your candidates: one page or all
API key and secret keyReads GET {your data address}/candidates on your system, the way a training does, and gives you the candidates themselves, a page at a time or everyone with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch the applicants of one job
API key and secret keyThe people who applied to one job, each as a full record with what they did. It asks GET {your data address}/candidates?job_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Default 1. |
| page_size | integer | No | 1 to 500, default 50. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs/J-1001/applicants" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch one candidate
API key and secret keyOne person as the portal reads them: their profile, skills, education, certifications and work experience, all their applications, and what they did (views, saves, ignored jobs, searches). It asks GET {your data address}/candidates?user_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates/U-2001" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}8. Train on your records (optional)
A training reads your records first, and then the models learn from them, from your records alone. It uses one source, never both. If fetching from your platform is switched on, it reads your jobs and candidates from the address you set, and only those: what you sent through the API is not part of that training, so a record you sent but your platform does not serve will not be in it. If fetching is off, it uses the records you sent through the API. It starts by itself a short while after you send data, and on a schedule. When you add or change a job or a candidate in your own system, start a training and the portal fetches your records again before it trains. The training.started callback tells you which source it will use, and training.completed tells you when it is done.
Start a training
API key and secret keyTrains on your own records alone. It answers 202 at once; the callbacks training.started, fetch.completed and training.completed follow.
- One training at a time for each organization. A second one answers 409.
- The source: with fetching on, the training reads your jobs and candidates from your platform address; with fetching off, it uses the records you sent through the API. The training.started callback says which one it will use.
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "started",
"training_id": "0b8e0c6c"
}History of fetches and trainings
API key and secret keyCounts received and rejected for each kind of record, the fields missing and the error. Never the records.
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"runs": []
}9. Call recommender
Recommends one job to matching users
Recommend jobs to a person
API key and secret keyGives a person their best jobs, or their score for the jobs you name.
| Field | Type | Required | Description |
|---|---|---|---|
| user_id | string | Yes | The person the jobs are recommended to, as their id is in your data. |
| job_id | string | No | One job: the score of the person for it. |
| job_ids | array | No | Several jobs: the score of the person for each, ranked. |
| top_n | integer | No | With no job: only the best N jobs. 1 to 200. |
- Counted: Candidates you have fed.
- The person alone gives every job ranked for them. With job_id or job_ids you get the score of the person for those jobs, ranked.
- The answer always has the same shape: job_recommendations, the list of jobs with their score.
- Send user_id: the person the jobs are recommended to (a person you have fed). With job_id or job_ids you get their score for those jobs; with the person alone, all jobs ranked for them (top_n limits it). A job the person has already applied to or ignored is not recommended to them again.
curl -X POST "https://ai.mpuza.com/api-portal/v1/recommend" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "U-2002"
}'{
"job_recommendations": [
{
"title": "Data analyst",
"job_id": "J-1001",
"company": "Acme Ltd",
"reasons": [
"Skills match"
],
"total_score": 0.93
}
]
}Shortened example.
Data it reads
| Record | Required fields |
|---|---|
| application | job_id, user_id |
| behaviour | event_type, user_id |
| candidate | user_id, job_preferences |
| certifications | user_id, certification_name |
| education | user_id, degree, field_of_study |
| job | id, title, slug, job_type, locations, skills_required, education_required, description, published_at, expires_at, created_at, view_count, application_count, status, tags, company_name |
| required_certifications | certification_name |
| required_education | degree |
| required_experience | title |
| required_skills | skill_name |
| requirement_items | text |
| responsibility_items | text |
| skills | user_id, skill_name |
| work_experience | user_id, title, description, start_date, is_current |
Other fields are optional. The developer portal guide lists every field of every record.
Job draft
Writes a job description
1. Call job draft
Writes a job description
Write a job description
API key and secret keyWrites a job description from a title and, if you like, some instructions.
| Field | Type | Required | Description |
|---|---|---|---|
| title | str | Yes | The title of the job. |
| form_fields | dict | No | |
| instructions | str | No | How the text should be, for example "Keep it short". |
| description | str | No |
- Counted: 1 for each draft.
curl -X POST "https://ai.mpuza.com/api-portal/v1/job-draft" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Data analyst",
"instructions": "Keep it short"
}'{
"skills": [
"SQL"
],
"usedLlm": true,
"description": "We are looking for a data analyst to ...",
"employmentType": "full-time",
"qualifications": [
"Bachelor's in statistics"
],
"responsibilities": [
"Build monthly reports"
]
}Shortened example.
Qualification match
Checks education against a job
- 1Feed your jobsPOST /v1/upsert/job
- 2Or send many at onceoptionalPOST /v1/upsert/bulk
- 3Or let the portal fetch them from your platformoptionalPUT /v1/connectionGET /v1/connectionPOST /v1/connection/testPOST /v1/connection/enable
- 4See what the portal fetches: all, one job or one candidateoptionalGET /v1/connection/jobsGET /v1/connection/candidatesGET /v1/connection/jobs/{jobId}/applicantsGET /v1/connection/candidates/{userId}
- 5Train on your recordsoptionalPOST /v1/trainingGET /v1/training
- 6Call qualification matchPOST /v1/qualify
1. Feed your jobs
The model works on your own jobs. Send each job. If your jobs live in your own system, fetch them from there instead (see the step below): a training uses either what you send here or what the portal fetches from your platform, never both.
Add or update one job
API key and secret keyKeeps only the fields switched on for the models of your key. A required field that is missing or of the wrong type refuses the job.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | No | Your id of the job. Without it a new one is made. |
| title | string | Yes | The title of the job. |
| ... | fields | No | The other fields of a job. The guide in the developer portal lists each one for each model. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/job" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "J-1001",
"slug": "data-analyst",
"tags": [
"data"
],
"title": "Data analyst",
"status": "active",
"benefits": [
"Medical insurance"
],
"job_type": "full-time",
"logo_url": "https://acme.example/logo.png",
"locations": [
"Kigali"
],
"company_id": "C-1",
"created_at": "2026-10-01",
"department": "Analytics",
"expires_at": "2026-12-01",
"salary_max": 1200,
"salary_min": 800,
"view_count": 0,
"description": "Turns data into decisions for the finance team.",
"company_name": "Acme Ltd",
"company_size": "11-50",
"published_at": "2026-10-01",
"requirements": [
"Two years of experience"
],
"salary_period": "month",
"experience_max": 5,
"experience_min": 2,
"qualifications": "Bachelor degree in statistics or a related field",
"company_website": "https://acme.example",
"salary_currency": "USD",
"skills_required": [
"SQL",
"Excel"
],
"company_industry": "Finance",
"experience_level": "mid",
"responsibilities": [
"Build reports",
"Clean data"
],
"skills_preferred": [
"Python"
],
"work_arrangement": "hybrid",
"application_count": 0,
"education_required": {
"field": "Statistics",
"degree": "Bachelor"
},
"verification_badge": "verified",
"screening_questions": [],
"language_requirements": [
"English"
],
"ai_match_required_score": 60,
"preferred_qualifications": "A master degree"
}'{
"action": "added",
"job_id": "J-1001",
"success": true,
"in_model": true,
"dropped_fields": []
}2. Or send many at once (optional)
Jobs, candidates and events can go in one call. One bad record does not stop the others.
Add or update lists of records
API key and secret keyJobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.
| Field | Type | Required | Description |
|---|---|---|---|
| jobs | array | No | Jobs, as in the single call. |
| candidates | array | No | Candidates, as in the single call. |
| events | array | No | Behaviour events. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/bulk" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"jobs": [
{
"id": "J-1001",
"title": "Data analyst"
}
],
"events": [
{
"job_id": "J-1001",
"user_id": "U-2001",
"event_type": "view"
}
],
"candidates": [
{
"user_id": "U-2001"
}
]
}'{
"jobs": 1,
"errors": [],
"events": 1,
"jobs_ok": 1,
"events_ok": 1,
"candidates": 1,
"candidates_ok": 1
}3. Or let the portal fetch them from your platform (optional)
If your jobs and candidates live in your own system, you do not have to send them. Set the address of your platform with PUT /v1/connection (data_base_url). The portal then reads GET {address}/jobs and GET {address}/candidates from your system. Read the address back, test it, and switch fetching on. Once it is on, a training uses what your platform serves and not what you sent through the API.
Set or change the address the portal fetches from
API key and secret keyThis is where you say where your jobs and candidates live. Send the address of your own platform in data_base_url, and the portal reads them from there. Send only what you want to change: whatever you leave out stays as it is.
| Field | Type | Required | Description |
|---|---|---|---|
| data_base_url | string | No | The address of your platform. The portal adds /jobs and /candidates to it: https://api.company.rw/mpuza makes it read https://api.company.rw/mpuza/jobs and https://api.company.rw/mpuza/candidates. |
| path_overrides | object | No | Only if your paths are not named /jobs and /candidates. For example { "jobs": "/v2/vacancies" } makes the portal read https://api.company.rw/mpuza/v2/vacancies for your jobs. |
| callback_url | string | No | Where the portal tells your system what happened (a training finished, a fetch failed). Leave it out if you do not want callbacks. |
- Your system serves two paths under that address, GET /jobs and GET /candidates. Each takes page, page_size and updated_since, and answers { "data": [ ...records ], "total", "latest", "has_more" }. updated_since lets your system give only the records changed after a given time.
- Read the address back at any time with GET /v1/connection. An address the portal cannot safely call is refused with 422 unsafe_address.
- Then test it (POST /v1/connection/test) and switch fetching on (POST /v1/connection/enable).
- While fetching is on, a training reads your jobs and candidates from this address and not the records you sent through the API. Switch fetching off to train on what you sent.
curl -X PUT "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"data_base_url": "https://api.company.rw/mpuza"
}'{
"endpoint": {
"data_base_url": "https://api.company.rw/mpuza"
}
}Read your connection
API key and secret keyShows where the portal fetches from now: your data address (data_base_url), your two paths, your callback address, and whether fetching is on. Secrets are never given back. To change the address, use PUT /v1/connection.
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"endpoint": {
"fetching": true,
"data_base_url": "https://api.company.rw/mpuza"
}
}Test the connection
API key and secret keyReads the first records of every path and says which expected fields your service does not send.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/test" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"paths": {},
"fingerprints": {}
}Switch fetching on
API key and secret keyOnly works when the test passes. From then on a training reads your jobs and candidates from your address, and the records you sent through the API are not used by it.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/enable" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "ok"
}4. See what the portal fetches: all, one job or one candidate (optional)
These calls read your system the way a training does and show you what came back: all your jobs, all your candidates, the people who applied to one job, or one candidate. Use them to check that your system sends what the model needs, or after you add or change a job or a candidate.
Fetch your jobs: one page or all
API key and secret keyReads GET {your data address}/jobs on your system, the way a training does, and gives you the jobs themselves, a page at a time or every job with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/jobs"
}Fetch your candidates: one page or all
API key and secret keyReads GET {your data address}/candidates on your system, the way a training does, and gives you the candidates themselves, a page at a time or everyone with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch the applicants of one job
API key and secret keyThe people who applied to one job, each as a full record with what they did. It asks GET {your data address}/candidates?job_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Default 1. |
| page_size | integer | No | 1 to 500, default 50. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs/J-1001/applicants" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch one candidate
API key and secret keyOne person as the portal reads them: their profile, skills, education, certifications and work experience, all their applications, and what they did (views, saves, ignored jobs, searches). It asks GET {your data address}/candidates?user_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates/U-2001" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}5. Train on your records (optional)
A training reads your records first, and then the models learn from them, from your records alone. It uses one source, never both. If fetching from your platform is switched on, it reads your jobs and candidates from the address you set, and only those: what you sent through the API is not part of that training, so a record you sent but your platform does not serve will not be in it. If fetching is off, it uses the records you sent through the API. It starts by itself a short while after you send data, and on a schedule. When you add or change a job or a candidate in your own system, start a training and the portal fetches your records again before it trains. The training.started callback tells you which source it will use, and training.completed tells you when it is done.
Start a training
API key and secret keyTrains on your own records alone. It answers 202 at once; the callbacks training.started, fetch.completed and training.completed follow.
- One training at a time for each organization. A second one answers 409.
- The source: with fetching on, the training reads your jobs and candidates from your platform address; with fetching off, it uses the records you sent through the API. The training.started callback says which one it will use.
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "started",
"training_id": "0b8e0c6c"
}History of fetches and trainings
API key and secret keyCounts received and rejected for each kind of record, the fields missing and the error. Never the records.
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"runs": []
}6. Call qualification match
Checks education against a job
Check education against a job
API key and secret keySays whether the education of a person fits what a job asks for.
| Field | Type | Required | Description |
|---|---|---|---|
| job_id | string | Yes | The job, as its id is in your data. |
| education | object | Yes | The education of the person: degree and field_of_study. |
- Counted: 1 for each check.
curl -X POST "https://ai.mpuza.com/api-portal/v1/qualify" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_id": "J-1001",
"education": {
"degree": "Bachelor's",
"field_of_study": "Statistics"
}
}'{
"eligible": true,
"field_score": 0.92,
"degree_score": 1,
"combined_score": 0.96,
"field_similarity": 0.92,
"job_degree_level": 3,
"candidate_degree_level": 3
}Data it reads
| Record | Required fields |
|---|---|
| education | user_id, degree, field_of_study |
| job | id, education_required |
Other fields are optional. The developer portal guide lists every field of every record.
Translate
Translates a text on the shared model server
This model has no public endpoint yet.
From a new organization to trained models
Everything in order: the organization, its keys, the models on them, your data, how fast what you feed reaches the models, and the calls that use it. Nobody has to start a training.
The steps
- Make the organization. Sign up in the developer portal and you are its owner, or the Mpuza team makes it for you.
- Make an API key. A sandbox key (it starts mpz_test_) is free. A key can be limited to some models, and a model that is not on the key answers 403.
- The secret key goes with it. The developer portal gives the first key as a pair. When the team made the key, the secret key is the one your first call carries, and from then on every call has to carry the same one.
- Put the models on the key: search, ranking, shortlisting, the recommender, the job draft and the qualification check, as many as you need.
- Give the organization its data. Either feed your jobs, candidates and what people do through the API, or give the address of your own system and switch fetching on.
- Wait a few seconds. About 5 seconds after you stop feeding, the portal sends the ML only what you added, changed or deleted. It is not a full training, and it runs in the background.
- Use the models. They use what you fed within seconds (see how long, below).
When your data reaches the models
Making the organization, making a key and putting models on the key send nothing to the ML: there is nothing to learn from yet. These do:
| What happens | What the portal does |
|---|---|
| You feed a job, a candidate, an application or an event (one record, a batch or a bulk call) | About 5 seconds after the feeding has been quiet, it sends the ML only what was added or changed. No full training. A long upload is sent together. |
| The Mpuza team deletes a record of yours | The deletion is sent the same way and the ML takes the record out. |
| Someone presses Start a training now, or calls POST /v1/training | A full training, at once. One at a time for an organization. |
| The ML service restarts | Everything you fed is sent again as records to add, because the ML may have lost what it held only in memory. It is not a full training. |
| The address of your own system is switched on (fetching) | A full training, because the records live in your system and nothing tells the portal what changed. The schedule (every 24 hours by default) also trains these organizations. |
| Data is fed while a sync is running | It waits and is sent right after it. It is not lost. |
| The ML refuses a sync, or applies fewer jobs or people than were sent | The run fails and one full training follows, so the model is never left behind. |
| An organization with no data | Nothing is sent. Only a person can start a training. |
What you see
The Trainings and callbacks page of the developer portal has a card at the top that says where it is, and counts the seconds for you: Training starts by itself in 4 s (with a bar) while the feeding settles, Applying your changes: 3 s while the changes are sent, or Nothing is waiting (with what the last run did). GET /v1/training answers the same in the field status. A run with the reason sync applied your changes; data_changed or manual was a full training.
Under the card is the list of trainings with the records read for each kind (jobs, candidates, skills, applications and the rest), the records rejected and the fields missing. Only counts are shown, never the records.
How long until what you feed is used in your calls
These times were measured on the production server on 22 November 2026, with the real clock, on a new organization, with the models running on the GPU. Each one runs from the moment the feeding call answered until the call that should use it first shows it. They are measurements, not promises: they depend on how busy the ML is.
| What you feed | What uses it | Used after the feeding |
|---|---|---|
| A new job | Search (POST /v1/search) | About 10 seconds (6 to 11 in our tests) |
| A new job | Recommender (POST /v1/recommend) | About 10 seconds |
| A job you edit | Search | About 6 seconds |
| A job the team deletes | Search (it is no longer found) | About 9 seconds |
| A new candidate | Recommender | At once: the candidate is read when you ask. A candidate that was never fed is refused with 502 |
| An application (a candidate applies to a job) | Shortlist (POST /v1/shortlist) | At once: the next shortlist ranks the applicant. The shortlist itself runs about 9 seconds for one applicant and about 7 seconds more for each further one (9, 15 and 24 seconds for one, two and three) |
| A job | Qualification check (POST /v1/qualify) | At once: the job is read when you call |
| Views, saved jobs and searches of people | They go in with the next sync | They change scores a little; no single call shows them at a time you can see |
| Nothing you fed | Job draft (POST /v1/job-draft) | Not affected |
The first records of a brand-new organization take longer, once: 16 to 75 seconds in our tests, while the ML makes a place for the organization. The first call after a long quiet time can also take longer when the ML has stopped the organization's worker and has to start it again, which took about 8 minutes once. A search with a condition such as a place (for example accountant in Kigali) takes about 7 seconds on the GPU, a plain one about 1 second.
A full training (only when you start one, or for an organization that reads its own address) takes much longer, because it reads every record again. Measured on 20 November 2026: from 456 to 1,313 seconds (8 to 22 minutes) whatever the size, and 942 seconds for the first one of a new organization. The ML ran on the processor and not on the GPU for part of that time, so a full training may be faster now; we have not measured it again.
A feeding while a sync is running is not lost: it waits and is sent right after the one that is running.
Records you fed, and records the portal reads from your system
A training uses one source, never both. With fetching switched on and an address set, the training reads your jobs and candidates from your own system and only from it. Without fetching, it uses the records you fed through the API.
- Records you fed are kept in the portal when you switch fetching on. They are not read by the training while fetching is on, and they are used again if you switch fetching off.
- They are never given to another organization. They are removed only when the Mpuza team deletes them, when the retention setting of the portal says so, or when the organization is erased.
- A record that is only in what you fed, and not in what your system answers, is therefore not in the training while fetching is on.
- The Mpuza team sees what an organization fed under the organization's Data sent tab. The training page shows counts only.
The calls of the process
Add or update one job
API key and secret keyKeeps only the fields switched on for the models of your key. A required field that is missing or of the wrong type refuses the job.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | No | Your id of the job. Without it a new one is made. |
| title | string | Yes | The title of the job. |
| ... | fields | No | The other fields of a job. The guide in the developer portal lists each one for each model. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/job" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "J-1001",
"slug": "data-analyst",
"tags": [
"data"
],
"title": "Data analyst",
"status": "active",
"benefits": [
"Medical insurance"
],
"job_type": "full-time",
"logo_url": "https://acme.example/logo.png",
"locations": [
"Kigali"
],
"company_id": "C-1",
"created_at": "2026-10-01",
"department": "Analytics",
"expires_at": "2026-12-01",
"salary_max": 1200,
"salary_min": 800,
"view_count": 0,
"description": "Turns data into decisions for the finance team.",
"company_name": "Acme Ltd",
"company_size": "11-50",
"published_at": "2026-10-01",
"requirements": [
"Two years of experience"
],
"salary_period": "month",
"experience_max": 5,
"experience_min": 2,
"qualifications": "Bachelor degree in statistics or a related field",
"company_website": "https://acme.example",
"salary_currency": "USD",
"skills_required": [
"SQL",
"Excel"
],
"company_industry": "Finance",
"experience_level": "mid",
"responsibilities": [
"Build reports",
"Clean data"
],
"skills_preferred": [
"Python"
],
"work_arrangement": "hybrid",
"application_count": 0,
"education_required": {
"field": "Statistics",
"degree": "Bachelor"
},
"verification_badge": "verified",
"screening_questions": [],
"language_requirements": [
"English"
],
"ai_match_required_score": 60,
"preferred_qualifications": "A master degree"
}'{
"action": "added",
"job_id": "J-1001",
"success": true,
"in_model": true,
"dropped_fields": []
}Add or update one candidate
API key and secret keyA person with their skills, education, certifications and work experience. No name, email or phone is asked for.
| Field | Type | Required | Description |
|---|---|---|---|
| user_id | string | Yes | Your id of the person. |
| skills | array | No | For example { skill_name, years_experience }. |
| education | array | No | For example { degree, field_of_study }. |
| certifications | array | No | For example { certification_name }. |
| work_experience | array | No | For example { title, description, industry, start_date, end_date, is_current }. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/candidate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"city": "Kigali",
"sector": "Kimironko",
"skills": [
{
"skill_name": "SQL",
"years_experience": 4
}
],
"country": "RW",
"summary": "Five years of reporting work",
"user_id": "U-2001",
"district": "Gasabo",
"headline": "Data analyst",
"province": "Kigali City",
"education": [
{
"degree": "Bachelor's",
"field_of_study": "Statistics"
}
],
"languages": [
"English",
"Kinyarwanda"
],
"is_rwandan": true,
"date_of_birth": "1995-04-12",
"certifications": [
{
"certification_name": "Google Data Analytics"
}
],
"expected_salary": 900,
"job_preferences": {
"job_type": [
"full-time"
]
},
"work_experience": [
{
"title": "Analyst",
"skills": [
"SQL"
],
"end_date": "2024-01-01",
"industry": "Finance",
"is_current": false,
"start_date": "2021-01-01",
"description": "Monthly reports"
}
]
}'{
"action": "added",
"success": true,
"in_model": true,
"candidate_id": "U-2001",
"dropped_fields": []
}Send a batch of behaviour events
API key and secret keyThe same as sending one event, for a list: send { events: [...] } with many events in one call. Use it for a long list.
| Field | Type | Required | Description |
|---|---|---|---|
| events | array | Yes | The events: each one as in the single call (event_type, user_id, and the job or the query). |
curl -X POST "https://ai.mpuza.com/api-portal/v1/webhooks/recommendation-events/batch" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": [
{
"job_id": "J-1001",
"user_id": "U-2001",
"event_date": "2026-10-20",
"event_type": "view"
},
{
"query": "data analyst",
"user_id": "U-2001",
"event_type": "search",
"searched_at": "2026-10-20T08:00:00Z"
}
]
}'{
"errors": [],
"accepted": 2,
"rejected": 0,
"queue_size": 2,
"received_at": "2026-10-27T10:00:00.000Z"
}Set or change the address the portal fetches from
API key and secret keyThis is where you say where your jobs and candidates live. Send the address of your own platform in data_base_url, and the portal reads them from there. Send only what you want to change: whatever you leave out stays as it is.
| Field | Type | Required | Description |
|---|---|---|---|
| data_base_url | string | No | The address of your platform. The portal adds /jobs and /candidates to it: https://api.company.rw/mpuza makes it read https://api.company.rw/mpuza/jobs and https://api.company.rw/mpuza/candidates. |
| path_overrides | object | No | Only if your paths are not named /jobs and /candidates. For example { "jobs": "/v2/vacancies" } makes the portal read https://api.company.rw/mpuza/v2/vacancies for your jobs. |
| callback_url | string | No | Where the portal tells your system what happened (a training finished, a fetch failed). Leave it out if you do not want callbacks. |
- Your system serves two paths under that address, GET /jobs and GET /candidates. Each takes page, page_size and updated_since, and answers { "data": [ ...records ], "total", "latest", "has_more" }. updated_since lets your system give only the records changed after a given time.
- Read the address back at any time with GET /v1/connection. An address the portal cannot safely call is refused with 422 unsafe_address.
- Then test it (POST /v1/connection/test) and switch fetching on (POST /v1/connection/enable).
- While fetching is on, a training reads your jobs and candidates from this address and not the records you sent through the API. Switch fetching off to train on what you sent.
curl -X PUT "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"data_base_url": "https://api.company.rw/mpuza"
}'{
"endpoint": {
"data_base_url": "https://api.company.rw/mpuza"
}
}Switch fetching on
API key and secret keyOnly works when the test passes. From then on a training reads your jobs and candidates from your address, and the records you sent through the API are not used by it.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/enable" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "ok"
}Start a training
API key and secret keyTrains on your own records alone. It answers 202 at once; the callbacks training.started, fetch.completed and training.completed follow.
- One training at a time for each organization. A second one answers 409.
- The source: with fetching on, the training reads your jobs and candidates from your platform address; with fetching off, it uses the records you sent through the API. The training.started callback says which one it will use.
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "started",
"training_id": "0b8e0c6c"
}History of fetches and trainings
API key and secret keyCounts received and rejected for each kind of record, the fields missing and the error. Never the records.
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"runs": []
}Feeding your data
The models work on your own jobs, candidates and behaviour. Feeding them is free.
You have two ways. Send the records yourself with the calls below, or set your data address and let the portal read your system (see Connect your platform). The records you feed are kept for your organization only.
Jobs
Add or update one job
API key and secret keyKeeps only the fields switched on for the models of your key. A required field that is missing or of the wrong type refuses the job.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | No | Your id of the job. Without it a new one is made. |
| title | string | Yes | The title of the job. |
| ... | fields | No | The other fields of a job. The guide in the developer portal lists each one for each model. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/job" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "J-1001",
"slug": "data-analyst",
"tags": [
"data"
],
"title": "Data analyst",
"status": "active",
"benefits": [
"Medical insurance"
],
"job_type": "full-time",
"logo_url": "https://acme.example/logo.png",
"locations": [
"Kigali"
],
"company_id": "C-1",
"created_at": "2026-10-01",
"department": "Analytics",
"expires_at": "2026-12-01",
"salary_max": 1200,
"salary_min": 800,
"view_count": 0,
"description": "Turns data into decisions for the finance team.",
"company_name": "Acme Ltd",
"company_size": "11-50",
"published_at": "2026-10-01",
"requirements": [
"Two years of experience"
],
"salary_period": "month",
"experience_max": 5,
"experience_min": 2,
"qualifications": "Bachelor degree in statistics or a related field",
"company_website": "https://acme.example",
"salary_currency": "USD",
"skills_required": [
"SQL",
"Excel"
],
"company_industry": "Finance",
"experience_level": "mid",
"responsibilities": [
"Build reports",
"Clean data"
],
"skills_preferred": [
"Python"
],
"work_arrangement": "hybrid",
"application_count": 0,
"education_required": {
"field": "Statistics",
"degree": "Bachelor"
},
"verification_badge": "verified",
"screening_questions": [],
"language_requirements": [
"English"
],
"ai_match_required_score": 60,
"preferred_qualifications": "A master degree"
}'{
"action": "added",
"job_id": "J-1001",
"success": true,
"in_model": true,
"dropped_fields": []
}Candidates
Add or update one candidate
API key and secret keyA person with their skills, education, certifications and work experience. No name, email or phone is asked for.
| Field | Type | Required | Description |
|---|---|---|---|
| user_id | string | Yes | Your id of the person. |
| skills | array | No | For example { skill_name, years_experience }. |
| education | array | No | For example { degree, field_of_study }. |
| certifications | array | No | For example { certification_name }. |
| work_experience | array | No | For example { title, description, industry, start_date, end_date, is_current }. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/candidate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"city": "Kigali",
"sector": "Kimironko",
"skills": [
{
"skill_name": "SQL",
"years_experience": 4
}
],
"country": "RW",
"summary": "Five years of reporting work",
"user_id": "U-2001",
"district": "Gasabo",
"headline": "Data analyst",
"province": "Kigali City",
"education": [
{
"degree": "Bachelor's",
"field_of_study": "Statistics"
}
],
"languages": [
"English",
"Kinyarwanda"
],
"is_rwandan": true,
"date_of_birth": "1995-04-12",
"certifications": [
{
"certification_name": "Google Data Analytics"
}
],
"expected_salary": 900,
"job_preferences": {
"job_type": [
"full-time"
]
},
"work_experience": [
{
"title": "Analyst",
"skills": [
"SQL"
],
"end_date": "2024-01-01",
"industry": "Finance",
"is_current": false,
"start_date": "2021-01-01",
"description": "Monthly reports"
}
]
}'{
"action": "added",
"success": true,
"in_model": true,
"candidate_id": "U-2001",
"dropped_fields": []
}Lists
Add or update lists of records
API key and secret keyJobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.
| Field | Type | Required | Description |
|---|---|---|---|
| jobs | array | No | Jobs, as in the single call. |
| candidates | array | No | Candidates, as in the single call. |
| events | array | No | Behaviour events. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/upsert/bulk" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"jobs": [
{
"id": "J-1001",
"title": "Data analyst"
}
],
"events": [
{
"job_id": "J-1001",
"user_id": "U-2001",
"event_type": "view"
}
],
"candidates": [
{
"user_id": "U-2001"
}
]
}'{
"jobs": 1,
"errors": [],
"events": 1,
"jobs_ok": 1,
"events_ok": 1,
"candidates": 1,
"candidates_ok": 1
}Behaviour events
Send behaviour events
API key and secret keyWhat people do: view, saved_job, application, incomplete_application, ignored_job and search. A list or { events: [...] } is accepted too. For a long list use /batch.
| Field | Type | Required | Description |
|---|---|---|---|
| event_type | string | Yes | view, saved_job, application, incomplete_application, ignored_job or search. |
| user_id | string | Yes | The person. |
| job_id | string | No | The job, for every type except search. |
| query | string | No | For a search event: what was typed. |
| event_date | string | No | When it happened, as a date. |
curl -X POST "https://ai.mpuza.com/api-portal/v1/webhooks/recommendation-events" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_id": "J-1001",
"user_id": "U-2001",
"event_date": "2026-10-20",
"event_type": "view"
}'{
"errors": [],
"accepted": 1,
"rejected": 0,
"queue_size": 1,
"received_at": "2026-10-27T10:00:00.000Z"
}Send a batch of behaviour events
API key and secret keyThe same as sending one event, for a list: send { events: [...] } with many events in one call. Use it for a long list.
| Field | Type | Required | Description |
|---|---|---|---|
| events | array | Yes | The events: each one as in the single call (event_type, user_id, and the job or the query). |
curl -X POST "https://ai.mpuza.com/api-portal/v1/webhooks/recommendation-events/batch" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": [
{
"job_id": "J-1001",
"user_id": "U-2001",
"event_date": "2026-10-20",
"event_type": "view"
},
{
"query": "data analyst",
"user_id": "U-2001",
"event_type": "search",
"searched_at": "2026-10-20T08:00:00Z"
}
]
}'{
"errors": [],
"accepted": 2,
"rejected": 0,
"queue_size": 2,
"received_at": "2026-10-27T10:00:00.000Z"
}Connect your platform
Let the portal read your jobs and your applicants from your own system.
Your system serves two GET paths, GET {data address}/jobs and GET {data address}/candidates. Each takes page, page_size and updated_since, and answers { "data": [ ...records ], "total", "latest", "has_more" }.
- Set your data address and your callback address.
- Check the two paths.
- Test the connection.
- Switch fetching on.
Set the addresses
Set or change the address the portal fetches from
API key and secret keyThis is where you say where your jobs and candidates live. Send the address of your own platform in data_base_url, and the portal reads them from there. Send only what you want to change: whatever you leave out stays as it is.
| Field | Type | Required | Description |
|---|---|---|---|
| data_base_url | string | No | The address of your platform. The portal adds /jobs and /candidates to it: https://api.company.rw/mpuza makes it read https://api.company.rw/mpuza/jobs and https://api.company.rw/mpuza/candidates. |
| path_overrides | object | No | Only if your paths are not named /jobs and /candidates. For example { "jobs": "/v2/vacancies" } makes the portal read https://api.company.rw/mpuza/v2/vacancies for your jobs. |
| callback_url | string | No | Where the portal tells your system what happened (a training finished, a fetch failed). Leave it out if you do not want callbacks. |
- Your system serves two paths under that address, GET /jobs and GET /candidates. Each takes page, page_size and updated_since, and answers { "data": [ ...records ], "total", "latest", "has_more" }. updated_since lets your system give only the records changed after a given time.
- Read the address back at any time with GET /v1/connection. An address the portal cannot safely call is refused with 422 unsafe_address.
- Then test it (POST /v1/connection/test) and switch fetching on (POST /v1/connection/enable).
- While fetching is on, a training reads your jobs and candidates from this address and not the records you sent through the API. Switch fetching off to train on what you sent.
curl -X PUT "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"data_base_url": "https://api.company.rw/mpuza"
}'{
"endpoint": {
"data_base_url": "https://api.company.rw/mpuza"
}
}Read them back
Read your connection
API key and secret keyShows where the portal fetches from now: your data address (data_base_url), your two paths, your callback address, and whether fetching is on. Secrets are never given back. To change the address, use PUT /v1/connection.
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"endpoint": {
"fetching": true,
"data_base_url": "https://api.company.rw/mpuza"
}
}Check your paths
Fetch your jobs: one page or all
API key and secret keyReads GET {your data address}/jobs on your system, the way a training does, and gives you the jobs themselves, a page at a time or every job with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/jobs"
}Fetch your candidates: one page or all
API key and secret keyReads GET {your data address}/candidates on your system, the way a training does, and gives you the candidates themselves, a page at a time or everyone with all=true. It also says what it found: how many there are, when the latest changed, and how many it could not accept.
| Field | Type | Required | Description |
|---|---|---|---|
| all | boolean | No | true: every record, not one page. |
| page | integer | No | Default 1. |
| page_size | integer | No | How many records in a page. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Test
Test the connection
API key and secret keyReads the first records of every path and says which expected fields your service does not send.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/test" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"paths": {},
"fingerprints": {}
}Switch fetching on and off
Switch fetching on
API key and secret keyOnly works when the test passes. From then on a training reads your jobs and candidates from your address, and the records you sent through the API are not used by it.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/enable" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "ok"
}Switch fetching off
API key and secret keyStops the portal reading your data. A training then uses the records you sent through the API.
curl -X POST "https://ai.mpuza.com/api-portal/v1/connection/disable" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "ok"
}Look at one job or person
Fetch the applicants of one job
API key and secret keyThe people who applied to one job, each as a full record with what they did. It asks GET {your data address}/candidates?job_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Default 1. |
| page_size | integer | No | 1 to 500, default 50. |
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/jobs/J-1001/applicants" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Fetch one candidate
API key and secret keyOne person as the portal reads them: their profile, skills, education, certifications and work experience, all their applications, and what they did (views, saves, ignored jobs, searches). It asks GET {your data address}/candidates?user_id=... on your system.
| Field | Type | Required | Description |
|---|---|---|---|
| updated_since | string | No | Only what changed after this date. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/connection/candidates/U-2001" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"ok": true,
"data": [],
"path": "/candidates"
}Background jobs and the queue
Long work is accepted at once and finished later. Your calls wait in a queue of your own.
Shortlisting answers 202 with a job_id. Read the job to see where it is: queued, running, done or failed. Jobs are kept for 24 hours.
Your recent background jobs
API key and secret keyNewest first, with their ids and where they are. Jobs are kept for 24 hours; the last 200 are listed.
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | How many jobs to list. 1 to 100, default 20. |
curl -X GET "https://ai.mpuza.com/api-portal/v1/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"jobs": [
{
"job_id": "ev_01",
"status": "done",
"created_at": "2026-11-18T10:00:00Z"
}
]
}Read a background job
API key and secret keyThe state and the answer of one job. States: queued, running, done (the answer is in result) and failed (the reason is in error).
- The id is the job_id a call returned, or the Idempotency-Key you sent.
curl -X GET "https://ai.mpuza.com/api-portal/v1/jobs/ev_01" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"job_id": "ev_01",
"result": {
"ranked_applicants": []
},
"status": "done"
}Your queue
Each organization has its own queue, so one busy organization does not hold up another. A call that waits too long answers 504 and is not counted. A full queue answers 429.
Your own queue
API key and secret keyCalls waiting, calls running, the average wait of the last hour, refused, timed out and dropped calls, for live and sandbox.
curl -X GET "https://ai.mpuza.com/api-portal/v1/queue" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"live": {
"running": 1,
"waiting": 0
},
"sandbox": {
"running": 0,
"waiting": 0
}
}Training and callbacks
Train on your own records, and get told when something happens.
Start a training
API key and secret keyTrains on your own records alone. It answers 202 at once; the callbacks training.started, fetch.completed and training.completed follow.
- One training at a time for each organization. A second one answers 409.
- The source: with fetching on, the training reads your jobs and candidates from your platform address; with fetching off, it uses the records you sent through the API. The training.started callback says which one it will use.
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"status": "started",
"training_id": "0b8e0c6c"
}History of fetches and trainings
API key and secret keyCounts received and rejected for each kind of record, the fields missing and the error. Never the records.
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"runs": []
}Callbacks
The portal tells your system what happened by sending a signed POST to your callback address. A callback that fails is tried again for 24 hours. The events of a training are training.started, fetch.completed and training.completed.
| Header | Meaning |
|---|---|
| X-Mpuza-Event | The name of the event |
| X-Mpuza-Delivery | The id of this delivery |
| X-Mpuza-Signature | The signature of the body. Check it before you trust the message. |
Send a test callback
API key and secret keySends a signed connection.test message to your callback address now.
curl -X POST "https://ai.mpuza.com/api-portal/v1/callback/test" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"code": 200,
"delivered": true
}Usage and billing
What you used this month, and your invoices.
Each model counts its own thing: search counts the words in the query, ranking the applicants sent, shortlisting the applications of the job, recommendation the candidates you have fed, and a job draft or a qualification check 1 per call. Sandbox calls and failed calls are never charged.
This month so far
API key and secret keyOne line for each model and price rule, with what was charged and the free part. Failed calls and sandbox calls are not on it.
curl -X GET "https://ai.mpuza.com/api-portal/v1/usage" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"lines": [],
"total": 12.4,
"period": "2026-11"
}Your invoices
API key and secret keyOnly invoices that have been sent. A draft is checked by us first.
curl -X GET "https://ai.mpuza.com/api-portal/v1/invoices" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"invoices": []
}One invoice with its lines
API key and secret keyThe month looks like 2026-11. A sent invoice never changes; a correction is a credit line on the next invoice.
curl -X GET "https://ai.mpuza.com/api-portal/v1/invoices/2026-11" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"lines": [],
"total": 0,
"period": "2026-11"
}Account
Check which organization a key belongs to.
Who is this key
API key and secret keyThe organization the API key belongs to and the key itself (its name, its mode and only the start of it). No secret is returned.
curl -X GET "https://ai.mpuza.com/api-portal/v1/whoami" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Secret-Key: YOUR_SECRET_KEY"{
"key": {
"mode": "sandbox",
"name": "Website"
},
"organization": {
"name": "Acme Ltd",
"status": "active"
}
}