Websites API
Create and manage websites for visitor identification and tracking.
Required Headers
| Header | Description |
|---|---|
x-access-key | Your Warm AI API key |
x-user-id | Your Warm AI user ID |
x-idempotency-key | Unique key to prevent duplicate requests |
Content-Type | application/json |
Recommended: Link ICPs to Your Website
For better prospect matching and visitor scoring, link your Ideal Customer Profiles (ICPs) to your website when creating it. This ensures visitors are automatically scored against your target profiles.
{
"action": "create_website",
"domain": "example.com",
"name": "My Website",
"icp_ids": ["icp_abc123", "icp_def456"]
}Installing the Tracking Script
After creating a website, add the following script to the <head> tag of your site:
<script src="https://cdn.warmai.uk/warm.js" data-id="YOUR_TRACKING_ID" async></script>Replace YOUR_TRACKING_ID with the tracking_id returned when you create a website.
Endpoints
Create Website
POST https://api.warmai.uk/api-website-action
Creates a new website for visitor identification.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Must be "create_website" |
domain | string | Yes | The domain of your website (e.g. example.com) |
name | string | No | A display name for the website |
icp_ids | string[] | No | Array of ICP IDs to link for visitor scoring |
Example Request
{
"action": "create_website",
"domain": "example.com",
"name": "My Marketing Site",
"icp_ids": ["icp_abc123"]
}Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique website ID |
domain | string | The website domain |
name | string | Display name |
tracking_id | string | ID used in the tracking script |
status | string | Website status |
created_at | string | ISO 8601 timestamp |
linked_icp_ids | string[] | ICP IDs linked to this website |
Example Response
{
"id": "ws_a1b2c3d4",
"domain": "example.com",
"name": "My Marketing Site",
"tracking_id": "trk_x9y8z7",
"status": "active",
"created_at": "2026-03-19T12:00:00Z",
"linked_icp_ids": ["icp_abc123"]
}List Websites
POST https://api.warmai.uk/api-website-action
Retrieve all websites associated with your account.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Must be "list_websites" |
user_id | string | No | Filter websites by a specific user ID |
Example Request
{
"action": "list_websites"
}Response Fields
| Field | Type | Description |
|---|---|---|
websites | array | List of website objects |
websites[].id | string | Unique website ID |
websites[].domain | string | The website domain |
websites[].name | string | Display name |
websites[].tracking_script_id | string | ID used in the tracking script |
websites[].status | string | Website status (active, paused, archived) |
websites[].created_at | string | ISO 8601 timestamp |
websites[].linked_icp_ids | string[] | ICP IDs linked to this website |
Example Response
{
"websites": [
{
"id": "ws_a1b2c3d4",
"domain": "example.com",
"name": "My Marketing Site",
"tracking_script_id": "trk_x9y8z7",
"status": "active",
"created_at": "2026-03-19T12:00:00Z",
"linked_icp_ids": ["icp_abc123"]
},
{
"id": "ws_e5f6g7h8",
"domain": "blog.example.com",
"name": "Company Blog",
"tracking_script_id": "trk_w6v5u4",
"status": "active",
"created_at": "2026-03-18T09:30:00Z",
"linked_icp_ids": []
}
]
}Last updated on