Add a candidate to a role withDocumentation Index
Fetch the complete documentation index at: https://staplehire.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
candidates create. The command is idempotent per role and email.
Quickstart
Parameters
| Flag | Required | Description |
|---|---|---|
<roleId> | Yes | Role to add the candidate to |
--email <email> | Yes | Candidate email address |
--name <name> | No | Display name |
--stage-id <id> | No | Pipeline stage ID |
--stage <name> | No | Stage name resolved on the role |
--phone | No | Candidate phone number |
--linkedin-url | No | LinkedIn profile URL |
--portfolio-url | No | Portfolio URL |
--current-location | No | Candidate location |
Examples
Add a candidate to a named stage
Add profile links
Move a candidate to a new stage
Read candidates
Common errors
| Error | Cause | Fix |
|---|---|---|
ValidationError | Invalid email or missing required flag | Pass a valid --email and role ID |
ConflictError | Duplicate candidate on the role | Fetch the existing candidate instead of creating another |
NotFoundError | Role or stage does not exist | Run roles list or stages list <roleId> |
FAQ
Can I add the same email twice?
The command is idempotent per role and email. If the API returns a conflict, read the existing candidate.Should I use --stage or --stage-id?
Use --stage-id when you have the ID. Use --stage when you want the CLI to resolve a stage name on the role.
What is the alias for candidates create?
add is an alias.
Related: Create a role with the Staplehire CLI · Enrich a candidate with the Staplehire CLI · Send an interview with the Staplehire CLI