Read an ICP list generation
curl --request GET \
--url https://app.loice.ai/api/v1/icp/generations/{generationId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.loice.ai/api/v1/icp/generations/{generationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://app.loice.ai/api/v1/icp/generations/{generationId}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://app.loice.ai/api/v1/icp/generations/{generationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"generation": {
"id": "cmh0g1",
"analysisId": "cmh0a1",
"status": "queued",
"reason": null,
"includeEmails": false,
"estimatePoints": 1200,
"spentPoints": 0,
"siteLabel": "loice.ai",
"lists": [
{
"id": "cmh0l1",
"name": "Outbound sales teams",
"description": "SDR managers at B2B SaaS companies",
"wanted": 1200,
"phase": "pending",
"reason": null,
"addedCount": 0,
"revealedCount": 0,
"pointsSpent": 0,
"listId": "cmh0ll1"
}
]
}
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}API Reference
Read an ICP list generation
Progress of a generation: per list its phase, the leads added, emails found, points spent and the lead list’s id, and spentPoints across them. The same contract as the web app’s ICP Builder (an API key instead of a session).
Billing
Free — this endpoint does not consume points.
GET
/
api
/
v1
/
icp
/
generations
/
{generationId}
Read an ICP list generation
curl --request GET \
--url https://app.loice.ai/api/v1/icp/generations/{generationId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.loice.ai/api/v1/icp/generations/{generationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://app.loice.ai/api/v1/icp/generations/{generationId}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://app.loice.ai/api/v1/icp/generations/{generationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"generation": {
"id": "cmh0g1",
"analysisId": "cmh0a1",
"status": "queued",
"reason": null,
"includeEmails": false,
"estimatePoints": 1200,
"spentPoints": 0,
"siteLabel": "loice.ai",
"lists": [
{
"id": "cmh0l1",
"name": "Outbound sales teams",
"description": "SDR managers at B2B SaaS companies",
"wanted": 1200,
"phase": "pending",
"reason": null,
"addedCount": 0,
"revealedCount": 0,
"pointsSpent": 0,
"listId": "cmh0ll1"
}
]
}
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}
