Analyze a website into ICPs
curl --request POST \
--url https://app.loice.ai/api/v1/icp/analyses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://loice.ai"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://loice.ai'})
};
fetch('https://app.loice.ai/api/v1/icp/analyses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://app.loice.ai/api/v1/icp/analyses';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://loice.ai'})
};
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/analyses"
payload = { "url": "https://loice.ai" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"analysis": {
"id": "cmh0a1",
"status": "queued",
"outcome": null,
"reason": null,
"inputUrl": "loice.ai",
"siteLabel": "loice.ai",
"stages": {
"read": "queued",
"products": "queued",
"profiles": "queued"
},
"pagesRead": 0,
"profilesDrafted": 0,
"fromCache": false,
"site": null,
"profiles": [],
"generationId": null,
"createdAt": "2026-11-10T09:00:00.000Z",
"updatedAt": "2026-11-10T09:00:00.000Z"
}
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}API Reference
Analyze a website into ICPs
Starts an ICP Builder analysis: reads the website and drafts up to 6 ideal-customer profiles. Answers at once with the analysis queued (it takes minutes) — poll GET /api/v1/icp/analyses/{analysisId} until outcome is set. When no model is configured it answers failed with reason unconfigured and queues nothing. Each workspace may start 10 analyses an hour. 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.
POST
/
api
/
v1
/
icp
/
analyses
Analyze a website into ICPs
curl --request POST \
--url https://app.loice.ai/api/v1/icp/analyses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://loice.ai"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://loice.ai'})
};
fetch('https://app.loice.ai/api/v1/icp/analyses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://app.loice.ai/api/v1/icp/analyses';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://loice.ai'})
};
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/analyses"
payload = { "url": "https://loice.ai" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"analysis": {
"id": "cmh0a1",
"status": "queued",
"outcome": null,
"reason": null,
"inputUrl": "loice.ai",
"siteLabel": "loice.ai",
"stages": {
"read": "queued",
"products": "queued",
"profiles": "queued"
},
"pagesRead": 0,
"profilesDrafted": 0,
"fromCache": false,
"site": null,
"profiles": [],
"generationId": null,
"createdAt": "2026-11-10T09:00:00.000Z",
"updatedAt": "2026-11-10T09:00:00.000Z"
}
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}
