---
title: "Trigger model training"
method: POST
path: "/v1/internal/model/train"
tags: ["model"]
---

# Trigger model training

`POST /v1/internal/model/train`

## Request

- Base URL: `https://api.getyourjob.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getyourjob.pro/v1/internal/model/train`
- Auth: none declared

Trigger LightGBM model training from labelled data.

## Request body

- TrainRequest: Request to trigger model training.
  - `getyourjob_url` string: GetYourJob base URL for fetching labels
  - `export_key` string, required: API key for GetYourJob labelling export endpoint
  - `min_labels` integer: Minimum labels required to train

## Response `200`

Successful Response

- TrainResponse: Response from training trigger.
  - `success` boolean, required
  - `message` string, required
  - `training_started` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getyourjob/apis/matchingagent-api.md) · [All operations](https://skmtc.dev/getyourjob/apis/matchingagent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getyourjob/apis/matchingagent-api/revisions/3a2d9ceb7c84?raw)
