Check on a task
curl --request GET \
--url https://api.enrichloop.com/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enrichloop.com/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enrichloop.com/v1/tasks/{id}', 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.enrichloop.com/v1/tasks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.enrichloop.com/v1/tasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enrichloop.com/v1/tasks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enrichloop.com/v1/tasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"task": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object_type": "company",
"operation": "enrich",
"target": "<string>",
"credits_charged": 123,
"created_at": "2023-11-07T05:31:56Z",
"input": {},
"loop_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotency_key": "<string>",
"queued_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
},
"data": {
"name": "<string>",
"domain": "<string>",
"linkedin_url": "<string>",
"linkedin_id": "<string>",
"linkedin_followers": 123,
"employee_count": 123,
"employee_range": "<string>",
"primary_industry": "<string>",
"organization_type": "<string>",
"year_founded": 123,
"about": "<string>",
"slogan": "<string>",
"headquarters": {
"city": "<string>",
"country": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"redirect": {
"from": "<string>",
"to": "<string>",
"confirmed": true
}
},
"error": {
"message": "<string>"
}
}"Unauthorized"{
"error": "<string>"
}{
"error": "<string>",
"code": "queue_full",
"queuedTasks": 123
}Tasks
Check on a task
Returns the task, plus data once it has succeeded or error once
it has failed. A task belonging to another organization returns
404, indistinguishable from one that doesn’t exist.
GET
/
v1
/
tasks
/
{id}
Check on a task
curl --request GET \
--url https://api.enrichloop.com/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enrichloop.com/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enrichloop.com/v1/tasks/{id}', 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.enrichloop.com/v1/tasks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.enrichloop.com/v1/tasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enrichloop.com/v1/tasks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enrichloop.com/v1/tasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"task": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object_type": "company",
"operation": "enrich",
"target": "<string>",
"credits_charged": 123,
"created_at": "2023-11-07T05:31:56Z",
"input": {},
"loop_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotency_key": "<string>",
"queued_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
},
"data": {
"name": "<string>",
"domain": "<string>",
"linkedin_url": "<string>",
"linkedin_id": "<string>",
"linkedin_followers": 123,
"employee_count": 123,
"employee_range": "<string>",
"primary_industry": "<string>",
"organization_type": "<string>",
"year_founded": 123,
"about": "<string>",
"slogan": "<string>",
"headquarters": {
"city": "<string>",
"country": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"redirect": {
"from": "<string>",
"to": "<string>",
"confirmed": true
}
},
"error": {
"message": "<string>"
}
}"Unauthorized"{
"error": "<string>"
}{
"error": "<string>",
"code": "queue_full",
"queuedTasks": 123
}Authorizations
Pass your API key as a bearer token: Authorization: Bearer YOUR_API_KEY. Generate and manage keys from your dashboard under
Settings → API Keys.
Path Parameters
Response
The task. While status is queued or running, a
Retry-After: 2 header is included as a polling hint.
input and target are dropped in future revisions to a single
field; today target is the normalized domain or LinkedIn URL the
task resolved to.
Show child attributes
Show child attributes
Present as data once a task's status is "succeeded".
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I