Get current agent state
Agents
Get current agent state
Returns 404 if no agent has been initialized for this deal.
GET
Get current agent state
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
CRM deal ID (HubSpot/Salesforce object ID).
Required string length:
1 - 64Response
Current agent state.
Polymorphic agent-state envelope. Required fields: deal_id + status.
Other fields' presence depends on status:
active— agent_id, created_at, last_synced_at populatedinitializing— job_id, progress_stream_url populated; agent_id may be stale or nullprovisioning_failed— job_id, failed_at, error, retry_with populated; agent_id null
active — agent is provisioned and ready.
initializing — async provisioning worker is in flight; poll until it flips.
provisioning_failed — most recent provisioning run failed; PUT again to retry.
Available options:
active, initializing, provisioning_failed