Mpuza AIMpuza AI Portaldocs
Base URLhttps://ai.mpuza.com/api-portalJSON over HTTPS
Start

Introduction

Mpuza AI Portal gives your job platform its models behind one address: search, ranking, shortlisting, recommendation, job drafts and qualification checks.

Base URL
https://ai.mpuza.com/api-portal
Auth
Two headers: Authorization: Bearer YOUR_API_KEY and X-Secret-Key: YOUR_SECRET_KEY
Format
JSON in, JSON out
Safe retries
Send an Idempotency-Key. The same key twice is counted once.
Free testing
Keys that start mpz_test_ are sandbox keys and are always free

How it works

  1. Sign up in the developer portal and make a key. You get an API key and a secret key.
  2. Feed your jobs, your candidates and what people do, or let the portal read them from your own system.
  3. Call a model. Search answers at once. Shortlisting runs in the background and you read the list later.
  4. 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.

ModelCallWhat it does
SearchPOST /v1/searchFinds jobs for what a person typed
RankingPOST /v1/rankRanks the applicants you send
ShortlistingPOST /v1/shortlistRanks every applicant of a job, in the background
RecommenderPOST /v1/recommendBest jobs for a person, or their score for jobs you name
Job draftPOST /v1/job-draftWrites a job description
Qualification matchPOST /v1/qualifyChecks education against a job
Start

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 key
GET/v1/whoami

The organization the API key belongs to and the key itself (its name, its mode and only the start of it). No secret is returned.

Errors:401 invalid_api_key403 not allowedAll errors
GET /v1/whoami
curl -X GET "https://ai.mpuza.com/api-portal/v1/whoami" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "key": {
    "mode": "sandbox",
    "name": "Website"
  },
  "organization": {
    "name": "Acme Ltd",
    "status": "active"
  }
}

3. Send a job

Add or update one job

API key and secret key
POST/v1/upsert/job

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

Request body
FieldTypeRequiredDescription
idstringNoYour id of the job. Without it a new one is made.
titlestringYesThe title of the job.
...fieldsNoThe other fields of a job. The guide in the developer portal lists each one for each model.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/job
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"
  }'
Response 200
{
  "action": "added",
  "job_id": "J-1001",
  "success": true,
  "in_model": true,
  "dropped_fields": []
}
Request body
FieldTypeRequiredDescription
querystringYesWhat the person typed, exactly as typed.
limitintegerNoHow many jobs in the page. 1 to 100, default 50.
offsetintegerNoHow many jobs to skip, the start of the page. Default 0.
Fields it gives back
id: strtitle: strcompany: strdescription: strlocation: listjob_type: strwork_arrangement: strsalary: dictskills: listorganization_name: strsource_name: strjob_origin: strmatch_priority: strmatch_score: numberpriority_icon: strfield_scores: dictfield_texts: dict
  • 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.
Errors:400 invalid_request401 invalid_api_key402 no_price403 not allowed429 rate limited502 model failed503 queue unavailable504 queue timeoutAll errors
POST /v1/search
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"
  }'
Response 200
{
  "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.

Sandbox calls are free and never appear on an invoice. Switch to a live key (mpz_live_) when you are ready.
Start

Authentication

Every call carries two keys: your API key and the secret key that goes with it.

The two keys

KeyHeaderLooks like
API keyAuthorization: Bearer YOUR_API_KEYmpz_test_... or mpz_live_...
Secret keyX-Secret-Key: YOUR_SECRET_KEYthe 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
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.
Never put the keys in a browser or a mobile app. Call the Mpuza AI Portal from your server. If a key leaks, disable it in the portal and make a new one.

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.

Start

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.

Example
{
  "error": {
    "code": "invalid_request",
    "message": "query must be a non-empty string"
  }
}

Statuses

StatusCodeWhat to do
400invalid_requestA field is missing or of the wrong type. Read the message. Do not retry as it is.
401invalid_api_keyThe key is missing, unknown or disabled, or the secret key does not go with it.
402no_priceNo price is set for this model or this size yet.
403organization_suspended / model_not_allowedYour organization is suspended, or this key may not use this model.
404not_foundThe thing does not exist. For shortlisting and recommendation: you have not fed the data yet.
409event_id_in_use / training_runningThe id was used for another call, or a training is already running.
422invalid_record / unsafe_address / invalid_inputThe body is well formed but not acceptable. error.details.problems lists each problem.
429rate_limited / queue_fullToo many calls. Wait for the time in the Retry-After header and send again.
502model_failedThe model failed. It is recorded and not charged. Retry with backoff.
503queue_unavailableTry again shortly.
504queue_timeoutThe 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.

Start

Headers

The headers you can send, and the ones that come back with every model call.

Request headers

HeaderRequiredWhat it is for
AuthorizationYesBearer YOUR_API_KEY
X-Secret-KeyYesThe secret key that goes with the API key
Idempotency-KeyNoOne id for one call. A retry with the same id is counted once. Up to 64 characters.
X-Mpuza-NotifyNoWho 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-ReferenceNoWhat the call is for. Same rules. It also comes back in the callbacks.

Response headers of a model call

HeaderMeaning
X-Mpuza-Event-IdThe id of this call, to quote when you ask us about it
X-Mpuza-QuantityWhat was counted: words, applicants, applications or calls
X-Mpuza-Free-Reasonsandbox, trial or none
X-Mpuza-Trial-LeftWhat is left of your free amount for this model
X-Mpuza-Trial-UnitThe unit of that free amount
X-Mpuza-Queue-Wait-MsHow long the call waited in your queue, in milliseconds
Models

Applicant ranking

Ranks the applicants of one job

  1. 1Feed your jobsPOST /v1/upsert/job
  2. 2Feed your candidatesPOST /v1/upsert/candidate
  3. 3Or send many at onceoptionalPOST /v1/upsert/bulk
  4. 4Record the applicationsPOST /v1/webhooks/recommendation-events
  5. 5Or let the portal fetch them from your platformoptionalPUT /v1/connectionGET /v1/connectionPOST /v1/connection/testPOST /v1/connection/enable
  6. 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}
  7. 7Train on your recordsoptionalPOST /v1/trainingGET /v1/training
  8. 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 key
POST/v1/upsert/job

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

Request body
FieldTypeRequiredDescription
idstringNoYour id of the job. Without it a new one is made.
titlestringYesThe title of the job.
...fieldsNoThe other fields of a job. The guide in the developer portal lists each one for each model.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/job
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"
  }'
Response 200
{
  "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 key
POST/v1/upsert/candidate

A person with their skills, education, certifications and work experience. No name, email or phone is asked for.

Request body
FieldTypeRequiredDescription
user_idstringYesYour id of the person.
skillsarrayNoFor example { skill_name, years_experience }.
educationarrayNoFor example { degree, field_of_study }.
certificationsarrayNoFor example { certification_name }.
work_experiencearrayNoFor example { title, description, industry, start_date, end_date, is_current }.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/candidate
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"
      }
    ]
  }'
Response 200
{
  "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 key
POST/v1/upsert/bulk

Jobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.

Request body
FieldTypeRequiredDescription
jobsarrayNoJobs, as in the single call.
candidatesarrayNoCandidates, as in the single call.
eventsarrayNoBehaviour events.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/bulk
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"
      }
    ]
  }'
Response 200
{
  "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 key
POST/v1/webhooks/recommendation-events

An application is sent as an event of type application: the person, the job, and the profile as it was when they applied.

Request body
FieldTypeRequiredDescription
event_typestringYesapplication
user_idstringYesThe person who applied.
job_idstringYesThe job they applied to.
event_datestringNoWhen they applied.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/webhooks/recommendation-events
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"
  }'
Response 200
{
  "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 key
PUT/v1/connection

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

Request body
FieldTypeRequiredDescription
data_base_urlstringNoThe 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_overridesobjectNoOnly 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_urlstringNoWhere 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.
Errors:401 invalid_api_key422 invalid inputAll errors
PUT /v1/connection
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"
  }'
Response 200
{
  "endpoint": {
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Read your connection

API key and secret key
GET/v1/connection

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

Errors:401 invalid_api_keyAll errors
GET /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"
Response 200
{
  "endpoint": {
    "fetching": true,
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Test the connection

API key and secret key
POST/v1/connection/test

Reads the first records of every path and says which expected fields your service does not send.

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/test
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"
Response 200
{
  "ok": true,
  "paths": {},
  "fingerprints": {}
}

Switch fetching on

API key and secret key
POST/v1/connection/enable

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

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/enable
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"
Response 200
{
  "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 key
GET/v1/connection/jobs

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/jobs"
}

Fetch your candidates: one page or all

API key and secret key
GET/v1/connection/candidates

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Fetch the applicants of one job

API key and secret key
GET/v1/connection/jobs/{jobId}/applicants

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

Query
FieldTypeRequiredDescription
pageintegerNoDefault 1.
page_sizeintegerNo1 to 500, default 50.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs/{jobId}/applicants
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Fetch one candidate

API key and secret key
GET/v1/connection/candidates/{userId}

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

Query
FieldTypeRequiredDescription
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates/{userId}
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"
Response 200
{
  "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 key
POST/v1/training

Trains 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.
Errors:401 invalid_api_key409 conflict429 rate limitedAll errors
POST /v1/training
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 202
{
  "status": "started",
  "training_id": "0b8e0c6c"
}

History of fetches and trainings

API key and secret key
GET/v1/training

Counts received and rejected for each kind of record, the fields missing and the error. Never the records.

Errors:401 invalid_api_keyAll errors
GET /v1/training
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "runs": []
}

8. Call applicant ranking

Ranks the applicants of one job

Rank applicants

API key and secret key
POST/v1/rank

Ranks the applicants you send in the call, best first.

Request body
FieldTypeRequiredDescription
job_idstringNoThe job the applicants are ranked for, as its id is in your data.
applicantsarrayYesThe applicants to rank. Each one is a person with their user_id.
Fields it gives back
applicationId: struserId: strmatchPercentage: numbertier: strsummary: strisRanked: boolmodelVersion: strcriticalRequirementFailed: boolcriticalRequirementEvidence: strbreakdown: dict
  • Counted: Applicants in the run (the length of `applicants`). A run over the largest priced range is refused.
Errors:400 invalid_request401 invalid_api_key402 no_price403 not allowed429 rate limited502 model failed503 queue unavailable504 queue timeoutAll errors
POST /v1/rank
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
      }
    ]
  }'
Response 200
{
  "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

The records this model reads, and the fields each one must have
RecordRequired fields
applicationjob_id, user_id
candidateuser_id, job_preferences
certificationsuser_id, certification_name
educationuser_id, degree, field_of_study
jobid, 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_certificationscertification_name
required_educationdegree
required_experiencetitle
required_skillsskill_name
requirement_itemstext
responsibility_itemstext
skillsuser_id, skill_name
work_experienceuser_id, title, description, start_date, is_current

Other fields are optional. The developer portal guide lists every field of every record.

Models

Shortlisting

Content shortlist of the applicants of one job

  1. 1Feed your jobsPOST /v1/upsert/job
  2. 2Feed your candidatesPOST /v1/upsert/candidate
  3. 3Or send many at onceoptionalPOST /v1/upsert/bulk
  4. 4Record the applicationsPOST /v1/webhooks/recommendation-events
  5. 5Or let the portal fetch them from your platformoptionalPUT /v1/connectionGET /v1/connectionPOST /v1/connection/testPOST /v1/connection/enable
  6. 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}
  7. 7Train on your recordsoptionalPOST /v1/trainingGET /v1/training
  8. 8Start the shortlistingPOST /v1/shortlist
  9. 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 key
POST/v1/upsert/job

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

Request body
FieldTypeRequiredDescription
idstringNoYour id of the job. Without it a new one is made.
titlestringYesThe title of the job.
...fieldsNoThe other fields of a job. The guide in the developer portal lists each one for each model.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/job
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"
  }'
Response 200
{
  "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 key
POST/v1/upsert/candidate

A person with their skills, education, certifications and work experience. No name, email or phone is asked for.

Request body
FieldTypeRequiredDescription
user_idstringYesYour id of the person.
skillsarrayNoFor example { skill_name, years_experience }.
educationarrayNoFor example { degree, field_of_study }.
certificationsarrayNoFor example { certification_name }.
work_experiencearrayNoFor example { title, description, industry, start_date, end_date, is_current }.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/candidate
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"
      }
    ]
  }'
Response 200
{
  "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 key
POST/v1/upsert/bulk

Jobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.

Request body
FieldTypeRequiredDescription
jobsarrayNoJobs, as in the single call.
candidatesarrayNoCandidates, as in the single call.
eventsarrayNoBehaviour events.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/bulk
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"
      }
    ]
  }'
Response 200
{
  "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 key
POST/v1/webhooks/recommendation-events

An application is sent as an event of type application: the person, the job, and the profile as it was when they applied.

Request body
FieldTypeRequiredDescription
event_typestringYesapplication
user_idstringYesThe person who applied.
job_idstringYesThe job they applied to.
event_datestringNoWhen they applied.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/webhooks/recommendation-events
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"
  }'
Response 200
{
  "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 key
PUT/v1/connection

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

Request body
FieldTypeRequiredDescription
data_base_urlstringNoThe 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_overridesobjectNoOnly 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_urlstringNoWhere 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.
Errors:401 invalid_api_key422 invalid inputAll errors
PUT /v1/connection
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"
  }'
Response 200
{
  "endpoint": {
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Read your connection

API key and secret key
GET/v1/connection

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

Errors:401 invalid_api_keyAll errors
GET /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"
Response 200
{
  "endpoint": {
    "fetching": true,
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Test the connection

API key and secret key
POST/v1/connection/test

Reads the first records of every path and says which expected fields your service does not send.

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/test
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"
Response 200
{
  "ok": true,
  "paths": {},
  "fingerprints": {}
}

Switch fetching on

API key and secret key
POST/v1/connection/enable

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

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/enable
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"
Response 200
{
  "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 key
GET/v1/connection/jobs

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/jobs"
}

Fetch your candidates: one page or all

API key and secret key
GET/v1/connection/candidates

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Fetch the applicants of one job

API key and secret key
GET/v1/connection/jobs/{jobId}/applicants

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

Query
FieldTypeRequiredDescription
pageintegerNoDefault 1.
page_sizeintegerNo1 to 500, default 50.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs/{jobId}/applicants
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Fetch one candidate

API key and secret key
GET/v1/connection/candidates/{userId}

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

Query
FieldTypeRequiredDescription
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates/{userId}
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"
Response 200
{
  "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 key
POST/v1/training

Trains 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.
Errors:401 invalid_api_key409 conflict429 rate limitedAll errors
POST /v1/training
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 202
{
  "status": "started",
  "training_id": "0b8e0c6c"
}

History of fetches and trainings

API key and secret key
GET/v1/training

Counts received and rejected for each kind of record, the fields missing and the error. Never the records.

Errors:401 invalid_api_keyAll errors
GET /v1/training
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "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 key
POST/v1/shortlist

Ranks every applicant of one job. It runs in the background: you get a job id at once and read the finished list later.

Request body
FieldTypeRequiredDescription
job_idstringYesThe job whose applicants are ranked, as its id is in your data.
Fields it gives back
job_id: strtotal_applicants: numberengine: strcomputed_at: dateapplication_id: struser_id: strstatus: strapplied_at: datecontent_score: numberscore_breakdown: dictprofile: dictrank: numbersummary: strmatch_percentage: numbertier: str
  • 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.
Errors:401 invalid_api_key402 no_price403 not allowed404 not found422 invalid input429 rate limited503 queue unavailable504 queue timeoutAll errors
POST /v1/shortlist
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"
  }'
Response 202
{
  "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 key
GET/v1/jobs

Newest first, with their ids and where they are. Jobs are kept for 24 hours; the last 200 are listed.

Query
FieldTypeRequiredDescription
limitintegerNoHow many jobs to list. 1 to 100, default 20.
Errors:401 invalid_api_keyAll errors
GET /v1/jobs
curl -X GET "https://ai.mpuza.com/api-portal/v1/jobs" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "jobs": [
    {
      "job_id": "ev_01",
      "status": "done",
      "created_at": "2026-11-18T10:00:00Z"
    }
  ]
}

Read a background job

API key and secret key
GET/v1/jobs/{id}

The 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.
Errors:401 invalid_api_key404 not foundAll errors
GET /v1/jobs/{id}
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"
Response 200
{
  "job_id": "ev_01",
  "result": {
    "ranked_applicants": []
  },
  "status": "done"
}

Data it reads

The records this model reads, and the fields each one must have
RecordRequired fields
applicationjob_id, user_id
candidateuser_id, job_preferences
certificationsnone required
educationuser_id, degree, field_of_study
jobid, title, skills_required, description
required_certificationscertification_name
required_educationdegree
required_experiencetitle
required_skillsskill_name
requirement_itemstext
responsibility_itemstext
skillsuser_id, skill_name
work_experienceuser_id, title, description, start_date, is_current

Other fields are optional. The developer portal guide lists every field of every record.

Models

Recommender

Recommends one job to matching users

  1. 1Feed your jobsPOST /v1/upsert/job
  2. 2Feed your candidatesPOST /v1/upsert/candidate
  3. 3Or send many at onceoptionalPOST /v1/upsert/bulk
  4. 4Record the applicationsPOST /v1/webhooks/recommendation-events
  5. 5Send what people doPOST /v1/webhooks/recommendation-eventsPOST /v1/webhooks/recommendation-events/batch
  6. 6Or let the portal fetch them from your platformoptionalPUT /v1/connectionGET /v1/connectionPOST /v1/connection/testPOST /v1/connection/enable
  7. 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}
  8. 8Train on your recordsoptionalPOST /v1/trainingGET /v1/training
  9. 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 key
POST/v1/upsert/job

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

Request body
FieldTypeRequiredDescription
idstringNoYour id of the job. Without it a new one is made.
titlestringYesThe title of the job.
...fieldsNoThe other fields of a job. The guide in the developer portal lists each one for each model.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/job
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"
  }'
Response 200
{
  "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 key
POST/v1/upsert/candidate

A person with their skills, education, certifications and work experience. No name, email or phone is asked for.

Request body
FieldTypeRequiredDescription
user_idstringYesYour id of the person.
skillsarrayNoFor example { skill_name, years_experience }.
educationarrayNoFor example { degree, field_of_study }.
certificationsarrayNoFor example { certification_name }.
work_experiencearrayNoFor example { title, description, industry, start_date, end_date, is_current }.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/candidate
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"
      }
    ]
  }'
Response 200
{
  "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 key
POST/v1/upsert/bulk

Jobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.

Request body
FieldTypeRequiredDescription
jobsarrayNoJobs, as in the single call.
candidatesarrayNoCandidates, as in the single call.
eventsarrayNoBehaviour events.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/bulk
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"
      }
    ]
  }'
Response 200
{
  "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 key
POST/v1/webhooks/recommendation-events

An application is sent as an event of type application: the person, the job, and the profile as it was when they applied.

Request body
FieldTypeRequiredDescription
event_typestringYesapplication
user_idstringYesThe person who applied.
job_idstringYesThe job they applied to.
event_datestringNoWhen they applied.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/webhooks/recommendation-events
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"
  }'
Response 200
{
  "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 key
POST/v1/webhooks/recommendation-events

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

Request body
FieldTypeRequiredDescription
event_typestringYesview, saved_job, application, incomplete_application, ignored_job or search.
user_idstringYesThe person.
job_idstringNoThe job, for every type except search.
querystringNoFor a search event: what was typed.
event_datestringNoWhen it happened, as a date.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/webhooks/recommendation-events
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"
  }'
Response 200
{
  "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 key
POST/v1/webhooks/recommendation-events/batch

The same as sending one event, for a list: send { events: [...] } with many events in one call. Use it for a long list.

Request body
FieldTypeRequiredDescription
eventsarrayYesThe events: each one as in the single call (event_type, user_id, and the job or the query).
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/webhooks/recommendation-events/batch
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"
      }
    ]
  }'
Response 200
{
  "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 key
PUT/v1/connection

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

Request body
FieldTypeRequiredDescription
data_base_urlstringNoThe 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_overridesobjectNoOnly 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_urlstringNoWhere 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.
Errors:401 invalid_api_key422 invalid inputAll errors
PUT /v1/connection
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"
  }'
Response 200
{
  "endpoint": {
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Read your connection

API key and secret key
GET/v1/connection

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

Errors:401 invalid_api_keyAll errors
GET /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"
Response 200
{
  "endpoint": {
    "fetching": true,
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Test the connection

API key and secret key
POST/v1/connection/test

Reads the first records of every path and says which expected fields your service does not send.

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/test
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"
Response 200
{
  "ok": true,
  "paths": {},
  "fingerprints": {}
}

Switch fetching on

API key and secret key
POST/v1/connection/enable

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

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/enable
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"
Response 200
{
  "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 key
GET/v1/connection/jobs

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/jobs"
}

Fetch your candidates: one page or all

API key and secret key
GET/v1/connection/candidates

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Fetch the applicants of one job

API key and secret key
GET/v1/connection/jobs/{jobId}/applicants

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

Query
FieldTypeRequiredDescription
pageintegerNoDefault 1.
page_sizeintegerNo1 to 500, default 50.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs/{jobId}/applicants
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Fetch one candidate

API key and secret key
GET/v1/connection/candidates/{userId}

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

Query
FieldTypeRequiredDescription
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates/{userId}
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"
Response 200
{
  "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 key
POST/v1/training

Trains 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.
Errors:401 invalid_api_key409 conflict429 rate limitedAll errors
POST /v1/training
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 202
{
  "status": "started",
  "training_id": "0b8e0c6c"
}

History of fetches and trainings

API key and secret key
GET/v1/training

Counts received and rejected for each kind of record, the fields missing and the error. Never the records.

Errors:401 invalid_api_keyAll errors
GET /v1/training
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "runs": []
}

9. Call recommender

Recommends one job to matching users

Recommend jobs to a person

API key and secret key
POST/v1/recommend

Gives a person their best jobs, or their score for the jobs you name.

Request body
FieldTypeRequiredDescription
user_idstringYesThe person the jobs are recommended to, as their id is in your data.
job_idstringNoOne job: the score of the person for it.
job_idsarrayNoSeveral jobs: the score of the person for each, ranked.
top_nintegerNoWith no job: only the best N jobs. 1 to 200.
Fields it gives back
id: strtitle: strslug: strcompany_name: strlogo_url: strcompany_industry: strcompany_size: strcompany_website: strdepartment: strjob_type: strwork_arrangement: strstatus: strexperience_level: strexperience_min: numberexperience_max: numberlocations: listskills_required: listskills_preferred: listeducation_required: dictqualifications: strdescription: strresponsibilities: listrequirements: listbenefits: listtags: listlanguage_requirements: listscreening_questions: listsalary_min: numbersalary_max: numbersalary_currency: strsalary_period: strai_match_required_score: numberapplication_count: numberview_count: numberpublished_at: dateexpires_at: datejob_id: strcompany: strtotal_score: numberreasons: listbreakdown: dicthybrid_detail: dict
  • 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.
Errors:401 invalid_api_key402 no_price403 not allowed404 not found422 invalid input429 rate limited502 model failed503 queue unavailable504 queue timeoutAll errors
POST /v1/recommend
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"
  }'
Response 200
{
  "job_recommendations": [
    {
      "title": "Data analyst",
      "job_id": "J-1001",
      "company": "Acme Ltd",
      "reasons": [
        "Skills match"
      ],
      "total_score": 0.93
    }
  ]
}

Shortened example.

Data it reads

The records this model reads, and the fields each one must have
RecordRequired fields
applicationjob_id, user_id
behaviourevent_type, user_id
candidateuser_id, job_preferences
certificationsuser_id, certification_name
educationuser_id, degree, field_of_study
jobid, 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_certificationscertification_name
required_educationdegree
required_experiencetitle
required_skillsskill_name
requirement_itemstext
responsibility_itemstext
skillsuser_id, skill_name
work_experienceuser_id, title, description, start_date, is_current

Other fields are optional. The developer portal guide lists every field of every record.

Models

Job draft

Writes a job description

  1. 1Call job draftPOST /v1/job-draft

1. Call job draft

Writes a job description

Write a job description

API key and secret key
POST/v1/job-draft

Writes a job description from a title and, if you like, some instructions.

Request body
FieldTypeRequiredDescription
titlestrYesThe title of the job.
form_fieldsdictNo
instructionsstrNoHow the text should be, for example "Keep it short".
descriptionstrNo
Fields it gives back
description: strresponsibilities: listusedLlm: boolqualifications: listbenefits: listskills: listlanguages: listdrivingLicense: listshiftAvailability: listemploymentType: streducationLevel: streducationField: str
  • Counted: 1 for each draft.
Errors:400 invalid_request401 invalid_api_key402 no_price403 not allowed429 rate limited502 model failed503 queue unavailable504 queue timeoutAll errors
POST /v1/job-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"
  }'
Response 200
{
  "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.

Models

Qualification match

Checks education against a job

  1. 1Feed your jobsPOST /v1/upsert/job
  2. 2Or send many at onceoptionalPOST /v1/upsert/bulk
  3. 3Or let the portal fetch them from your platformoptionalPUT /v1/connectionGET /v1/connectionPOST /v1/connection/testPOST /v1/connection/enable
  4. 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}
  5. 5Train on your recordsoptionalPOST /v1/trainingGET /v1/training
  6. 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 key
POST/v1/upsert/job

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

Request body
FieldTypeRequiredDescription
idstringNoYour id of the job. Without it a new one is made.
titlestringYesThe title of the job.
...fieldsNoThe other fields of a job. The guide in the developer portal lists each one for each model.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/job
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"
  }'
Response 200
{
  "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 key
POST/v1/upsert/bulk

Jobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.

Request body
FieldTypeRequiredDescription
jobsarrayNoJobs, as in the single call.
candidatesarrayNoCandidates, as in the single call.
eventsarrayNoBehaviour events.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/bulk
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"
      }
    ]
  }'
Response 200
{
  "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 key
PUT/v1/connection

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

Request body
FieldTypeRequiredDescription
data_base_urlstringNoThe 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_overridesobjectNoOnly 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_urlstringNoWhere 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.
Errors:401 invalid_api_key422 invalid inputAll errors
PUT /v1/connection
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"
  }'
Response 200
{
  "endpoint": {
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Read your connection

API key and secret key
GET/v1/connection

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

Errors:401 invalid_api_keyAll errors
GET /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"
Response 200
{
  "endpoint": {
    "fetching": true,
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Test the connection

API key and secret key
POST/v1/connection/test

Reads the first records of every path and says which expected fields your service does not send.

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/test
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"
Response 200
{
  "ok": true,
  "paths": {},
  "fingerprints": {}
}

Switch fetching on

API key and secret key
POST/v1/connection/enable

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

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/enable
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"
Response 200
{
  "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 key
GET/v1/connection/jobs

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/jobs"
}

Fetch your candidates: one page or all

API key and secret key
GET/v1/connection/candidates

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Fetch the applicants of one job

API key and secret key
GET/v1/connection/jobs/{jobId}/applicants

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

Query
FieldTypeRequiredDescription
pageintegerNoDefault 1.
page_sizeintegerNo1 to 500, default 50.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs/{jobId}/applicants
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Fetch one candidate

API key and secret key
GET/v1/connection/candidates/{userId}

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

Query
FieldTypeRequiredDescription
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates/{userId}
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"
Response 200
{
  "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 key
POST/v1/training

Trains 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.
Errors:401 invalid_api_key409 conflict429 rate limitedAll errors
POST /v1/training
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 202
{
  "status": "started",
  "training_id": "0b8e0c6c"
}

History of fetches and trainings

API key and secret key
GET/v1/training

Counts received and rejected for each kind of record, the fields missing and the error. Never the records.

Errors:401 invalid_api_keyAll errors
GET /v1/training
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "runs": []
}

6. Call qualification match

Checks education against a job

Check education against a job

API key and secret key
POST/v1/qualify

Says whether the education of a person fits what a job asks for.

Request body
FieldTypeRequiredDescription
job_idstringYesThe job, as its id is in your data.
educationobjectYesThe education of the person: degree and field_of_study.
Fields it gives back
degree_score: numberjob_degree_level: numbercandidate_degree_level: numberfield_similarity: numberfield_score: numbercombined_score: numbereligible: bool
  • Counted: 1 for each check.
Errors:400 invalid_request401 invalid_api_key402 no_price403 not allowed429 rate limited502 model failed503 queue unavailable504 queue timeoutAll errors
POST /v1/qualify
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"
    }
  }'
Response 200
{
  "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

The records this model reads, and the fields each one must have
RecordRequired fields
educationuser_id, degree, field_of_study
jobid, education_required

Other fields are optional. The developer portal guide lists every field of every record.

Models

Translate

Translates a text on the shared model server

This model has no public endpoint yet.

Guides

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

  1. Make the organization. Sign up in the developer portal and you are its owner, or the Mpuza team makes it for you.
  2. 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.
  3. 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.
  4. Put the models on the key: search, ranking, shortlisting, the recommender, the job draft and the qualification check, as many as you need.
  5. 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.
  6. 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.
  7. 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 happensWhat 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 yoursThe deletion is sent the same way and the ML takes the record out.
Someone presses Start a training now, or calls POST /v1/trainingA full training, at once. One at a time for an organization.
The ML service restartsEverything 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 runningIt waits and is sent right after it. It is not lost.
The ML refuses a sync, or applies fewer jobs or people than were sentThe run fails and one full training follows, so the model is never left behind.
An organization with no dataNothing 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 feedWhat uses itUsed after the feeding
A new jobSearch (POST /v1/search)About 10 seconds (6 to 11 in our tests)
A new jobRecommender (POST /v1/recommend)About 10 seconds
A job you editSearchAbout 6 seconds
A job the team deletesSearch (it is no longer found)About 9 seconds
A new candidateRecommenderAt 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 jobQualification check (POST /v1/qualify)At once: the job is read when you call
Views, saved jobs and searches of peopleThey go in with the next syncThey change scores a little; no single call shows them at a time you can see
Nothing you fedJob 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.

Feed in one batch when you can: the portal waits 5 seconds of quiet before it sends your changes, so a long upload is sent together. If the ML does not apply everything it was sent, the run is marked failed and one full training follows.

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 key
POST/v1/upsert/job

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

Request body
FieldTypeRequiredDescription
idstringNoYour id of the job. Without it a new one is made.
titlestringYesThe title of the job.
...fieldsNoThe other fields of a job. The guide in the developer portal lists each one for each model.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/job
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"
  }'
Response 200
{
  "action": "added",
  "job_id": "J-1001",
  "success": true,
  "in_model": true,
  "dropped_fields": []
}

Add or update one candidate

API key and secret key
POST/v1/upsert/candidate

A person with their skills, education, certifications and work experience. No name, email or phone is asked for.

Request body
FieldTypeRequiredDescription
user_idstringYesYour id of the person.
skillsarrayNoFor example { skill_name, years_experience }.
educationarrayNoFor example { degree, field_of_study }.
certificationsarrayNoFor example { certification_name }.
work_experiencearrayNoFor example { title, description, industry, start_date, end_date, is_current }.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/candidate
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"
      }
    ]
  }'
Response 200
{
  "action": "added",
  "success": true,
  "in_model": true,
  "candidate_id": "U-2001",
  "dropped_fields": []
}

Send a batch of behaviour events

API key and secret key
POST/v1/webhooks/recommendation-events/batch

The same as sending one event, for a list: send { events: [...] } with many events in one call. Use it for a long list.

Request body
FieldTypeRequiredDescription
eventsarrayYesThe events: each one as in the single call (event_type, user_id, and the job or the query).
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/webhooks/recommendation-events/batch
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"
      }
    ]
  }'
Response 200
{
  "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 key
PUT/v1/connection

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

Request body
FieldTypeRequiredDescription
data_base_urlstringNoThe 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_overridesobjectNoOnly 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_urlstringNoWhere 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.
Errors:401 invalid_api_key422 invalid inputAll errors
PUT /v1/connection
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"
  }'
Response 200
{
  "endpoint": {
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Switch fetching on

API key and secret key
POST/v1/connection/enable

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

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/enable
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"
Response 200
{
  "status": "ok"
}

Start a training

API key and secret key
POST/v1/training

Trains 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.
Errors:401 invalid_api_key409 conflict429 rate limitedAll errors
POST /v1/training
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 202
{
  "status": "started",
  "training_id": "0b8e0c6c"
}

History of fetches and trainings

API key and secret key
GET/v1/training

Counts received and rejected for each kind of record, the fields missing and the error. Never the records.

Errors:401 invalid_api_keyAll errors
GET /v1/training
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "runs": []
}
Guides

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 key
POST/v1/upsert/job

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

Request body
FieldTypeRequiredDescription
idstringNoYour id of the job. Without it a new one is made.
titlestringYesThe title of the job.
...fieldsNoThe other fields of a job. The guide in the developer portal lists each one for each model.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/job
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"
  }'
Response 200
{
  "action": "added",
  "job_id": "J-1001",
  "success": true,
  "in_model": true,
  "dropped_fields": []
}

Candidates

Add or update one candidate

API key and secret key
POST/v1/upsert/candidate

A person with their skills, education, certifications and work experience. No name, email or phone is asked for.

Request body
FieldTypeRequiredDescription
user_idstringYesYour id of the person.
skillsarrayNoFor example { skill_name, years_experience }.
educationarrayNoFor example { degree, field_of_study }.
certificationsarrayNoFor example { certification_name }.
work_experiencearrayNoFor example { title, description, industry, start_date, end_date, is_current }.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/candidate
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"
      }
    ]
  }'
Response 200
{
  "action": "added",
  "success": true,
  "in_model": true,
  "candidate_id": "U-2001",
  "dropped_fields": []
}

Lists

Add or update lists of records

API key and secret key
POST/v1/upsert/bulk

Jobs, candidates and events in one call. One bad record does not stop the others; errors says which and why.

Request body
FieldTypeRequiredDescription
jobsarrayNoJobs, as in the single call.
candidatesarrayNoCandidates, as in the single call.
eventsarrayNoBehaviour events.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/upsert/bulk
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"
      }
    ]
  }'
Response 200
{
  "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 key
POST/v1/webhooks/recommendation-events

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

Request body
FieldTypeRequiredDescription
event_typestringYesview, saved_job, application, incomplete_application, ignored_job or search.
user_idstringYesThe person.
job_idstringNoThe job, for every type except search.
querystringNoFor a search event: what was typed.
event_datestringNoWhen it happened, as a date.
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/webhooks/recommendation-events
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"
  }'
Response 200
{
  "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 key
POST/v1/webhooks/recommendation-events/batch

The same as sending one event, for a list: send { events: [...] } with many events in one call. Use it for a long list.

Request body
FieldTypeRequiredDescription
eventsarrayYesThe events: each one as in the single call (event_type, user_id, and the job or the query).
Errors:401 invalid_api_key422 invalid input429 rate limitedAll errors
POST /v1/webhooks/recommendation-events/batch
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"
      }
    ]
  }'
Response 200
{
  "errors": [],
  "accepted": 2,
  "rejected": 0,
  "queue_size": 2,
  "received_at": "2026-10-27T10:00:00.000Z"
}
Guides

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" }.

  1. Set your data address and your callback address.
  2. Check the two paths.
  3. Test the connection.
  4. Switch fetching on.

Set the addresses

Set or change the address the portal fetches from

API key and secret key
PUT/v1/connection

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

Request body
FieldTypeRequiredDescription
data_base_urlstringNoThe 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_overridesobjectNoOnly 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_urlstringNoWhere 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.
Errors:401 invalid_api_key422 invalid inputAll errors
PUT /v1/connection
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"
  }'
Response 200
{
  "endpoint": {
    "data_base_url": "https://api.company.rw/mpuza"
  }
}

Read them back

Read your connection

API key and secret key
GET/v1/connection

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

Errors:401 invalid_api_keyAll errors
GET /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"
Response 200
{
  "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 key
GET/v1/connection/jobs

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/jobs"
}

Fetch your candidates: one page or all

API key and secret key
GET/v1/connection/candidates

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

Query
FieldTypeRequiredDescription
allbooleanNotrue: every record, not one page.
pageintegerNoDefault 1.
page_sizeintegerNoHow many records in a page.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Test

Test the connection

API key and secret key
POST/v1/connection/test

Reads the first records of every path and says which expected fields your service does not send.

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/test
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"
Response 200
{
  "ok": true,
  "paths": {},
  "fingerprints": {}
}

Switch fetching on and off

Switch fetching on

API key and secret key
POST/v1/connection/enable

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

Errors:401 invalid_api_key422 invalid inputAll errors
POST /v1/connection/enable
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"
Response 200
{
  "status": "ok"
}

Switch fetching off

API key and secret key
POST/v1/connection/disable

Stops the portal reading your data. A training then uses the records you sent through the API.

Errors:401 invalid_api_keyAll errors
POST /v1/connection/disable
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"
Response 200
{
  "status": "ok"
}

Look at one job or person

Fetch the applicants of one job

API key and secret key
GET/v1/connection/jobs/{jobId}/applicants

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

Query
FieldTypeRequiredDescription
pageintegerNoDefault 1.
page_sizeintegerNo1 to 500, default 50.
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/jobs/{jobId}/applicants
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}

Fetch one candidate

API key and secret key
GET/v1/connection/candidates/{userId}

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

Query
FieldTypeRequiredDescription
updated_sincestringNoOnly what changed after this date.
Errors:401 invalid_api_key422 invalid inputAll errors
GET /v1/connection/candidates/{userId}
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"
Response 200
{
  "ok": true,
  "data": [],
  "path": "/candidates"
}
Guides

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 key
GET/v1/jobs

Newest first, with their ids and where they are. Jobs are kept for 24 hours; the last 200 are listed.

Query
FieldTypeRequiredDescription
limitintegerNoHow many jobs to list. 1 to 100, default 20.
Errors:401 invalid_api_keyAll errors
GET /v1/jobs
curl -X GET "https://ai.mpuza.com/api-portal/v1/jobs" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "jobs": [
    {
      "job_id": "ev_01",
      "status": "done",
      "created_at": "2026-11-18T10:00:00Z"
    }
  ]
}

Read a background job

API key and secret key
GET/v1/jobs/{id}

The 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.
Errors:401 invalid_api_key404 not foundAll errors
GET /v1/jobs/{id}
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"
Response 200
{
  "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 key
GET/v1/queue

Calls waiting, calls running, the average wait of the last hour, refused, timed out and dropped calls, for live and sandbox.

Errors:401 invalid_api_keyAll errors
GET /v1/queue
curl -X GET "https://ai.mpuza.com/api-portal/v1/queue" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "live": {
    "running": 1,
    "waiting": 0
  },
  "sandbox": {
    "running": 0,
    "waiting": 0
  }
}
Guides

Training and callbacks

Train on your own records, and get told when something happens.

Start a training

API key and secret key
POST/v1/training

Trains 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.
Errors:401 invalid_api_key409 conflict429 rate limitedAll errors
POST /v1/training
curl -X POST "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 202
{
  "status": "started",
  "training_id": "0b8e0c6c"
}

History of fetches and trainings

API key and secret key
GET/v1/training

Counts received and rejected for each kind of record, the fields missing and the error. Never the records.

Errors:401 invalid_api_keyAll errors
GET /v1/training
curl -X GET "https://ai.mpuza.com/api-portal/v1/training" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "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.

HeaderMeaning
X-Mpuza-EventThe name of the event
X-Mpuza-DeliveryThe id of this delivery
X-Mpuza-SignatureThe signature of the body. Check it before you trust the message.

Send a test callback

API key and secret key
POST/v1/callback/test

Sends a signed connection.test message to your callback address now.

Errors:401 invalid_api_keyAll errors
POST /v1/callback/test
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"
Response 200
{
  "code": 200,
  "delivered": true
}
Guides

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 key
GET/v1/usage

One line for each model and price rule, with what was charged and the free part. Failed calls and sandbox calls are not on it.

Errors:401 invalid_api_key429 rate limitedAll errors
GET /v1/usage
curl -X GET "https://ai.mpuza.com/api-portal/v1/usage" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "lines": [],
  "total": 12.4,
  "period": "2026-11"
}

Your invoices

API key and secret key
GET/v1/invoices

Only invoices that have been sent. A draft is checked by us first.

Errors:401 invalid_api_keyAll errors
GET /v1/invoices
curl -X GET "https://ai.mpuza.com/api-portal/v1/invoices" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "invoices": []
}

One invoice with its lines

API key and secret key
GET/v1/invoices/{period}

The month looks like 2026-11. A sent invoice never changes; a correction is a credit line on the next invoice.

Errors:401 invalid_api_key404 not found422 invalid inputAll errors
GET /v1/invoices/{period}
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"
Response 200
{
  "lines": [],
  "total": 0,
  "period": "2026-11"
}
Reference

Account

Check which organization a key belongs to.

Who is this key

API key and secret key
GET/v1/whoami

The organization the API key belongs to and the key itself (its name, its mode and only the start of it). No secret is returned.

Errors:401 invalid_api_key403 not allowedAll errors
GET /v1/whoami
curl -X GET "https://ai.mpuza.com/api-portal/v1/whoami" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"
Response 200
{
  "key": {
    "mode": "sandbox",
    "name": "Website"
  },
  "organization": {
    "name": "Acme Ltd",
    "status": "active"
  }
}