Skip to main content
POST
/
sourcing
/
contacts
/
search
Search CRM contacts
curl --request POST \
  --url https://app.leonar.app/api/v1/sourcing/contacts/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "job_titles": [
    "<string>"
  ],
  "companies": [
    "<string>"
  ],
  "locations": {
    "cities": [
      "<string>"
    ],
    "states": [
      "<string>"
    ],
    "countries": [
      "<string>"
    ]
  },
  "keywords": [
    "<string>"
  ],
  "skills": [
    "<string>"
  ],
  "first_name": "<string>",
  "last_name": "<string>",
  "full_name": "<string>",
  "contact_types": [
    "candidate"
  ],
  "tags": [
    "<string>"
  ],
  "project_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "sequence_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "stage_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "stage_categories": [
    "sourced"
  ],
  "created_after": "<string>",
  "created_before": "<string>",
  "page": 1,
  "page_size": 20
}
'
{
  "data": {
    "profiles": [
      {
        "profile_id": "ACwAABrjaVMBOLcCrV5aEw1zCAjE_zec6PbnU1A",
        "first_name": "Sophie",
        "last_name": "Martin",
        "headline": "Senior Software Engineer at Doctolib",
        "picture_url": "https://media.licdn.com/dms/image/example.jpg",
        "location": "Paris, Île-de-France, France",
        "linkedin_url": "https://www.linkedin.com/in/sophie-martin",
        "summary": "Experienced engineer with 8 years in full-stack development...",
        "current_job": {
          "title": "Senior Software Engineer",
          "company_name": "Doctolib"
        },
        "experiences": [
          {
            "title": "Senior Software Engineer",
            "company_name": "Doctolib",
            "start_date": "2021-03-01",
            "end_date": null,
            "description": "Leading backend team, Python/Django stack...",
            "is_current": true
          },
          {
            "title": "Software Engineer",
            "company_name": "Criteo",
            "start_date": "2018-01-01",
            "end_date": "2021-02-28",
            "description": "Built real-time bidding systems in Python...",
            "is_current": false
          }
        ],
        "educations": [
          {
            "educational_establishment": "École Polytechnique",
            "diploma": "Master of Engineering",
            "specialization": "Computer Science",
            "start_date": "2014-09-01",
            "end_date": "2018-06-30"
          }
        ],
        "skills": [
          "Python",
          "Django",
          "TypeScript",
          "PostgreSQL"
        ],
        "total_years_experience": 8.2,
        "already_in_project": false,
        "existing_contact_id": null
      }
    ],
    "total_count": 123,
    "filtered_count": 123,
    "next_page": 123,
    "has_more": true
  }
}

Authorizations

Authorization
string
header
required

API key starting with leo_

Body

application/json
project_id
string<uuid>
required
job_titles
string[]
companies
string[]
locations
object
keywords
string[]
skills
string[]
first_name
string
last_name
string
full_name
string
contact_types
enum<string>[]
Available options:
candidate,
client,
lead,
partner
tags
string[]
project_ids
string<uuid>[]
sequence_ids
string<uuid>[]
stage_ids
string<uuid>[]
stage_categories
enum<string>[]
Available options:
sourced,
applied,
screening,
submitted,
interview,
offer,
hired,
rejected,
withdrawn
created_after
string
created_before
string
page
integer
default:1
Required range: x >= 1
page_size
integer
default:20
Required range: 1 <= x <= 25

Response

Search results

data
object