Create ICP
ICPs
Create ICP
Creates a new Ideal Customer Profile (ICP) for lead targeting
POST
Create ICP
Creates a new ICP (Ideal Customer Profile) with the specified targeting criteria. The authenticated user is automatically added to the ICP’s
userIds array, granting them access to the newly created ICP.
Authentication
This endpoint requires authentication. The user must be signed in to create an ICP.The creating user is automatically added to the
userIds array even if not
explicitly included in the request body.Request
The name of the ICP. Should be descriptive of the target audience.
An optional description providing more context about the ICP’s purpose and
target criteria.
Array of lead provider search criteria. At least one criteria should be provided to enable lead sourcing.
Array of custom filters to apply after lead provider search. Can be empty array
[] if no custom filters are needed.Optional CRM integration filters for sourcing leads from connected CRM systems. This field is both optional and nullable.
Array of Clerk user IDs that should have access to this ICP. The creating user
is automatically included.
Number of leads to include per generated lead list.
ISO 8601 timestamp indicating when the ICP should expire. Set to
null for no
expiration.Response
Returns the created ICP object.The generated UUID for the new ICP.
The name of the ICP.
The description of the ICP.
ISO 8601 timestamp of when the ICP was created.
ISO 8601 timestamp of when the ICP was last updated (same as createdAt for new
ICPs).
The lead provider search criteria as provided in the request.
The custom filter criteria as provided in the request.
The CRM filters as provided in the request. This field is both optional and nullable.
Array of user IDs with access, including the creating user.
Number of leads per list.
Expiration timestamp or
null.Request Examples
Response Examples
Error Codes
| Status Code | Error Code | Description |
|---|---|---|
| 400 | BAD_REQUEST | Invalid request body. Check the details field for specific validation errors. |
| 401 | UNAUTHORIZED | User is not authenticated. Ensure a valid session exists. |
| 500 | INTERNAL_ERROR | An unexpected server error occurred. |