Read a job pipeline

Read the stages of one job and the candidates in each.

GET https://cotlet.dev/api/v1/loxo/jobs/{job_id}/pipeline

read

Returns the job title, the total number of candidates in the pipeline and, per stage, its count and its candidates with person_id and name. Stages come in the order of your workflow. total_candidates covers the whole pipeline even when stage limits the stages returned.

Parameters

Parameters: get_job_pipeline
NameTypeDescription
job_id integer required integer Job id from list_jobs.
stage string string Stage name from list_workflow_stages. Without it, every stage is returned.

Request

cURL
curl https://cotlet.dev/api/v1/loxo/jobs/1/pipeline \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("loxo", "get_job_pipeline", {"job_id":1})
Node.js
const result = await cotlet.call('loxo', 'get_job_pipeline', {"job_id":1});
CLI
cotlet call loxo get_job_pipeline --data '{"job_id":1}'

Example response

JSON

{
  "job_id": 2481530,
  "title": "Senior Data Engineer",
  "total_candidates": 14,
  "stages": [
    {
      "stage": "Shortlist",
      "count": 3,
      "candidates": [
        {
          "person_id": 48211077,
          "name": "Priya Nair"
        },
        {
          "person_id": 48211102,
          "name": "Tom Becker"
        },
        {
          "person_id": 48211130,
          "name": "Lena Ortiz"
        }
      ]
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.