Start a sourcing job for a role, poll the async job, then list matched prospects as JSON.Documentation Index
Fetch the complete documentation index at: https://staplehire.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Create a role first if you do not already have aroleId.
sourcing start output:
Parameters
| Command | Parameter | Required | Description |
|---|---|---|---|
sourcing start | <roleId> | Yes | Role to source against |
sourcing start | --prompt <text> | No | Extra sourcing instructions |
sourcing start | --force | No | Start a fresh job when allowed |
sourcing prospects | <roleId> | Yes | Role whose prospects should be listed |
Examples
Source remote backend engineers
Source candidates and keep only strong fits
Avoid duplicate sourcing jobs
Ifcreated is false, a job is already in flight. Poll the returned job.id instead of starting another job.
Common errors
| Error | Cause | Fix |
|---|---|---|
NotFoundError | The role ID does not exist | Run staplehire roles list and use a real role ID |
AuthenticationError | No API key is configured | Run staplehire login or set STAPLEHIRE_KEY |
Exit code 9 | Poll timed out | Increase --timeout or check the job later |
FAQ
Does sourcing return results immediately?
No. Sourcing is async. Calljobs poll before reading prospects.
Can I source with a custom prompt?
Yes. Pass--prompt to sourcing start.
What is sourcing list?
It is an alias for sourcing prospects.
Related: Create a role with the Staplehire CLI · Poll Staplehire CLI jobs · CLI errors