API Reference
Copy leads between audiences
The path audienceId is the source and body.targetAudienceId is the target. Adds selected source memberships to the target without removing them from the source. body.leadIds must be prospect IDs returned by the source audience's prospect-list route. IDs absent from the source or already present in the target are no-ops and are not included in copiedCount.
/v1/accounts/{accountGroupId}/audiences/{audienceId}/copy-leadsIntegration notes
Required API permission
audiences:write.
Prerequisites
integration_api_key, account_group_access.
Idempotency
not supported; check the current resource state before retrying this request.
Parameters
accountGroupIdPathType: string
Account group ID that scopes the request.
Required
audienceIdPathType: string
Audience ID that identifies the list or folder target.
Required
Request body
Required
Optional
Content types
application/json
Schema
object
Fields
targetAudienceIdType: string
Audience ID that receives the selected leads.
Required
leadIdsType: array<string>
Lead IDs to include in the requested operation.
Required
Responses
Leads copied
Schema: AudienceLeadCopySuccessResponse
Request validation failed
Schema: ValidationErrorResponse
Invalid or missing API key
Schema: ErrorResponse
Missing required permission
Schema: ErrorResponse
Resource not found
Schema: ErrorResponse
One of the audiences is still being populated by an active prospecting job
Schema: ErrorResponse
Source and target audiences must be different
Schema: ErrorResponse
Rate limit exceeded
Schema: ErrorResponse
Internal server error
Schema: ErrorResponse
Response examples
200 Example JSONAudienceLeadCopySuccessResponse
{
"success": true,
"data": {
"sourceAudience": {
"id": "507f1f77bcf86cd799439011",
"name": "Avery Stone",
"type": "linkedin_search",
"description": "string",
"folderId": "507f1f77bcf86cd799439011",
"position": 25,
"prospectCount": 25,
"createdAt": "string",
"updatedAt": "string"
},
"targetAudience": {
"id": "507f1f77bcf86cd799439011",
"name": "Avery Stone",
"type": "linkedin_search",
"description": "string",
"folderId": "507f1f77bcf86cd799439011",
"position": 25,
"prospectCount": 25,
"createdAt": "string",
"updatedAt": "string"
},
"copiedCount": 25
},
"error": null,
"traceId": "507f1f77bcf86cd799439011"
}400 Example JSONValidationErrorResponse
{
"success": false,
"data": null,
"error": {
"code": "VALIDATION_ERROR",
"message": "Thanks for the context. I can send over details this afternoon.",
"details": "string"
},
"traceId": "507f1f77bcf86cd799439011"
}401 Example JSONErrorResponse
{
"success": false,
"data": null,
"error": {
"code": "string",
"message": "Thanks for the context. I can send over details this afternoon.",
"details": "string"
},
"traceId": "507f1f77bcf86cd799439011"
}403 Example JSONErrorResponse
{
"success": false,
"data": null,
"error": {
"code": "string",
"message": "Thanks for the context. I can send over details this afternoon.",
"details": "string"
},
"traceId": "507f1f77bcf86cd799439011"
}404 Example JSONErrorResponse
{
"success": false,
"data": null,
"error": {
"code": "string",
"message": "Thanks for the context. I can send over details this afternoon.",
"details": "string"
},
"traceId": "507f1f77bcf86cd799439011"
}409 Example JSONErrorResponse
{
"success": false,
"data": null,
"error": {
"code": "string",
"message": "Thanks for the context. I can send over details this afternoon.",
"details": "string"
},
"traceId": "507f1f77bcf86cd799439011"
}422 Example JSONErrorResponse
{
"success": false,
"data": null,
"error": {
"code": "string",
"message": "Thanks for the context. I can send over details this afternoon.",
"details": "string"
},
"traceId": "507f1f77bcf86cd799439011"
}429 Example JSONErrorResponse
{
"success": false,
"data": null,
"error": {
"code": "string",
"message": "Thanks for the context. I can send over details this afternoon.",
"details": "string"
},
"traceId": "507f1f77bcf86cd799439011"
}500 Example JSONErrorResponse
{
"success": false,
"data": null,
"error": {
"code": "string",
"message": "Thanks for the context. I can send over details this afternoon.",
"details": "string"
},
"traceId": "507f1f77bcf86cd799439011"
}