curl --request POST \
--url https://api.getoneprofile.ai/tables/{table_id}/restore/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/tables/{table_id}/restore/"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/tables/{table_id}/restore/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getoneprofile.ai/tables/{table_id}/restore/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/tables/{table_id}/restore/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getoneprofile.ai/tables/{table_id}/restore/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/tables/{table_id}/restore/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"auto_run": true,
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"has_import_source": true,
"has_lead_search": true,
"has_subdomain_feed": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"keep_existing_results": true,
"name": "<string>",
"row_count": 123,
"updated_at": "2023-11-07T05:31:56Z",
"ai_made": false,
"archived_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"deleted_by": "<string>",
"deleted_by_user_id": "<string>",
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"folder_path": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"former_tags": [
"<string>"
],
"has_webhook_endpoint": false,
"is_favorite": false,
"last_view_address": "<string>",
"last_viewed_at": "2023-11-07T05:31:56Z",
"lead_search_record_type": "people",
"monthly_run_budget": 123,
"owner_display_name": "<string>",
"owner_user_id": "<string>",
"sandbox_of_table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shared_as_template": false,
"table_type": "other"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Restore a trashed table
Bring a trashed table back, with every column, row and cell it held, into the folder it was in (the top level when that folder is in Trash too).
Fails if a live table has taken its name in the meantime. One of the two has to be renamed first, and this endpoint will not guess which.
curl --request POST \
--url https://api.getoneprofile.ai/tables/{table_id}/restore/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/tables/{table_id}/restore/"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/tables/{table_id}/restore/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getoneprofile.ai/tables/{table_id}/restore/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/tables/{table_id}/restore/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getoneprofile.ai/tables/{table_id}/restore/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/tables/{table_id}/restore/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"auto_run": true,
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"has_import_source": true,
"has_lead_search": true,
"has_subdomain_feed": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"keep_existing_results": true,
"name": "<string>",
"row_count": 123,
"updated_at": "2023-11-07T05:31:56Z",
"ai_made": false,
"archived_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"deleted_by": "<string>",
"deleted_by_user_id": "<string>",
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"folder_path": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"former_tags": [
"<string>"
],
"has_webhook_endpoint": false,
"is_favorite": false,
"last_view_address": "<string>",
"last_viewed_at": "2023-11-07T05:31:56Z",
"lead_search_record_type": "people",
"monthly_run_budget": 123,
"owner_display_name": "<string>",
"owner_user_id": "<string>",
"sandbox_of_table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shared_as_template": false,
"table_type": "other"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Response
Successful Response
A table definition with its authoritative row counter.
Which kind of lead search fills this table, when has_lead_search: only a search of the same kind can add its rows beside it (only: append). None otherwise.
people, companies, signal_companies, signal_people, lookalikes, local_businesses, hiring_companies, backlinks, search_results, post_authors, startup_launches What one row stands for: person, company or other. Other for a table made by hand, loaded from a file or fed by a connected tool, until somebody sets it; a lead search for people or companies sets it when it starts filling the table, and a person may change it after. A company table offers Find people at its companies.
person, company, other Was this page helpful?