List searches
GET/people/search
Returns a paginated list of all people searches stored in the database.
Query Parameters
- page (int): Page number for pagination. Default is 1.
- page_size (int): Number of items per page. Default is 10.
Request Example
GET /people/search?page=1&page_size=10
Possible Responses
- 200: Listing completed successfully. Returns a list of PeopleSearchModel objects representing completed searches.
- 500: Error accessing the database.
Response Example
[
{
"id": 1,
"q_keywords": "engineer",
"q_organization_domains": "example.com",
"person_titles": ["Senior Engineer", "Lead Engineer"],
"person_locations": ["New York", "San Francisco"],
"person_seniorities": ["Senior", "Lead"],
"organization_ids": ["123", "456"],
"organization_locations": ["New York", "California"],
"organization_num_employees_ranges": ["100-500", "500-1000"],
"contact_email_status": ["verified", "unverified"],
"prospected_by_current_team": ["team1", "team2"],
"contacts": [],
"people": [
{"name": "John Doe", "title": "Senior Engineer", "location": "New York"}
],
"pagination": {"page": 1, "total_pages": 10},
"requested_by": ["customer123"]
}
]
Request
Responses
- 200
- 422
- 500
Listing completed successfully.
Validation Error
Error accessing the database.