Contact Tables
Create Contacts Table
Create a new, empty contacts table, optionally seeded with an initial list of contact IDs.
Billing: Free.
POST
/
v3
/
contacts
/
tables
Create Contacts Table
curl --request POST \
--url https://api.lusha.com/v3/contacts/tables \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"name": "VP Sales US Tech Q2",
"visibility": "private",
"owner": {
"email": "user@example.com"
},
"ids": [
"10042851",
"10042852"
]
}
'import requests
url = "https://api.lusha.com/v3/contacts/tables"
payload = {
"name": "VP Sales US Tech Q2",
"visibility": "private",
"owner": { "email": "user@example.com" },
"ids": ["10042851", "10042852"]
}
headers = {
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {api_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'VP Sales US Tech Q2',
visibility: 'private',
owner: {email: 'user@example.com'},
ids: ['10042851', '10042852']
})
};
fetch('https://api.lusha.com/v3/contacts/tables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.lusha.com/v3/contacts/tables")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"VP Sales US Tech Q2\",\n \"visibility\": \"private\",\n \"owner\": {\n \"email\": \"user@example.com\"\n },\n \"ids\": [\n \"10042851\",\n \"10042852\"\n ]\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lusha.com/v3/contacts/tables"
payload := strings.NewReader("{\n \"name\": \"VP Sales US Tech Q2\",\n \"visibility\": \"private\",\n \"owner\": {\n \"email\": \"user@example.com\"\n },\n \"ids\": [\n \"10042851\",\n \"10042852\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"tableId": "482910",
"name": "VP Sales US Tech Q2",
"entityType": "contacts",
"visibility": "private",
"status": "active",
"owner": {
"id": 12345,
"email": "owner@lusha.com",
"name": "Ada Lovelace"
},
"createdBy": {
"surface": "api",
"createdByUserId": 12345
},
"workspaceUrl": "https://workspace.lusha.com/tables/482910",
"entityCount": 5,
"isProcessing": false,
"columns": [
{
"columnId": "c1",
"name": "Job title",
"type": "lusha",
"key": "jobTitle",
"isDefault": false,
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"rowsNotRun": 123,
"rowsProcessing": 123,
"rowsSuccess": 123,
"rowsNoData": 123,
"rowsFailed": 123
}
]
},
"billing": {
"creditsCharged": 3,
"resultsReturned": 1
}
}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.
Body
application/json
Example:
"postman-companies"
Identifies the user acting on the table, and resolves to a user on your account. Required on every table-route call when authenticating with an API key (there is no signed-in user) - omitting it returns 400. Optional for OAuth/token callers, since the caller is already identified by the token; still accepted if you want to act on behalf of another owner.
Show child attributes
Show child attributes
Available options:
private, shared Optional initial entity IDs to seed the table with.
Example:
["10042851", "10042852"]
Was this page helpful?
⌘I
Create Contacts Table
curl --request POST \
--url https://api.lusha.com/v3/contacts/tables \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"name": "VP Sales US Tech Q2",
"visibility": "private",
"owner": {
"email": "user@example.com"
},
"ids": [
"10042851",
"10042852"
]
}
'import requests
url = "https://api.lusha.com/v3/contacts/tables"
payload = {
"name": "VP Sales US Tech Q2",
"visibility": "private",
"owner": { "email": "user@example.com" },
"ids": ["10042851", "10042852"]
}
headers = {
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {api_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'VP Sales US Tech Q2',
visibility: 'private',
owner: {email: 'user@example.com'},
ids: ['10042851', '10042852']
})
};
fetch('https://api.lusha.com/v3/contacts/tables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.lusha.com/v3/contacts/tables")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"VP Sales US Tech Q2\",\n \"visibility\": \"private\",\n \"owner\": {\n \"email\": \"user@example.com\"\n },\n \"ids\": [\n \"10042851\",\n \"10042852\"\n ]\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lusha.com/v3/contacts/tables"
payload := strings.NewReader("{\n \"name\": \"VP Sales US Tech Q2\",\n \"visibility\": \"private\",\n \"owner\": {\n \"email\": \"user@example.com\"\n },\n \"ids\": [\n \"10042851\",\n \"10042852\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"tableId": "482910",
"name": "VP Sales US Tech Q2",
"entityType": "contacts",
"visibility": "private",
"status": "active",
"owner": {
"id": 12345,
"email": "owner@lusha.com",
"name": "Ada Lovelace"
},
"createdBy": {
"surface": "api",
"createdByUserId": 12345
},
"workspaceUrl": "https://workspace.lusha.com/tables/482910",
"entityCount": 5,
"isProcessing": false,
"columns": [
{
"columnId": "c1",
"name": "Job title",
"type": "lusha",
"key": "jobTitle",
"isDefault": false,
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"rowsNotRun": 123,
"rowsProcessing": 123,
"rowsSuccess": 123,
"rowsNoData": 123,
"rowsFailed": 123
}
]
},
"billing": {
"creditsCharged": 3,
"resultsReturned": 1
}
}