Motivation MoneyMotivation Money

Get async job progress

Returns the current status of a long-running operation (e.g., payroll execution). Includes progress counts and a link to the related resource.

Prefer webhooks over polling when possible.

Job statuses: QUEUED, PROCESSING, COMPLETED, FAILED.

GET
/jobs/{job_id}
AuthorizationBearer <token>

API key: Authorization: Bearer mpk_live_<key>

In: header

Path Parameters

job_id*string

Job identifier returned by async endpoints

Response Body

application/json

curl -X GET "https://motivation-money.vercel.app/api/v1/jobs/job_exec_789"
{
  "data": {
    "job_id": "job_exec_789",
    "type": "PAYROLL_EXECUTION",
    "status": "PROCESSING",
    "progress": {
      "completed": 14,
      "failed": 1,
      "pending": 3,
      "total": 18
    },
    "related_resource": {
      "type": "payroll_run",
      "id": "run_new456",
      "url": "/api/v1/payroll-runs/run_new456"
    },
    "created_at": "2026-04-01T09:30:00.000Z",
    "updated_at": "2026-04-01T09:42:00.000Z"
  }
}