Overview
Base URL: https://levida.ai
Authentication: bearer token returned by the login endpoint.
Usage: send Authorization: Bearer YOUR_TOKEN on authenticated requests.
This page is public so visitors can evaluate the workflow, but every useful API endpoint requires authentication. Examples below use placeholders only.
Base URL: https://levida.ai
Authentication: bearer token returned by the login endpoint.
Usage: send Authorization: Bearer YOUR_TOKEN on authenticated requests.
The account endpoint, lead-generation endpoints, import endpoints, and job polling require a valid API token tied to an account. Public docs do not imply public API access.
curl -X POST https://levida.ai/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"YOUR_EMAIL","password":"YOUR_PASSWORD"}'
curl https://levida.ai/api/v1/lead-generation/jobs/JOB_ID \
-H "Authorization: Bearer YOUR_TOKEN"
curl -X POST https://levida.ai/api/v1/lead-generation/jobs \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"search_method": "postal_code",
"country": "Spain",
"postal_code": "15005",
"keyword": "fisioterapeuta"
}'
curl -X POST https://levida.ai/api/v1/lead-generation/jobs \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"search_method": "region_city",
"region": "A Coruña",
"cities": ["A Coruña"],
"keyword": "psicologos"
}'
curl -X POST https://levida.ai/api/v1/lead-generation/jobs \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"search_method": "us_zip",
"zip_code": "90210",
"keyword": "dentist"
}'
curl -X POST https://levida.ai/api/v1/lead-generation/bulk \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"requests": [
{
"search_method": "postal_code",
"country": "Spain",
"postal_code": "15005",
"keyword": "fisioterapeuta"
},
{
"search_method": "region_city",
"region": "A Coruña",
"cities": ["A Coruña"],
"keyword": "psicologos"
}
]
}'
generate-leads creates new searches and queues new lead-generation jobs. import-leads uploads an existing CSV or JSON file of already collected leads into the authenticated account.
curl -X POST https://levida.ai/api/v1/leads/import \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"leads":[{"customer":"Example Business","city":"Madrid"}]}'
python3 scripts/levida_cli.py login --base-url https://levida.ai
python3 scripts/levida_cli.py generate-leads
python3 scripts/levida_cli.py generate-leads examples/generate_leads_postal_code.json --wait
python3 scripts/levida_cli.py import-leads leads.csv