Initialize the deal agent (async)
Spawns the provisioning worker asynchronously and returns 202 immediately.
Poll GET /deals//agent until status flips from initializing
to active (success) or provisioning_failed (retry). Worker typically
completes in 3–8 minutes.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
CRM deal ID (HubSpot/Salesforce object ID).
1 - 64Body
Currently no body fields are honored. Reserved for v2.
Response
Provisioning started.
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.
active, initializing, provisioning_failed