{"openapi":"3.1.0","info":{"title":"SimpL Agent API","description":"Agent-first public API. You approve LinkedIn drafts; the human's Chrome extension executes. See GET /.well-known/simpl-agent.json.","version":"1"},"paths":{"/api/agent/v1/access-requests":{"post":{"tags":["agent-api"],"summary":"Create Access Request","operationId":"create_access_request_api_agent_v1_access_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRequestCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRequestCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/access-requests/{request_id}":{"get":{"tags":["agent-api"],"summary":"Get Access Request","operationId":"get_access_request_api_agent_v1_access_requests__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRequestStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/access-requests/{request_id}/claim":{"post":{"tags":["agent-api"],"summary":"Claim Access Request","operationId":"claim_access_request_api_agent_v1_access_requests__request_id__claim_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRequestClaim"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRequestClaimed"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/oauth/device":{"post":{"tags":["agent-api"],"summary":"Oauth Device Start","operationId":"oauth_device_start_api_agent_v1_oauth_device_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDeviceStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDeviceStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/oauth/device/token":{"post":{"tags":["agent-api"],"summary":"Oauth Device Token","operationId":"oauth_device_token_api_agent_v1_oauth_device_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDeviceTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDeviceTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/oauth/device/session":{"get":{"tags":["agent-api"],"summary":"Oauth Device Session","description":"Public lookup for the consent UI (no secrets).","operationId":"oauth_device_session_api_agent_v1_oauth_device_session_get","parameters":[{"name":"user_code","in":"query","required":true,"schema":{"type":"string","minLength":4,"maxLength":32,"title":"User Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDeviceSessionPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/oauth/device/approve":{"post":{"tags":["agent-api"],"summary":"Oauth Device Approve","operationId":"oauth_device_approve_api_agent_v1_oauth_device_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDeviceUserCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDeviceApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/oauth/device/deny":{"post":{"tags":["agent-api"],"summary":"Oauth Device Deny","operationId":"oauth_device_deny_api_agent_v1_oauth_device_deny_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDeviceUserCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDeviceDenyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/.well-known/simpl-agent.json":{"get":{"tags":["agent-api"],"summary":"Well Known Manifest","operationId":"well_known_manifest_api_agent_v1__well_known_simpl_agent_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Well Known Manifest Api Agent V1  Well Known Simpl Agent Json Get"}}}}}}},"/api/agent/v1/me":{"get":{"tags":["agent-api"],"summary":"Me","operationId":"me_api_agent_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/readiness":{"get":{"tags":["agent-api"],"summary":"Readiness","operationId":"readiness_api_agent_v1_readiness_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"wait_seconds","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":0,"description":"Long-poll: hold the request until the account becomes ready or this many seconds elapse. One call instead of a polling loop; re-issue if still not ready.","default":0,"title":"Wait Seconds"},"description":"Long-poll: hold the request until the account becomes ready or this many seconds elapse. One call instead of a polling loop; re-issue if still not ready."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadinessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/icp/preview":{"post":{"tags":["agent-api"],"summary":"Icp Preview","operationId":"icp_preview_api_agent_v1_icp_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcpPreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcpPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/icp":{"post":{"tags":["agent-api"],"summary":"Icp Create","operationId":"icp_create_api_agent_v1_icp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcpCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcpCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/icp/{icp_id}":{"patch":{"tags":["agent-api"],"summary":"Icp Update","operationId":"icp_update_api_agent_v1_icp__icp_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"icp_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Icp Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcpUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcpCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/board":{"get":{"tags":["agent-api"],"summary":"Board","description":"Day overview: totals and readiness/limits without item bodies.","operationId":"board_api_agent_v1_board_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/opportunities/refresh":{"post":{"tags":["agent-api"],"summary":"Opportunities Refresh","operationId":"opportunities_refresh_api_agent_v1_opportunities_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Opportunities Refresh Api Agent V1 Opportunities Refresh Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/opportunities":{"get":{"tags":["agent-api"],"summary":"Opportunities List","operationId":"opportunities_list_api_agent_v1_opportunities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"row_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["top_company","pending_action","monitored_signals"],"type":"string"},{"type":"null"}],"description":"Filter to one board row type. summary still covers the full board.","title":"Row Type"},"description":"Filter to one board row type. summary still covers the full board."},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter action_channel (e.g. linkedin_message, email, linkedin_connect).","title":"Channel"},"description":"Filter action_channel (e.g. linkedin_message, email, linkedin_connect)."},{"name":"message_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter message_type (e.g. response, first_touch, follow_up, follow_on).","title":"Message Type"},"description":"Filter message_type (e.g. response, first_touch, follow_up, follow_on)."},{"name":"newer_than_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":3650,"minimum":1},{"type":"null"}],"description":"Only rows with action_scheduled_at within the last N days.","title":"Newer Than Days"},"description":"Only rows with action_scheduled_at within the last N days."},{"name":"include_summary","in":"query","required":false,"schema":{"type":"boolean","description":"Set false on follow-up pages — the board aggregate is the slow part.","default":true,"title":"Include Summary"},"description":"Set false on follow-up pages — the board aggregate is the slow part."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/opportunities/{company_id}/claim":{"post":{"tags":["agent-api"],"summary":"Opportunity Claim","operationId":"opportunity_claim_api_agent_v1_opportunities__company_id__claim_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpportunityTriageRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityTriageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/opportunities/{company_id}/monitor":{"post":{"tags":["agent-api"],"summary":"Opportunity Monitor","operationId":"opportunity_monitor_api_agent_v1_opportunities__company_id__monitor_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpportunityTriageRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityTriageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/opportunities/{company_id}/not-in-target":{"post":{"tags":["agent-api"],"summary":"Opportunity Not In Target","operationId":"opportunity_not_in_target_api_agent_v1_opportunities__company_id__not_in_target_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OpportunityTriageRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityTriageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/drafts":{"get":{"tags":["agent-api"],"summary":"Drafts List","operationId":"drafts_list_api_agent_v1_drafts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"include_payload","in":"query","required":false,"schema":{"type":"boolean","description":"When true, include a lean payload (message/subject/metadata). Writer prompts are never returned. Prefer message_preview + GET /drafts/{id}.","default":false,"title":"Include Payload"},"description":"When true, include a lean payload (message/subject/metadata). Writer prompts are never returned. Prefer message_preview + GET /drafts/{id}."},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter channel (linkedin_message, email, linkedin_connect, …).","title":"Channel"},"description":"Filter channel (linkedin_message, email, linkedin_connect, …)."},{"name":"message_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter message_type (response, first_touch, follow_up, follow_on).","title":"Message Type"},"description":"Filter message_type (response, first_touch, follow_up, follow_on)."},{"name":"newer_than_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":3650,"minimum":1},{"type":"null"}],"description":"Only drafts created within the last N days.","title":"Newer Than Days"},"description":"Only drafts created within the last N days."},{"name":"older_than_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":3650,"minimum":1},{"type":"null"}],"description":"Only drafts created more than N days ago (cleanup / stale review).","title":"Older Than Days"},"description":"Only drafts created more than N days ago (cleanup / stale review)."},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","oldest","scheduled"],"type":"string","description":"newest=created_at desc, oldest=created_at asc, scheduled=scheduled_at asc.","default":"newest","title":"Sort"},"description":"newest=created_at desc, oldest=created_at asc, scheduled=scheduled_at asc."},{"name":"include_summary","in":"query","required":false,"schema":{"type":"boolean","description":"Set false on follow-up pages — the queue aggregate does not change.","default":true,"title":"Include Summary"},"description":"Set false on follow-up pages — the queue aggregate does not change."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/drafts/bulk-approve":{"post":{"tags":["agent-api"],"summary":"Drafts Bulk Approve","description":"Queue up to 200 drafts in one call. Idempotent: only PENDING_APPROVAL rows move.","operationId":"drafts_bulk_approve_api_agent_v1_drafts_bulk_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftBulkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/drafts/bulk-reject":{"post":{"tags":["agent-api"],"summary":"Drafts Bulk Reject","description":"Cancel up to 200 stale drafts in one call (e.g. older_than_days=30).","operationId":"drafts_bulk_reject_api_agent_v1_drafts_bulk_reject_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftBulkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/drafts/{journey_log_id}":{"get":{"tags":["agent-api"],"summary":"Draft Get","description":"One PENDING_APPROVAL draft with lean payload (message/subject) for review.","operationId":"draft_get_api_agent_v1_drafts__journey_log_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Journey Log Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Draft Get Api Agent V1 Drafts  Journey Log Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agent-api"],"summary":"Draft Update","description":"Edit the message (and optional subject) of a PENDING_APPROVAL draft.","operationId":"draft_update_api_agent_v1_drafts__journey_log_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Journey Log Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/drafts/{journey_log_id}/regenerate":{"post":{"tags":["agent-api"],"summary":"Draft Regenerate","description":"Queue a regenerate of a PENDING_APPROVAL draft (the in-app Regenerate).\n\nThe outreach worker rewrites it; until the job settles the draft accepts no\napprove, edit or reject (409 ``regenerate_in_progress``).","operationId":"draft_regenerate_api_agent_v1_drafts__journey_log_id__regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Journey Log Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DraftRegenerateRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRegenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/drafts/regenerate-jobs/{trigger_id}":{"get":{"tags":["agent-api"],"summary":"Draft Regenerate Job","description":"Where a regenerate job stands (queued, running, rewritten, replaced, ...).","operationId":"draft_regenerate_job_api_agent_v1_drafts_regenerate_jobs__trigger_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trigger Id"}},{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRegenerateJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/drafts/{journey_log_id}/approve":{"post":{"tags":["agent-api"],"summary":"Draft Approve","operationId":"draft_approve_api_agent_v1_drafts__journey_log_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Journey Log Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/drafts/{journey_log_id}/reject":{"post":{"tags":["agent-api"],"summary":"Draft Reject","operationId":"draft_reject_api_agent_v1_drafts__journey_log_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"journey_log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Journey Log Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/activity":{"get":{"tags":["agent-api"],"summary":"Activity","operationId":"activity_api_agent_v1_activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"include_payload","in":"query","required":false,"schema":{"type":"boolean","description":"When true, include lean payload (message/subject). Default is preview only.","default":false,"title":"Include Payload"},"description":"When true, include lean payload (message/subject). Default is preview only."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by journey status (PENDING, RUNNING, COMPLETED, FAILED, CANCELLED).","title":"Status"},"description":"Filter by journey status (PENDING, RUNNING, COMPLETED, FAILED, CANCELLED)."},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"message_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Type"}},{"name":"include_summary","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Summary"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/keys":{"get":{"tags":["agent-api"],"summary":"List Keys For Human","operationId":"list_keys_for_human_api_agent_v1_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["agent-api"],"summary":"Create Key For Human","description":"Mint a scoped Agent API key for the logged-in sales user (shown once).","operationId":"create_key_for_human_api_agent_v1_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/agent/v1/keys/{key_id}/revoke":{"post":{"tags":["agent-api"],"summary":"Revoke Key For Human","operationId":"revoke_key_for_human_api_agent_v1_keys__key_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyRevokeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccessRequestClaim":{"properties":{"claim_token":{"type":"string","minLength":16,"title":"Claim Token"}},"type":"object","required":["claim_token"],"title":"AccessRequestClaim"},"AccessRequestClaimed":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"api_key":{"type":"string","title":"Api Key"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"human_setup_url":{"type":"string","title":"Human Setup Url"},"chrome_store_url":{"type":"string","title":"Chrome Store Url"}},"type":"object","required":["request_id","api_key","key_prefix","scopes","user_id","customer_id","human_setup_url","chrome_store_url"],"title":"AccessRequestClaimed"},"AccessRequestCreate":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"full_name":{"type":"string","maxLength":200,"minLength":1,"title":"Full Name"},"job_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Job Title"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"spoken_languages":{"items":{"type":"string"},"type":"array","title":"Spoken Languages"},"company_name":{"type":"string","maxLength":300,"minLength":1,"title":"Company Name"},"company_website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Website"},"company_linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Linkedin Url"},"product_offer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Offer","description":"What the company sells and the core value proposition."},"value_proposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Proposition"},"icp_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icp Title"},"icp_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icp Brief","description":"Plain-language ICP description (buyer archetypes, not event vendors)."},"industries":{"items":{"type":"string"},"type":"array","title":"Industries","description":"Target industries / verticals (names the agent collected from the human)."},"geographies":{"items":{"type":"string"},"type":"array","title":"Geographies","description":"Target geos (cities, regions, countries, or macros like Benelux)."},"size_min":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size Min","description":"Company headcount lower bound."},"size_max":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size Max","description":"Company headcount upper bound."},"target_roles":{"items":{"type":"string"},"type":"array","title":"Target Roles","description":"Buyer / decision-maker titles (e.g. Head of HR, COO)."},"signals":{"items":{"type":"string"},"type":"array","title":"Signals","description":"Buying signals to watch (hiring, funding, tech stack, etc.)."},"decision_maker_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Maker Guidance","description":"Who to contact and how to qualify fit."},"example_outreach_messages":{"items":{"type":"string"},"type":"array","title":"Example Outreach Messages","description":"Real outreach messages the human already sends (ground voice)."},"outreach_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outreach Context","description":"Extra context about how they sell today (channels, tone, CTA)."},"extra_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Context"},"questionnaire":{"additionalProperties":true,"type":"object","title":"Questionnaire","description":"Optional freeform extras merged into onboarding questionnaire."},"agent_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Label","description":"Optional label for the API key (e.g. the calling harness name)."},"agent_metadata":{"additionalProperties":true,"type":"object","title":"Agent Metadata"}},"type":"object","required":["email","full_name","company_name"],"title":"AccessRequestCreate","description":"Full agent-collected onboarding packet (mirrors wizard context + ICP seed)."},"AccessRequestCreated":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"status":{"type":"string","const":"pending_review","title":"Status","default":"pending_review"},"expected_ready_in_seconds":{"type":"integer","title":"Expected Ready In Seconds"},"poll_after_seconds":{"type":"integer","title":"Poll After Seconds"},"human_setup_url":{"type":"string","title":"Human Setup Url"},"chrome_store_url":{"type":"string","title":"Chrome Store Url"},"invite_email_sent":{"type":"boolean","title":"Invite Email Sent"}},"type":"object","required":["request_id","expected_ready_in_seconds","poll_after_seconds","human_setup_url","chrome_store_url","invite_email_sent"],"title":"AccessRequestCreated"},"AccessRequestStatus":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"status":{"type":"string","enum":["pending_review","approved","claimed","rejected","expired"],"title":"Status"},"expected_ready_in_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Ready In Seconds"},"poll_after_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Poll After Seconds"},"human_setup_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Human Setup Url"},"chrome_store_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chrome Store Url"},"claim_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Token"},"claim_token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Claim Token Expires At"}},"type":"object","required":["request_id","status"],"title":"AccessRequestStatus"},"ActivityResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"returned":{"type":"integer","title":"Returned"},"count":{"type":"integer","title":"Count","description":"Alias of returned (page size). Do not treat as corpus size."},"total":{"type":"integer","title":"Total","description":"Full matching corpus size."},"has_more":{"type":"boolean","title":"Has More"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"}},"type":"object","required":["items","limit","offset","returned","count","total","has_more"],"title":"ActivityResponse"},"ApiKeyCreateRequest":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label","default":"My agent"}},"type":"object","title":"ApiKeyCreateRequest"},"ApiKeyCreatedResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"api_key":{"type":"string","title":"Api Key"},"key_prefix":{"type":"string","title":"Key Prefix"},"label":{"type":"string","title":"Label"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"agent_instructions":{"type":"string","title":"Agent Instructions","default":"Store api_key now — it is shown once. Give it only to an agent you trust. Revoke anytime in Settings → Integrations."}},"type":"object","required":["id","api_key","key_prefix","label","scopes","created_at"],"title":"ApiKeyCreatedResponse"},"ApiKeyListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key_prefix":{"type":"string","title":"Key Prefix"},"label":{"type":"string","title":"Label"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"created_via":{"type":"string","title":"Created Via"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","key_prefix","label","scopes","created_via","last_used_at","expires_at","revoked_at","created_at"],"title":"ApiKeyListItem"},"ApiKeyListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ApiKeyListItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ApiKeyListResponse"},"ApiKeyRevokeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["id","revoked"],"title":"ApiKeyRevokeResponse"},"BoardResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"ready":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ready"},"limits":{"additionalProperties":true,"type":"object","title":"Limits"},"blockers":{"items":{},"type":"array","title":"Blockers"},"opportunities":{"additionalProperties":true,"type":"object","title":"Opportunities"},"drafts":{"additionalProperties":true,"type":"object","title":"Drafts"},"activity":{"additionalProperties":true,"type":"object","title":"Activity"}},"type":"object","title":"BoardResponse","description":"Day overview without item bodies — call before paging list endpoints."},"DraftApproveResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"journey_log_id":{"type":"string","format":"uuid","title":"Journey Log Id"},"status":{"type":"string","title":"Status"},"queued":{"type":"boolean","title":"Queued"},"readiness":{"anyOf":[{"$ref":"#/components/schemas/ReadinessResponse"},{"type":"null"}]}},"type":"object","required":["journey_log_id","status","queued"],"title":"DraftApproveResponse"},"DraftBulkRequest":{"properties":{"journey_log_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Journey Log Ids","description":"Explicit drafts to act on. Combined with filters when both are set."},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel","description":"linkedin_message, email, linkedin_connect, …"},"message_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Type","description":"response, first_touch, follow_up, follow_on"},"newer_than_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Newer Than Days"},"older_than_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Older Than Days","description":"Typical stale-backlog cleanup: older_than_days=30 with bulk-reject."},"max_items":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Max Items","description":"Hard cap per call. Repeat the call to continue through a backlog.","default":50},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Recorded on rejected drafts as payload.agent_reject_reason."},"dry_run":{"type":"boolean","title":"Dry Run","description":"Count and sample the matching drafts without changing anything.","default":false}},"type":"object","title":"DraftBulkRequest","description":"Bounded bulk transition. Either explicit ids or at least one filter is required."},"DraftBulkResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"target_status":{"type":"string","enum":["PENDING","CANCELLED"],"title":"Target Status"},"dry_run":{"type":"boolean","title":"Dry Run"},"matched":{"type":"integer","title":"Matched","description":"Drafts matching the filter right now."},"affected":{"type":"integer","title":"Affected","description":"Drafts that reached target_status in this call."},"remaining_after_call":{"type":"integer","title":"Remaining After Call"},"max_items":{"type":"integer","title":"Max Items"},"journey_log_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Journey Log Ids"},"withheld":{"items":{"$ref":"#/components/schemas/DraftWithheld"},"type":"array","title":"Withheld","description":"Drafts approved in this call that the dispatch authority rule held for review or cancelled instead of queueing."},"regenerating":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Regenerating","description":"Matching drafts left alone because a regenerate is rewriting them; act on them once their regenerate job settles."},"approve_on_card":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Approve On Card","description":"Matching calendar invites left in PENDING_APPROVAL by bulk-approve: an invite is booked when the user approves it on its card in the app, and the Agent API does not queue invites."},"times_due":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Times Due","description":"Matching drafts left in PENDING_APPROVAL by bulk-approve because they propose a time already passed or less than 24 hours away: the user presses Update times on the card in the app, or edits the times, before they are approved."},"questions":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Questions","description":"Matching questions for the person (kind question), left as they are: the person answers them in SimpL; a bulk never approves or rejects one."},"readiness":{"anyOf":[{"$ref":"#/components/schemas/ReadinessResponse"},{"type":"null"}]}},"type":"object","required":["target_status","dry_run","matched","affected","remaining_after_call","max_items"],"title":"DraftBulkResponse"},"DraftListResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"returned":{"type":"integer","title":"Returned"},"count":{"type":"integer","title":"Count","description":"Alias of returned (page size). Do not treat as corpus size."},"total":{"type":"integer","title":"Total","description":"Full matching corpus size."},"has_more":{"type":"boolean","title":"Has More"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"}},"type":"object","required":["items","limit","offset","returned","count","total","has_more"],"title":"DraftListResponse"},"DraftRegenerateJobResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"status":{"type":"string","enum":["queued","running","kept","rewritten","replaced","review_request","no_result","failed","cancelled"],"title":"Status"},"trigger_id":{"type":"string","title":"Trigger Id"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"journey_log_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Journey Log Id","description":"The draft the regenerate was asked about."},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"requested_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested At"},"late":{"type":"boolean","title":"Late","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"version_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Index"},"new_journey_log_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Journey Log Id"},"new_journey_log_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Journey Log Status"},"send_recheck":{"type":"boolean","title":"Send Recheck","default":false},"journey_log_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Journey Log Status"}},"type":"object","required":["status","trigger_id"],"title":"DraftRegenerateJobResponse","description":"A regenerate job, the same shape the in-app card polls."},"DraftRegenerateRequest":{"properties":{"additional_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additional Prompt"}},"type":"object","title":"DraftRegenerateRequest","description":"The note for the rewrite. ``activate_new_version`` from older clients is ignored:\nthe new version is always activated."},"DraftRegenerateResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"journey_log_id":{"type":"string","format":"uuid","title":"Journey Log Id"},"status":{"type":"string","const":"queued","title":"Status","default":"queued"},"request_id":{"type":"string","title":"Request Id"},"trigger_id":{"type":"string","title":"Trigger Id"}},"type":"object","required":["journey_log_id","request_id","trigger_id"],"title":"DraftRegenerateResponse","description":"A queued regenerate (202). Poll ``GET /drafts/regenerate-jobs/{trigger_id}``."},"DraftUpdateRequest":{"properties":{"message":{"type":"string","minLength":1,"title":"Message","description":"Replacement message body for the active draft version."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"Optional subject (email channel)."}},"type":"object","required":["message"],"title":"DraftUpdateRequest"},"DraftUpdateResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"journey_log_id":{"type":"string","format":"uuid","title":"Journey Log Id"},"updated":{"type":"boolean","title":"Updated","default":true}},"type":"object","required":["journey_log_id"],"title":"DraftUpdateResponse"},"DraftWithheld":{"properties":{"journey_log_id":{"type":"string","format":"uuid","title":"Journey Log Id"},"status":{"type":"string","title":"Status","description":"PENDING_APPROVAL (back in review) or CANCELLED."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["journey_log_id","status"],"title":"DraftWithheld","description":"A draft this call approved that the team's responsibility settings did not queue."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IcpCreateRequest":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"},"description":{"type":"string","minLength":1,"title":"Description"},"size_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Min"},"size_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Max"},"search_keywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Search Keywords"}},"type":"object","required":["title","description"],"title":"IcpCreateRequest"},"IcpCreateResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"icp_id":{"type":"string","format":"uuid","title":"Icp Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"size_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Min"},"size_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Max"},"company_count":{"type":"integer","title":"Company Count"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["icp_id","title","description","size_min","size_max","company_count","created"],"title":"IcpCreateResponse"},"IcpPreviewRequest":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"},"description":{"type":"string","minLength":1,"title":"Description"},"size_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Min"},"size_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Max"},"search_keywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Search Keywords"}},"type":"object","required":["title","description"],"title":"IcpPreviewRequest"},"IcpPreviewResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"estimated_volume_note":{"type":"string","title":"Estimated Volume Note"},"next_step":{"type":"string","title":"Next Step"}},"type":"object","required":["title","description","estimated_volume_note","next_step"],"title":"IcpPreviewResponse"},"IcpUpdateRequest":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"},"description":{"type":"string","minLength":1,"title":"Description"},"size_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Min"},"size_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Max"}},"type":"object","required":["title","description"],"title":"IcpUpdateRequest"},"MeResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"readiness":{"$ref":"#/components/schemas/ReadinessResponse"}},"type":"object","required":["user_id","customer_id","scopes","readiness"],"title":"MeResponse"},"OAuthDeviceApproveResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"status":{"type":"string","const":"approved","title":"Status"},"user_code":{"type":"string","title":"User Code"},"client_name":{"type":"string","title":"Client Name"},"label":{"type":"string","title":"Label"}},"type":"object","required":["status","user_code","client_name","label"],"title":"OAuthDeviceApproveResponse"},"OAuthDeviceDenyResponse":{"properties":{"status":{"type":"string","const":"denied","title":"Status"},"user_code":{"type":"string","title":"User Code"}},"type":"object","required":["status","user_code"],"title":"OAuthDeviceDenyResponse"},"OAuthDeviceSessionPublic":{"properties":{"user_code":{"type":"string","title":"User Code"},"client_name":{"type":"string","title":"Client Name"},"label":{"type":"string","title":"Label"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"status":{"type":"string","enum":["pending","approved","denied","expired","consumed"],"title":"Status"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["user_code","client_name","label","scopes","status","expires_at"],"title":"OAuthDeviceSessionPublic"},"OAuthDeviceStartRequest":{"properties":{"client_name":{"type":"string","maxLength":120,"minLength":1,"title":"Client Name","default":"Agent"},"label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Label"}},"type":"object","title":"OAuthDeviceStartRequest"},"OAuthDeviceStartResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"device_code":{"type":"string","title":"Device Code"},"user_code":{"type":"string","title":"User Code"},"verification_uri":{"type":"string","title":"Verification Uri"},"verification_uri_complete":{"type":"string","title":"Verification Uri Complete"},"expires_in":{"type":"integer","title":"Expires In"},"poll_after_seconds":{"type":"integer","title":"Poll After Seconds"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["device_code","user_code","verification_uri","verification_uri_complete","expires_in","poll_after_seconds","scopes"],"title":"OAuthDeviceStartResponse"},"OAuthDeviceTokenRequest":{"properties":{"device_code":{"type":"string","minLength":16,"title":"Device Code"}},"type":"object","required":["device_code"],"title":"OAuthDeviceTokenRequest"},"OAuthDeviceTokenResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"token_type":{"type":"string","const":"bearer","title":"Token Type","default":"bearer"},"api_key":{"type":"string","title":"Api Key"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"label":{"type":"string","title":"Label"}},"type":"object","required":["api_key","key_prefix","scopes","user_id","customer_id","label"],"title":"OAuthDeviceTokenResponse"},"OAuthDeviceUserCodeRequest":{"properties":{"user_code":{"type":"string","maxLength":32,"minLength":4,"title":"User Code"}},"type":"object","required":["user_code"],"title":"OAuthDeviceUserCodeRequest"},"OpportunityListResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"returned":{"type":"integer","title":"Returned"},"count":{"type":"integer","title":"Count","description":"Alias of returned (page size). Do not treat as corpus size."},"total":{"type":"integer","title":"Total","description":"Full matching corpus size."},"has_more":{"type":"boolean","title":"Has More"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"}},"type":"object","required":["items","limit","offset","returned","count","total","has_more"],"title":"OpportunityListResponse"},"OpportunityTriageRequest":{"properties":{"lead_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Lead Ids"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"OpportunityTriageRequest"},"OpportunityTriageResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"company_id":{"type":"string","format":"uuid","title":"Company Id"},"action":{"type":"string","enum":["claim","monitor","not_in_target"],"title":"Action"},"updated_count":{"type":"integer","title":"Updated Count"}},"type":"object","required":["company_id","action","updated_count"],"title":"OpportunityTriageResponse"},"ReadinessBlocker":{"properties":{"code":{"type":"string","title":"Code"},"severity":{"type":"string","enum":["blocking","informational"],"title":"Severity"},"human_action_required":{"type":"boolean","title":"Human Action Required","default":false},"message_for_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message For User"},"action_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Url"},"chrome_store_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chrome Store Url"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["code","severity"],"title":"ReadinessBlocker"},"ReadinessResponse":{"properties":{"agent_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Instructions"},"ready":{"type":"boolean","title":"Ready"},"blockers":{"items":{"$ref":"#/components/schemas/ReadinessBlocker"},"type":"array","title":"Blockers"},"extension":{"additionalProperties":true,"type":"object","title":"Extension"},"linkedin":{"additionalProperties":true,"type":"object","title":"Linkedin"},"limits":{"additionalProperties":true,"type":"object","title":"Limits"}},"type":"object","required":["ready"],"title":"ReadinessResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}