Code examples
All examples assume two variables: your endpoint base URL and your API key.
curl -X POST "$ENDPOINT/v1/classify-title" \ -H "x-api-key: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"title": "Interim CFO"}'PowerShell
Section titled “PowerShell”Invoke-RestMethod -Method Post -Uri "$endpoint/v1/classify-titles" ` -Headers @{ "x-api-key" = $apiKey } ` -ContentType "application/json" ` -Body '{"titles": ["Interim CFO", "VP Sales EMEA"]}'Python
Section titled “Python”import requests
resp = requests.post( f"{ENDPOINT}/v1/classify-titles", headers={"x-api-key": API_KEY}, json={"titles": ["Interim CFO", "VP Sales EMEA"]}, timeout=10,)resp.raise_for_status()for r in resp.json()["results"]: print(r["title"], r["management_level"], r["function"])