Contact Filters
Departments
Get list of available departments for contact filtering
GET
/
prospecting
/
filters
/
contacts
/
departments
Departments
curl --request GET \
--url https://api.lusha.com/prospecting/filters/contacts/departments \
--header 'api_key: <api-key>'import requests
url = "https://api.lusha.com/prospecting/filters/contacts/departments"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://api.lusha.com/prospecting/filters/contacts/departments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.lusha.com/prospecting/filters/contacts/departments")
.header("api_key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lusha.com/prospecting/filters/contacts/departments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
"Business Development",
"Consulting",
"Engineering",
"Marketing"
]{
"statusCode": 401,
"message": "Invalid API key"
}Authorizations
Your Lusha API key. You can find this in your Lusha dashboard under API settings.
Include this key in the api_key header for all requests.
Response
List of departments
Was this page helpful?
⌘I
Departments
curl --request GET \
--url https://api.lusha.com/prospecting/filters/contacts/departments \
--header 'api_key: <api-key>'import requests
url = "https://api.lusha.com/prospecting/filters/contacts/departments"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://api.lusha.com/prospecting/filters/contacts/departments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.lusha.com/prospecting/filters/contacts/departments")
.header("api_key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lusha.com/prospecting/filters/contacts/departments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
"Business Development",
"Consulting",
"Engineering",
"Marketing"
]{
"statusCode": 401,
"message": "Invalid API key"
}