Skip to main content
POST
Reject an AI Sales Agent activity

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

AI Sales Agent ID

Example:

"01a0206f-ed79-7a09-a183-0fcd01a62cde"

activity_id
string<uuid>
required

Activity ID

Example:

"01a0206f-ed79-7a09-a183-0fce9fe940ed"

Body

application/json
rejection_reason
string
required

Reason for rejecting the activity

Example:

"Not aligned with current strategy"

Response

The rejected activity

An activity performed by an AI Sales Agent

id
string<uuid>
required
read-only

Unique identifier for the activity

Example:

"01a0206f-abf8-7e36-bcc9-d99585dce0a4"

ai_sdr_id
string<uuid>
required
read-only

ID of the AI Sales Agent that performed this activity

Example:

"01a0206f-abf8-7e36-bcc9-d997e8386767"

workspace_id
string<uuid>
required
read-only

Workspace ID that owns this activity

Example:

"01a0206f-abf8-7e36-bcc9-d9996cdd9ec4"

action_type
enum<string>
required
read-only

Type of action performed

Available options:
create_campaign,
edit_campaign,
stop_campaign,
pause_campaign,
enrich_leads,
push_lead,
recommend_lead,
warning,
initial_setup_scrape,
initial_setup_campaigns,
initial_setup_enrich,
email_sent,
lead_meeting_booked,
lead_closed,
email_opened,
reply_received,
opportunity_received,
campaign_completed,
imported_leads
Example:

"create_campaign"

action_status
enum<string>
required

Status of the activity

Available options:
pending,
approved,
rejected,
in_progress,
completed,
failed
Example:

"pending"

timestamp_created
string<date-time>
required
read-only

Timestamp when the activity was created

Example:

"2026-08-20T18:29:44.568Z"

timestamp_updated
string<date-time>
required
read-only

Timestamp when the activity was last updated

Example:

"2026-08-20T18:29:44.568Z"

action_payload
object
read-only

Payload data for the activity action

action_output
object
read-only

Output data for frontend display (e.g., lead_email, campaign_name, etc.)

email_id
null | string<uuid>
read-only
Example:

"01a0206f-abf8-7e36-bcc9-d99a91a5dec5"

approved_by
null | string<uuid>
read-only

User ID who approved this activity

Example:

"01a0206f-abf8-7e36-bcc9-d99c48c6f905"

approved_at
null | string<date-time>
read-only

Timestamp when the activity was approved

Example:

"2026-08-20T18:29:44.568Z"

rejected_by
null | string<uuid>
read-only

User ID who rejected this activity

Example:

"01a0206f-abf8-7e36-bcc9-d99ed0949877"

rejected_at
null | string<date-time>
read-only

Timestamp when the activity was rejected

Example:

"2026-08-20T18:29:44.568Z"

rejection_reason
null | string
read-only

Reason for rejecting the activity

Example:

"Not aligned with current strategy"

ai_reasoning
null | string
read-only

AI reasoning for this activity

Example:

"This lead matches the ICP criteria and has shown interest"

ai_confidence
null | number
read-only

AI confidence score for this activity (0-1)

Example:

0.85

result
object
read-only

Result data from executing the activity

error_message
null | string
read-only

Error message if the activity failed

Example:

"Failed to create campaign: Invalid email list"

error_code
enum<string>
read-only

Stable error category if the activity failed

Available options:
insufficient_credits,
insufficient_upload_limit,
no_leads_with_email,
scrape_site_not_supported,
campaign_operation_failed,
lead_move_failed,
enrichment_failed,
configuration_error,
master_list_missing,
temporary_failure,
prospecting_incomplete,
internal_error
Example:

"insufficient_credits"

timestamp_executed
null | string<date-time>
read-only

Timestamp when the activity was executed

Example:

"2026-08-20T18:29:44.568Z"

timestamp_completed
null | string<date-time>
read-only

Timestamp when the activity was completed

Example:

"2026-08-20T18:29:44.568Z"