Create pipeline
Create a new hiring pipeline with custom stages.Parameters
Pipeline name (e.g., “Engineering Hiring”, “Sales Pipeline”)
The organization ID this pipeline belongs to
Array of stage names. If not provided, defaults to: [“Screening”, “Phone Interview”, “Technical Test”, “Onsite Interview”, “Offer”]
Response
Returns the created pipeline object with all stages.Unique pipeline identifier
Pipeline name
Parent organization ID
Array of stage objects
Pipeline creation timestamp
Last update timestamp
Error handling
Throws “Unauthorized” error if user is not authenticated.List pipelines
Get all pipelines for an organization.Parameters
The organization ID
Response
Returns an array of pipeline objects, each including their stages ordered by stage order.Array of pipeline objects
Update pipeline
Update a pipeline’s name and/or stages.Parameters
The pipeline ID to update
Updated pipeline name
Updated stages array. Note: This replaces all existing stages.
Response
Returns the updated pipeline object with all stages.Important notes
Delete pipeline
Delete a pipeline if it’s not in use.Parameters
The pipeline ID to delete
Response
Returns the deleted pipeline object on success.Error handling
Throws an error with message “Cannot delete pipeline that is being used by jobs” if any jobs are currently using this pipeline.Pipeline structure
Default pipeline
When creating an organization, a default “General Hiring Pipeline” is automatically created with these stages:- Screening (order: 1)
- Interview (order: 2)
- Technical Task (order: 3)
- Final Interview (order: 4)
- Offer (order: 5)
Stage ordering
Stages are ordered using a zero-based index in theorder field. When displaying or moving applicants through stages:
- Stages are sorted by
orderascending - Lower order numbers appear first
- The first stage (order: 0) is typically where new applicants start
Linking to jobs
Jobs can be assigned to a pipeline using thepipelineId field:
- Set
pipelineIdwhen creating or updating a job - Set to
nullto remove pipeline assignment - When a job uses a pipeline, applicants for that job move through the pipeline’s stages