Skip to main content

Create a potential candidate

Create a sourced lead in an organization. Scope: sourcing:write.

POST/api/v1/sourcing 🔒 API key

Creates a potential candidate (lead) in a target organization. Scope: sourcing:write. Requires employer-write authority in organizationId (admins bypass) and that the organization exists. The lead is linked to that organization on creation.

Request body

FieldTypeRequiredDescription
fullNamestringYesLead’s full name.
organizationIdstringYesOrganization to create the lead in.
emailstringNoCV email (validated).
contactEmailstringNoAccount/contact email (validated).
phonestringNoPhone (validated).
summarystringNoFree-text summary.
skillsstring[]NoSkill tags.
statusstringNoLead status. Defaults to uploaded.

Example request

curl -X POST https://app.talent-ray.com/api/v1/sourcing \
  -H "Authorization: Bearer tr_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "fullName": "Sam Lee", "organizationId": "org_acme", "contactEmail": "[email protected]", "skills": ["python", "sql"] }'

Response

201 Created — the created potential candidate (same shape as List potential candidates).

Status codes

StatusMeaning
201Created.
400bad_request — missing/invalid fields, or organizationId does not exist.
401No valid API key.
403insufficient_scope (missing sourcing:write) or forbidden (no write authority in the target org).
429Rate limit exceeded.