{"openapi":"3.1.0","info":{"title":"Promoter workspace API","version":"1.7.0","description":"The same workspace commands serve the UI, scoped API keys, and both hosted and stdio MCP clients. All key requests are actor/workspace-bound. The hosted MCP protocol endpoint is /mcp. This OpenAPI describes workspace REST commands. An app key (pma_) acts for one of its customers on campaign, lead, library, discovery, outreach and watch routes when it sends X-Promoter-Customer and, for one person’s own work, X-Promoter-Person."},"externalDocs":{"description":"Agent setup and campaign examples","url":"https://promoter-app-asaf-katz-s-projects.vercel.app/developers"},"servers":[{"url":"https://promoter-app-asaf-katz-s-projects.vercel.app"}],"paths":{"/api/access":{"get":{"operationId":"get_access","summary":"Inspect this API key’s current actor, bound workspace, role and effective permissions.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[[]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_access"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["workspace_id","user_id","role","via","effective_scopes"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"user_id":{"type":"string","format":"uuid"},"role":{"enum":["owner","admin","operator","viewer"]},"via":{"enum":["session","api_key"]},"scopes":{"type":"array","items":{"type":"string"}},"effective_scopes":{"type":"array","items":{"type":"string"}},"capabilities":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/app":{"get":{"operationId":"get_workspace","summary":"Read the current workspace overview, admission, senders and campaigns. Does not bootstrap or switch workspace.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_workspace"],"parameters":[{"name":"only","in":"query","required":false,"description":"Ask for parts only: campaigns, accounts, or both separated by a comma. The answer then carries partial, workspace_id and the parts asked for.","schema":{"type":"string"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Includes admission.account_limit, used_sender_slots, reserved_sender_slots and available_sender_slots. sender_setup reports the authenticated actor’s can_connect, can_request, has_sender, can_manage_billing and current request. Account rows report can_manage, can_pause and is_own_sender without exposing the sender owner’s user ID."}},"/api/agent-readiness":{"get":{"operationId":"get_agent_readiness","summary":"First call for an outreach task. Find the bound workspace, allowed draft permissions, sender choices and next setup action. No provider lookup, payment, or campaign creation.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_agent_readiness"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["workspace_id","role","senders","next","missing_draft_scopes"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"workspace_name":{"type":["string","null"]},"role":{"enum":["owner","admin","operator","viewer"]},"missing_draft_scopes":{"type":"array","items":{"type":"string"}},"has_sending_scope":{"type":"boolean"},"sending_configured":{"type":"boolean"},"sender_admission":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"]}}},"senders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"status":{"type":"string"},"sending_enabled":{"type":"boolean"},"is_own_sender":{"type":"boolean"}}}},"onboarding":{"type":"object","description":"Setup checklist. A part that could not be read is null. team is present only for the workspace owner.","required":["business_profile","sender","has_campaign_draft"],"properties":{"business_profile":{"type":["object","null"],"properties":{"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string"}},"optional_missing":{"type":"array","items":{"type":"string"}}}},"team":{"type":["object","null"],"properties":{"members":{"type":"integer","minimum":0},"pending_invitations":{"type":"integer","minimum":0}}},"sender":{"type":"object","properties":{"status":{"enum":["not_connected","needs_attention","connected"]},"connected":{"type":"integer","minimum":0},"sending_on":{"type":"integer","minimum":0}}},"has_campaign_draft":{"type":["boolean","null"]}}},"next":{"type":"object","required":["action"],"properties":{"action":{"enum":["request_draft_access","ask_workspace_owner","select_sender","prepare_draft","connect_linkedin","review_sender_seats","request_sender_seat","review_sender_setup"]},"url":{"type":"string","format":"uri-reference"}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/workspace/profile":{"get":{"operationId":"get_business_profile","summary":"Read what this workspace has told Promoter about its business and which details are still empty: missing lists the main ones, optional_missing the extras. No provider lookup.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_business_profile"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessProfileResult"}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update_business_profile","summary":"Save business details the person has confirmed. Send only the fields to change: a field left out stays as it is, null clears it. Returns the saved details and what is still empty. Owner or admin only. Never save a guess, and never sends anything.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["campaigns:write"]],"x-promoter-roles":["owner","admin"],"x-mcp-tools":["promoter_update_business_profile"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessProfileResult"}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"website":{"description":"Company website. https only; a bare domain such as acme.com is accepted.","anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"what_we_sell":{"description":"What the business sells, in the person’s own words.","anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"ideal_customer":{"description":"Who they sell to: roles, company type, size, region.","anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"proof":{"description":"Customers or results they are allowed to cite.","anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"tone":{"description":"How they like to sound.","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"call_to_action":{"description":"What a good reply should lead to, such as a call or a demo.","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"booking_url":{"description":"Optional booking link. https only.","anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"languages":{"description":"Optional. Languages they write outreach in.","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"avoid":{"description":"Optional. Things never to say or claim.","anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"description":"Partial update: a field left out stays as it is, null or an empty string clears it. Signed-in owners and admins, or an API key with campaigns:write. Website and booking link must be https."}},"/api/workspace":{"put":{"operationId":"rename_workspace","summary":"Rename this workspace to the company or team name the owner has confirmed. Teammates and invitation emails show this name. Owner only; grants nothing.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["campaigns:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_rename_workspace"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["workspace"],"properties":{"workspace":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":2,"maxLength":80}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80}},"required":["name"],"additionalProperties":false}}}}}},"/api/health":{"get":{"operationId":"get_health","summary":"Read this configured Promoter application’s health and release identity.","security":[],"x-promoter-scopes":[[]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_health"],"parameters":[],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/config":{"get":{"operationId":"get_config","summary":"Read public signup/provider availability and the current whole-platform offer. Does not change configuration.","security":[],"x-promoter-scopes":[[]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_config"],"parameters":[],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/sequencing":{"get":{"operationId":"get_sequence_capabilities","summary":"Read supported duration units, exact personalization fields and versioned condition semantics. No provider lookup, guessing, scheduling or write.","security":[],"x-promoter-scopes":[[]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_sequence_capabilities"],"parameters":[],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-promoter-public":true}},"/api/sequencing/duration":{"post":{"operationId":"normalize_delay","summary":"Convert a whole minutes/hours/days duration into the canonical wait step. A day is24 elapsed hours, not a business day. Requires5..129600 total minutes in five-minute increments. Performs no provider or workspace writes.","security":[],"x-promoter-scopes":[[]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_normalize_delay"],"parameters":[],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["type","minutes"],"properties":{"type":{"const":"wait"},"minutes":{"type":"integer","minimum":5,"maximum":129600,"multipleOf":5}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"integer","minimum":1,"maximum":129600},"unit":{"type":"string","enum":["minutes","hours","days"]}},"required":["value","unit"],"additionalProperties":false}}}},"x-promoter-public":true}},"/api/sequencing/validate":{"post":{"operationId":"validate_sequence","summary":"Validate and normalize linear or conditional campaign steps without a sender or campaign. Reuse the returned sequence when saving a draft. No provider lookup, workspace writes or sending.","security":[],"x-promoter-scopes":[[]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_validate_sequence"],"parameters":[],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["sequence"],"properties":{"sequence":{"$ref":"#/components/schemas/CampaignSequence"}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSequence"}}}},"x-promoter-public":true}},"/api/accounts":{"get":{"operationId":"list_senders","summary":"List workspace senders with bounded pagination.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_senders"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["accounts","pagination"],"properties":{"accounts":{"type":"array","items":{"type":"object","additionalProperties":true}},"pagination":{"type":"object","required":["limit","offset","total","has_more"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"offset":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"has_more":{"type":"boolean"}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/accounts/{account_id}":{"get":{"operationId":"get_sender","summary":"Read one owned sender’s public settings and current state, without credentials or worker leases.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_sender"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update_sender","summary":"Update your own sender without enabling sending. Sending hours apply to campaigns and automatic Inbox replies in the sender timezone. Use null to clear custom hours.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["senders:write"],["senders:write"],["senders:write","sending:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_update_sender","promoter_disable_sender","promoter_enable_sender"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"display_name":{"type":"string","maxLength":120},"sending_enabled":{"type":"boolean"},"limits":{"type":"object","additionalProperties":true},"min_interval_minutes":{"type":"integer","minimum":5,"maximum":1440,"multipleOf":5},"timezone":{"type":"string","maxLength":100},"sending_hours":{"description":"Custom sender-local hours for campaigns and automatic Inbox replies. Start is inclusive, end is exclusive, and distinct times can span midnight. Null clears custom hours.","oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["start","end"],"properties":{"start":{"type":"string","pattern":"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$","minLength":5,"maxLength":5,"example":"09:00"},"end":{"type":"string","pattern":"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$","minLength":5,"maxLength":5,"example":"17:00"}}}]}}}}}},"x-promoter-conditional-scopes":{"sending_enabled=true":["sending:write"]},"x-promoter-session-roles":["owner","admin","operator"],"description":"Manage your own sender. A workspace owner may also pause another workspace sender with exactly {sending_enabled:false}. Activating another member’s sender is denied."}},"/api/connections":{"post":{"operationId":"begin_connection","summary":"Begin Hosted Auth for your own LinkedIn sender. With no sender seat available, returns a saved seat request instead of a link. Provider login and completion require the matching human session.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["senders:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_begin_connection"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"connection_id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"expires_at":{"type":"string","format":"date-time"}}}}}},"202":{"description":"An existing or new sender-seat request was saved. No Hosted Auth link is issued. Billing remains an explicit owner action.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["status","request","account_limit","used_sender_slots","reserved_sender_slots","available_sender_slots"],"properties":{"status":{"const":"sender_seat_required"},"request":{"type":"object","required":["id","status"],"properties":{"id":{"type":"string","format":"uuid"},"status":{"const":"open"}}},"account_limit":{"type":"integer","minimum":0},"used_sender_slots":{"type":"integer","minimum":0},"reserved_sender_slots":{"type":"integer","minimum":0},"available_sender_slots":{"const":0}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"owner_confirmed":{"type":"boolean","const":true},"account_id":{"type":"string","pattern":"^acc_[A-Za-z0-9]+$"},"include_sales_navigator":{"default":false,"type":"boolean"}},"required":["owner_confirmed"],"additionalProperties":false}}}},"x-promoter-session-roles":["owner","admin","operator"]}},"/api/accounts/{account_id}/posts":{"post":{"operationId":"list_profile_posts","summary":"Spend the owner’s bounded read allowance to retrieve up to ten authored posts for explicit selection. No reaction is sent.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_list_profile_posts"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"linkedin_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["linkedin_url"],"additionalProperties":false}}}}}},"/api/accounts/{account_id}/post-preview":{"post":{"operationId":"preview_post","summary":"Spend two bounded reads to review the exact saved post and author. No Like or own-reaction lookup is performed.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_preview_post"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":"object","properties":{"kind":{"type":"string","const":"post"},"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","post_id","author_id"],"additionalProperties":false}},"required":["target"],"additionalProperties":false}}}}}},"/api/campaigns":{"get":{"operationId":"list_campaigns","summary":"List workspace campaigns with bounded pagination.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_campaigns"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["campaigns","pagination"],"properties":{"campaigns":{"type":"array","items":{"type":"object","additionalProperties":true}},"pagination":{"type":"object","required":["limit","offset","total","has_more"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"offset":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"has_more":{"type":"boolean"}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create_campaign","summary":"Create an empty unstarted campaign draft. Add recipients separately with lead permission; never starts outreach.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["campaigns:write"],["campaigns:write","leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_create_campaign","promoter_create_campaign_with_leads"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"campaign":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignDraft"}}},"description":"Legacy linear input remains supported. graph_v1 requires entry_node_id, stable unique node IDs, explicit destinations, an acyclic reachable graph and on_unknown=review. Native validation remains authoritative. Sequence/renderer versions are server-managed; started snapshots are immutable."},"x-promoter-conditional-scopes":{"nonempty inline contacts":["leads:write"]}}},"/api/campaigns/{campaign_id}":{"get":{"operationId":"get_campaign","summary":"Read a campaign, its counts of people by state, why its queue is waiting, and at most the first 100 recipients and actions (has_more says there are more). Use list_campaign_people and list_campaign_activity for complete collections.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_campaign"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"include","in":"query","required":false,"schema":{"enum":["people"],"description":"API keys and apps always receive enrollments and actions, at most 100 of each. A signed-in session receives them only with include=people."}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"campaign":{"type":"object","additionalProperties":true},"enrollments":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":true}},"actions":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":true}},"step_progress":{"type":["array","null"],"maxItems":20,"items":{"type":"integer","minimum":0},"description":"Distinct leads that passed each step, in saved step order. Null before the campaign first runs or if historical progress is unavailable. Includes retained history for removed leads."},"queue_status":{"type":["object","null"],"description":"Read-only campaign readiness based on the saved queue and sender settings. Null if the snapshot is unavailable.","required":["state","reason","as_of","next_eligible_at","provider_retry_at","counts"],"properties":{"state":{"enum":["draft","paused","stopped","completed","sender_paused","sender_unavailable","seat_required","provider_hold","outside_sending_hours","minimum_interval","daily_limit","background_read_limit","waiting_connection","scheduled","needs_review","empty","ready","platform_paused","sender_busy","action_disabled"]},"reason":{"type":["string","null"],"description":"Additional sender setup or commercial admission reason when available."},"as_of":{"type":"string","format":"date-time"},"next_eligible_at":{"type":["string","null"],"format":"date-time","description":"Earliest known future eligibility check for pending work. Actual processing and delivery depend on worker availability and provider outcomes."},"provider_retry_at":{"type":["string","null"],"format":"date-time","description":"Current sender provider hold boundary when any pending step uses the provider."},"counts":{"type":"object","required":["pending","at_message_step","needs_review"],"properties":{"pending":{"type":"integer","minimum":0},"at_message_step":{"type":"integer","minimum":0,"description":"Pending leads at a message step, including those waiting for a connection."},"needs_review":{"type":"integer","minimum":0}}}}},"has_more":{"type":"boolean","description":"True when the campaign holds more than the included 100 recipients or actions."},"people_counts":{"type":"object","additionalProperties":{"type":"integer"}},"people":{"type":"array","items":{"type":"object","additionalProperties":true}},"pagination":{"type":"object","required":["limit","has_more","next_cursor"],"properties":{"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update_campaign","summary":"Edit an unstarted draft/paused campaign. After a campaign has started its steps, order and branches are locked; while it is paused, the text of a message or the note of a connection request can still be changed (send the saved steps with only that wording changed). The new wording applies to messages not sent yet and sequence_version stays the same. A 409 campaign_busy means the sender is mid-action: retry shortly. Native sender identity remains enforced.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["campaigns:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_update_campaign"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"campaign":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"connection_request"},"note":{"default":"","type":"string","maxLength":300},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"minutes":{"type":"integer","minimum":5,"maximum":129600,"multipleOf":5},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","minutes"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"duration":{"type":"object","properties":{"value":{"type":"integer","minimum":1,"maximum":129600},"unit":{"type":"string","enum":["minutes","hours","days"]}},"required":["value","unit"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","duration"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"message"},"text":{"type":"string","minLength":1,"maxLength":8000},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"like"},"reaction":{"type":"string","const":"linkedin_like"},"target":{"type":"object","properties":{"kind":{"type":"string","const":"post"},"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","post_id","author_id"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","reaction","target"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","enum":["connected","invitation_pending"]}},"required":["type","id","on_true","on_false","on_unknown","condition"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","const":"exists"}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":200}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator","value"],"additionalProperties":false}]}},"sequence_format":{"type":"string","enum":["linear_v1","graph_v1"]},"entry_node_id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"name":{"type":"string","minLength":1,"maxLength":120},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["steps","name","account_id"],"additionalProperties":false}}},"description":"Legacy linear input remains supported. graph_v1 requires entry_node_id, stable unique node IDs, explicit destinations, an acyclic reachable graph and on_unknown=review. Native validation remains authoritative. Sequence/renderer versions are server-managed; started snapshots are immutable."}},"delete":{"operationId":"archive_campaign","summary":"Soft archive a campaign through native safety checks. Preserves history and dedupe; cannot recall delivery or bypass in-flight actions.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["campaigns:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_archive_campaign"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"campaign":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/campaigns/{campaign_id}/preview":{"post":{"operationId":"preview_campaign","summary":"Render an existing campaign for one real scoped recipient using the execution renderer. Shows missing facts; no sample substitutions, provider reads or sending.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_preview_campaign"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["preview"],"properties":{"preview":{"$ref":"#/components/schemas/SequencePreview"}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["lead_id"],"additionalProperties":false}}}}}},"/api/campaigns/{campaign_id}/decisions":{"get":{"operationId":"list_condition_decisions","summary":"Read durable native condition outcomes, evidence and branch destinations for a campaign, with bounded pagination. Unknown is never false.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_condition_decisions"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["decisions","pagination"],"properties":{"decisions":{"type":"array","items":{"$ref":"#/components/schemas/ConditionDecision"}},"pagination":{"type":"object","required":["limit","offset","total","has_more"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"offset":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"has_more":{"type":"boolean"}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/campaigns/{campaign_id}/state":{"post":{"operationId":"start_campaign","summary":"Explicitly start the reviewed campaign. Native billing, role, sender, reply, lease, pacing and action guards remain mandatory.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["campaigns:write","sending:write"],["campaigns:write"],["campaigns:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_start_campaign","promoter_pause_campaign","promoter_stop_campaign"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["state"],"additionalProperties":false,"properties":{"state":{"enum":["running","paused","stopped"]}}}}}},"x-promoter-conditional-scopes":{"state=running":["sending:write"]}}},"/api/leads":{"get":{"operationId":"list_leads","summary":"List recipients within this workspace, optionally one campaign, with bounded pagination.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_leads"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"name":"campaign_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["leads","pagination"],"properties":{"leads":{"type":"array","items":{"type":"object","additionalProperties":true}},"pagination":{"type":"object","required":["limit","offset","total","has_more"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"offset":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"has_more":{"type":"boolean"}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/leads/{lead_id}":{"get":{"operationId":"get_lead","summary":"Read one scoped recipient and its current state.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_lead"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"lead":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update_lead_personalization","summary":"Explicitly update named personal details before a campaign starts. Preserves original import evidence and records user overrides. Missing fields stay unknown; cannot change recipient identity, cursor, provenance or a started snapshot.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_update_lead_personalization"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"lead":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","maxLength":100},"last_name":{"type":"string","maxLength":100},"display_name":{"type":"string","maxLength":200},"company_name":{"type":"string","maxLength":200},"job_title":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":300}},"required":[],"additionalProperties":false}}}}},"delete":{"operationId":"remove_lead","summary":"Soft remove a recipient from future automation. Preserves action receipts and dedupe; native safety may refuse in-flight work.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_remove_lead"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"lead":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/campaigns/{campaign_id}/leads":{"post":{"operationId":"add_leads","summary":"Append validated contacts to the exact unstarted campaign. Global sender dedupe and capacity stay enforced; no outreach starts.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_add_leads"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"enrollments":{"type":"array","items":{"type":"object","additionalProperties":true}},"count":{"type":"integer"}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contacts":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"first_name":{"type":"string","maxLength":100},"last_name":{"type":"string","maxLength":100},"display_name":{"type":"string","maxLength":200},"company_name":{"type":"string","maxLength":200},"job_title":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":300},"linkedin_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["linkedin_url"],"additionalProperties":false}}},"required":["contacts"],"additionalProperties":false}}}}},"get":{"operationId":"list_campaign_leads","summary":"Campaign-scoped alias of paginated lead listing.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_leads"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["leads","pagination"],"properties":{"leads":{"type":"array","items":{"type":"object","additionalProperties":true}},"pagination":{"type":"object","required":["limit","offset","total","has_more"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"offset":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"has_more":{"type":"boolean"}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/campaigns/{campaign_id}/scrub-names":{"post":{"operationId":"scrub_lead_names","summary":"Optional first-name clean-up for a campaign, run only when asked. Without apply it previews the proposed fixes (titles, initials, extra words, capitals, symbols) and lists names a person must review. With apply: true it saves the proposed first names for recipients still waiting on a step, as user overrides that keep the earlier provenance. Never sends, never guesses a missing name, never touches finished recipients.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read","leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_scrub_lead_names"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"apply":{"type":"boolean"}},"required":[],"additionalProperties":false}}}}}},"/api/campaigns/{campaign_id}/actions":{"get":{"operationId":"list_actions","summary":"Read a campaign’s action history with bounded pagination; provider acceptance, uncertainty and replies remain distinct.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_actions"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["actions","pagination"],"properties":{"actions":{"type":"array","items":{"type":"object","additionalProperties":true}},"pagination":{"type":"object","required":["limit","offset","total","has_more"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"offset":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"has_more":{"type":"boolean"}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/imports/csv-preview":{"post":{"operationId":"preview_csv","summary":"Parse a bounded CSV and show column mapping candidates/errors. Does not stage contacts or send anything.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["imports:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_preview_csv"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":1048576}},"required":["text"],"additionalProperties":false}}}}}},"/api/imports/csv":{"post":{"operationId":"stage_csv","summary":"Stage mapped CSV rows using an explicit idempotency key. Does not enroll, start or enable a sender.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["imports:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_stage_csv"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","minLength":1,"maxLength":1048576},"mapping":{"type":"object","properties":{"first_name":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"last_name":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"display_name":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"company_name":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"job_title":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"location":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"linkedin_url":{"type":"integer","minimum":0,"maximum":63}},"required":["linkedin_url"],"additionalProperties":false},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["account_id","text","mapping","idempotency_key"],"additionalProperties":false}}}}}},"/api/imports/sales-navigator":{"post":{"operationId":"stage_sales_navigator","summary":"Run a bounded owner-only read search and stage verified public identities. Requires real premium entitlement; excludes save/load/provider writes.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["imports:write","read"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_stage_sales_navigator"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filters":{"type":"object","properties":{"keywords":{"type":"string","minLength":1,"maxLength":500},"network_distance":{"minItems":1,"maxItems":4,"type":"array","items":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"string","const":"GROUP"}]}},"first_name":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"last_name":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"location":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"industry":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"current_company":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"current_job_title":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"seniority":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","enum":["OWNER/PARTNER","CXO","VICE_PRESIDENT","DIRECTOR","EXPERIENCED_MANAGER","ENTRY_LEVEL_MANAGER","STRATEGIC","SENIOR","ENTRY_LEVEL","IN_TRAINING"]}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","enum":["OWNER/PARTNER","CXO","VICE_PRESIDENT","DIRECTOR","EXPERIENCED_MANAGER","ENTRY_LEVEL_MANAGER","STRATEGIC","SENIOR","ENTRY_LEVEL","IN_TRAINING"]}}},"additionalProperties":false}},"additionalProperties":false},"offset":{"default":0,"type":"integer","minimum":0,"maximum":2500},"limit":{"default":100,"type":"integer","minimum":1,"maximum":100},"max_rows":{"default":100,"type":"integer","minimum":1,"maximum":500},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["account_id","filters","idempotency_key"],"additionalProperties":false}}}}}},"/api/imports":{"get":{"operationId":"list_imports","summary":"List scoped import job metadata with bounded pagination.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_list_imports"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["jobs","pagination"],"properties":{"jobs":{"type":"array","items":{"type":"object","additionalProperties":true}},"pagination":{"type":"object","required":["limit","offset","total","has_more"],"properties":{"limit":{"type":"integer","minimum":1,"maximum":100},"offset":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"has_more":{"type":"boolean"}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/imports/{job_id}":{"get":{"operationId":"get_import","summary":"Read one staged job and its row outcomes, preserving provenance.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_get_import"],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/imports/{job_id}/commit":{"post":{"operationId":"commit_import","summary":"Commit selected row IDs once to the exact unstarted campaign, with an explicit idempotency key. Invalid/duplicate rows do not become extra recipients; never starts outreach.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["imports:write","leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_commit_import"],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaign_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"row_ids":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["campaign_id","row_ids","idempotency_key"],"additionalProperties":false}}}}}},"/api/billing":{"get":{"operationId":"get_billing","summary":"Read the workspace owner’s verified subscription and sender-seat usage. Team membership is unlimited.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_get_billing"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/billing/checkout":{"post":{"operationId":"create_checkout_link","summary":"Create or resume a hosted $29 per LinkedIn sender per month checkout for explicit owner payment review.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["billing:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_create_checkout_link"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seats":{"default":1,"type":"integer","minimum":1,"maximum":100},"return_to":{"default":"billing","type":"string","enum":["billing","team"]},"plan":{"const":"early_access"}},"required":["plan"],"additionalProperties":false}}}}}},"/api/billing/portal":{"post":{"operationId":"create_billing_portal_link","summary":"Return the owned customer’s configured billing portal for human management. Does not submit payment or alter a subscription itself.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["billing:write"],["billing:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_create_billing_portal_link","promoter_create_seat_update_link"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"seats":{"type":"integer","minimum":1,"maximum":100,"description":"Optional exact total quantity for Stripe subscription_update_confirm human review; no immediate subscription mutation."},"return_to":{"enum":["billing","team"],"default":"billing"}}}}}}}},"/api/team":{"get":{"operationId":"list_team","summary":"Read workspace members, exact-email invitations and sanitized reusable join-link metadata. Secret join URLs are returned only when created; native owner authority is required.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_list_team"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/team/invite":{"post":{"operationId":"invite_member","summary":"Create an exact-email invitation link for human sharing. Share it yourself or use the separate email invitation tool.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["team:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_invite_member"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"default":"operator","type":"string","enum":["admin","operator","viewer"]}},"required":["email"],"additionalProperties":false}}}}}},"/api/team/links":{"post":{"operationId":"create_join_link","summary":"Create a reusable operator-only join link for confirmed-email users to accept while signed in. Null max_uses permits unlimited uses until expiry or revocation. The secret URL is returned once. Existing members keep their role.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["team:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_create_join_link"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["link"],"properties":{"link":{"$ref":"#/components/schemas/TeamJoinLink"},"url":{"type":"string","format":"uri","description":"One-time-returned private /team/join#token URL. Never returned by list/read."}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expires_in_days":{"default":7,"type":"integer","minimum":1,"maximum":30},"max_uses":{"default":null,"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"null"}]}},"required":[],"additionalProperties":false}}}}},"get":{"operationId":"list_join_links","summary":"Read sanitized reusable join-link metadata for this workspace. Never reveals token hashes or recovers a previously issued secret URL; native owner authority is required.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_list_join_links"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["links"],"properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/TeamJoinLink"}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/team/links/{link_id}":{"delete":{"operationId":"revoke_join_link","summary":"Revoke this workspace’s reusable join link. Prevents future joins; does not remove existing members or recall a shared URL.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["team:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_revoke_join_link"],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["link"],"properties":{"link":{"$ref":"#/components/schemas/TeamJoinLink"}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/team/invite-email":{"post":{"operationId":"send_email_invitation","summary":"Request one invitation email to this exact address and role, using a stable idempotency key. An accepted result confirms the email provider received the request. Uncertain outcomes require review.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["team:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_send_email_invitation"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInvitationResult"}}}},"202":{"description":"A legacy invitation delivery intent is still awaiting explicit resumption. Invitations no longer use sender seats.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInvitationResult"}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"default":"operator","type":"string","enum":["admin","operator","viewer"]},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["email","idempotency_key"],"additionalProperties":false}}}}}},"/api/team/deliveries/{delivery_id}":{"get":{"operationId":"get_invitation_delivery","summary":"Read one owned invitation email intent and its current capacity/delivery receipt. Does not resume, resend, reserve a seat or infer inbox delivery from provider acceptance.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_get_invitation_delivery"],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInvitationResult"}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/team/deliveries/{delivery_id}/resume":{"post":{"operationId":"resume_email_invitation","summary":"Explicitly resume this immutable awaiting-capacity email intent after authoritative capacity is available. Recipient and role cannot change; native checks permit at most one dispatch. Accepted, attempted or uncertain email is not automatically resent.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["team:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_resume_email_invitation"],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInvitationResult"}}}},"202":{"description":"A legacy invitation delivery intent is still awaiting explicit resumption. Invitations no longer use sender seats.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInvitationResult"}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}}}},"/api/team/remove":{"post":{"operationId":"remove_member","summary":"Remove this non-owner member through current owner and native membership checks.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["team:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_remove_member"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"member_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["member_id"],"additionalProperties":false}}}}}},"/api/team/revoke":{"post":{"operationId":"revoke_invitation","summary":"Revoke a pending invitation through current owner checks.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["team:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_revoke_invitation"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invitation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["invitation_id"],"additionalProperties":false}}}}}},"/api/operations":{"get":{"operationId":"list_operations","summary":"Read the workspace’s recent durable scheduler runs. Does not run a worker or scheduler.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_operations"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/blacklist":{"get":{"operationId":"list_blacklist","summary":"Read the workspace blacklist. Pass both next_cursor fields when requesting another page.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_list_blacklist"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"before_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["entries","next_cursor"],"properties":{"entries":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","linkedin_url","provider_user_id","reason","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"linkedin_url":{"type":"string","format":"uri"},"provider_user_id":{"type":["string","null"]},"reason":{"type":"string","maxLength":500},"created_at":{"type":"string","format":"date-time"}}}},"next_cursor":{"anyOf":[{"type":"null"},{"type":"object","required":["before","before_id"],"properties":{"before":{"type":"string","format":"date-time"},"before_id":{"type":"string","format":"uuid"}}}]}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"add_blacklist_entry","summary":"Block a LinkedIn profile across the workspace. Matching imports stay visible with a Blacklisted label. Matching outreach is blocked.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_add_blacklist_entry"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["entry"],"properties":{"entry":{"type":"object","additionalProperties":false,"required":["id","linkedin_url","provider_user_id","reason","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"linkedin_url":{"type":"string","format":"uri"},"provider_user_id":{"type":["string","null"]},"reason":{"type":"string","maxLength":500},"created_at":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"linkedin_url":{"type":"string","maxLength":2048,"format":"uri"},"provider_user_id":{"type":"string","minLength":1,"maxLength":500},"reason":{"type":"string","maxLength":500}},"required":["linkedin_url"],"additionalProperties":false}}}}}},"/api/blacklist/{entry_id}":{"delete":{"operationId":"remove_blacklist_entry","summary":"Lift a workspace block for future outreach. Previously stopped actions remain stopped.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write","sending:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_remove_blacklist_entry"],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["removed"],"properties":{"removed":{"const":true}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/library":{"get":{"operationId":"list_library_leads","summary":"Search the reusable workspace lead database with bounded pagination and list/status/suppression/archive filters. Separate from campaign enrollments.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_library_leads"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"list_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["new","qualified","contacted","replied","not_interested"]}},{"name":"suppressed","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"add_library_leads","summary":"Add up to1000 explicit contacts to the workspace database without a campaign or sender. Stable idempotency preserves one receipt; duplicate intake never overwrites known facts or starts outreach.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_add_library_leads"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contacts":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"first_name":{"type":"string","maxLength":100},"last_name":{"type":"string","maxLength":100},"display_name":{"type":"string","maxLength":200},"company_name":{"type":"string","maxLength":200},"job_title":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":300},"linkedin_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["linkedin_url"],"additionalProperties":false}},"list_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["contacts","idempotency_key"],"additionalProperties":false}}}}}},"/api/library/{lead_id}":{"get":{"operationId":"get_library_lead","summary":"Read one workspace lead, its original source references and bounded campaign enrollment history. Does not inspect LinkedIn or send.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_library_lead"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update_library_lead","summary":"Edit explicit facts, CRM status/notes, suppression or archive using the current revision. Future enrollments use edited facts; existing campaign snapshots remain unchanged. Suppression stops future matching workspace outreach; unsuppress never resurrects it. Archive excludes future enrollment and preserves current snapshots.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_update_library_lead"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"values":{"type":"object","properties":{"first_name":{"type":"string","maxLength":100},"last_name":{"type":"string","maxLength":100},"display_name":{"type":"string","maxLength":200},"company_name":{"type":"string","maxLength":200},"job_title":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":300}},"additionalProperties":false},"status":{"type":"string","enum":["new","qualified","contacted","replied","not_interested"]},"notes":{"type":"string","maxLength":8000},"suppressed":{"type":"boolean"},"suppression_reason":{"type":"string","maxLength":500},"archived":{"type":"boolean"}},"required":["expected_revision"],"additionalProperties":false}}},"description":"Requires current expected_revision. Facts affect future enrollment snapshots. Suppression stops future matching workspace outreach; archive preserves current snapshots. Client identity, provenance and sequence overrides are rejected."}}},"/api/library-lists":{"get":{"operationId":"list_lead_lists","summary":"Read the workspace’s reusable named lead lists. Lists organize contacts and never activate outreach.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_lead_lists"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create_lead_list","summary":"Create an empty named workspace lead list.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_create_lead_list"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":1000}},"required":["name"],"additionalProperties":false}}}}}},"/api/library-lists/{list_id}":{"put":{"operationId":"update_lead_list","summary":"Rename, describe or archive a workspace lead list. Preserves contacts and campaign history.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_update_lead_list"],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":1000},"archived":{"type":"boolean"}},"required":[],"additionalProperties":false}}}}}},"/api/library-lists/{list_id}/members":{"post":{"operationId":"set_lead_list_members","summary":"Explicitly add/remove selected workspace lead IDs from a named list. Does not remove leads from the library or change any campaign.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_set_lead_list_members"],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_ids":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"operation":{"type":"string","enum":["add","remove"]}},"required":["lead_ids","operation"],"additionalProperties":false}}}}}},"/api/library/imports/csv":{"post":{"operationId":"import_library_csv","summary":"Upload a mapped UTF-8 CSV into the tenant lead database independently of a campaign/sender. Up to1000 rows and1MB, per-row duplicate/invalid receipt, stable idempotency; never starts outreach.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write","imports:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_import_library_csv"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":1048576},"mapping":{"type":"object","properties":{"first_name":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"last_name":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"display_name":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"company_name":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"job_title":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"location":{"anyOf":[{"type":"integer","minimum":0,"maximum":63},{"type":"null"}]},"linkedin_url":{"type":"integer","minimum":0,"maximum":63}},"required":["linkedin_url"],"additionalProperties":false},"list_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["text","mapping","idempotency_key"],"additionalProperties":false}}}}}},"/api/campaigns/{campaign_id}/library-leads":{"post":{"operationId":"queue_library_leads","summary":"Queue selected library leads into an existing campaign, snapshotting facts and preserving sender-wide dedupe and1000/campaign cap. Draft/paused campaigns remain inactive. A running campaign additionally requires sending:write and its recipients may become due immediately. Does not enable a sender.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_queue_library_leads"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_ids":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["lead_ids","idempotency_key"],"additionalProperties":false}}}},"x-promoter-conditional-scopes":{"campaign.state=running":["sending:write"]}}},"/api/discovery/capabilities":{"get":{"operationId":"get_discovery_capabilities","summary":"Read supported source inputs, resumable job states and current conservative import bounds. Does not probe a sender or spend provider reads.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_discovery_capabilities"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/discovery":{"get":{"operationId":"list_discovery_jobs","summary":"Read bounded workspace discovery/import job progress and exact next eligible run times. Safe projections never expose leases or credentials.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_discovery_jobs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["queued","running","waiting_budget","paused","review","completed","cancelled"]}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create_discovery_job","summary":"Start a resumable source import into the workspace library. For post_comments or post_reactions, supply source.post_url copied from the LinkedIn post. Sales Navigator filters, people-search URLs and saved lead lists are also supported. Imports use the selected sender and existing daily read budgets. Campaign enrollment requires a separate action.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read","imports:write","leads:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_create_discovery_job"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"202":{"description":"Durable bounded read-only import queued. Results enter the library, never outreach. Existing budgets may pause work until reset.","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/DiscoveryJob"}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"list_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"max_rows":{"default":500,"type":"integer","minimum":1,"maximum":1000},"idempotency_key":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source_kind":{"type":"string","enum":["sales_navigator","salesnav_url","salesnav_list","post_reactions","post_comments"]},"source":{"anyOf":[{"type":"object","properties":{"filters":{"type":"object","properties":{"keywords":{"type":"string","minLength":1,"maxLength":500},"network_distance":{"minItems":1,"maxItems":4,"type":"array","items":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"string","const":"GROUP"}]}},"first_name":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"last_name":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"location":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"industry":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"current_company":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"current_job_title":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"seniority":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","enum":["OWNER/PARTNER","CXO","VICE_PRESIDENT","DIRECTOR","EXPERIENCED_MANAGER","ENTRY_LEVEL_MANAGER","STRATEGIC","SENIOR","ENTRY_LEVEL","IN_TRAINING"]}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","enum":["OWNER/PARTNER","CXO","VICE_PRESIDENT","DIRECTOR","EXPERIENCED_MANAGER","ENTRY_LEVEL_MANAGER","STRATEGIC","SENIOR","ENTRY_LEVEL","IN_TRAINING"]}}},"additionalProperties":false}},"additionalProperties":false}},"required":["filters"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string","maxLength":8192,"pattern":"^https:\\/\\/www\\.linkedin\\.com\\/sales\\/search\\/people\\/?(?:\\?[^#]*)?$"}},"required":["url"],"additionalProperties":false},{"type":"object","properties":{"list_id":{"type":"string","minLength":1,"maxLength":500}},"required":["list_id"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"post_url":{"type":"string","maxLength":2048,"pattern":"^https:\\/\\/(?:www\\.)?linkedin\\.com\\/(?:posts|feed\\/update)\\/[^/?#\\s\\\\]+\\/?(?:\\?[^#\\s\\\\]*)?$","description":"HTTPS LinkedIn post URL copied from the post itself."}},"required":["post_url"],"additionalProperties":false},{"type":"object","properties":{"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["post_id"],"additionalProperties":false}]},{"anyOf":[{"type":"object","properties":{"post_url":{"type":"string","maxLength":2048,"pattern":"^https:\\/\\/(?:www\\.)?linkedin\\.com\\/(?:posts|feed\\/update)\\/[^/?#\\s\\\\]+\\/?(?:\\?[^#\\s\\\\]*)?$","description":"HTTPS LinkedIn post URL copied from the post itself."}},"required":["post_url"],"additionalProperties":false},{"type":"object","properties":{"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["post_id"],"additionalProperties":false}]}]}},"required":["account_id","idempotency_key","source_kind","source"],"additionalProperties":false,"oneOf":[{"type":"object","properties":{"source_kind":{"const":"sales_navigator"},"source":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"filters":{"type":"object","properties":{"keywords":{"type":"string","minLength":1,"maxLength":500},"network_distance":{"minItems":1,"maxItems":4,"type":"array","items":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"string","const":"GROUP"}]}},"first_name":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"last_name":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"location":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"industry":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"current_company":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"current_job_title":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"seniority":{"type":"object","properties":{"include":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","enum":["OWNER/PARTNER","CXO","VICE_PRESIDENT","DIRECTOR","EXPERIENCED_MANAGER","ENTRY_LEVEL_MANAGER","STRATEGIC","SENIOR","ENTRY_LEVEL","IN_TRAINING"]}},"exclude":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","enum":["OWNER/PARTNER","CXO","VICE_PRESIDENT","DIRECTOR","EXPERIENCED_MANAGER","ENTRY_LEVEL_MANAGER","STRATEGIC","SENIOR","ENTRY_LEVEL","IN_TRAINING"]}}},"additionalProperties":false}},"additionalProperties":false}},"required":["filters"],"additionalProperties":false}},"required":["source_kind","source"]},{"type":"object","properties":{"source_kind":{"const":"salesnav_url"},"source":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":8192,"pattern":"^https:\\/\\/www\\.linkedin\\.com\\/sales\\/search\\/people\\/?(?:\\?[^#]*)?$"}},"required":["url"],"additionalProperties":false}},"required":["source_kind","source"]},{"type":"object","properties":{"source_kind":{"const":"salesnav_list"},"source":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"list_id":{"type":"string","minLength":1,"maxLength":500}},"required":["list_id"],"additionalProperties":false}},"required":["source_kind","source"]},{"type":"object","properties":{"source_kind":{"const":"post_reactions"},"source":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"post_url":{"type":"string","maxLength":2048,"pattern":"^https:\\/\\/(?:www\\.)?linkedin\\.com\\/(?:posts|feed\\/update)\\/[^/?#\\s\\\\]+\\/?(?:\\?[^#\\s\\\\]*)?$","description":"HTTPS LinkedIn post URL copied from the post itself."}},"required":["post_url"],"additionalProperties":false},{"type":"object","properties":{"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["post_id"],"additionalProperties":false}]}},"required":["source_kind","source"]},{"type":"object","properties":{"source_kind":{"const":"post_comments"},"source":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"post_url":{"type":"string","maxLength":2048,"pattern":"^https:\\/\\/(?:www\\.)?linkedin\\.com\\/(?:posts|feed\\/update)\\/[^/?#\\s\\\\]+\\/?(?:\\?[^#\\s\\\\]*)?$","description":"HTTPS LinkedIn post URL copied from the post itself."}},"required":["post_url"],"additionalProperties":false},{"type":"object","properties":{"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["post_id"],"additionalProperties":false}]}},"required":["source_kind","source"]}]},"examples":{"post_comments":{"summary":"Import people who commented on a LinkedIn post","value":{"account_id":"11111111-1111-4111-8111-111111111111","source_kind":"post_comments","source":{"post_url":"https://www.linkedin.com/feed/update/urn:li:activity:7000000000000000000/"},"max_rows":25,"idempotency_key":"22222222-2222-4222-8222-222222222222"}},"post_reactions":{"summary":"Import people who reacted to a LinkedIn post","value":{"account_id":"11111111-1111-4111-8111-111111111111","source_kind":"post_reactions","source":{"post_url":"https://www.linkedin.com/feed/update/urn:li:activity:7000000000000000000/"},"max_rows":25,"idempotency_key":"22222222-2222-4222-8222-222222222222"}}}}}}}},"/api/discovery/{job_id}":{"get":{"operationId":"get_discovery_job","summary":"Read one owned job’s saved progress, stop reason and next run time without running it.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_discovery_job"],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/discovery/{job_id}/items":{"get":{"operationId":"list_discovery_items","summary":"Read a job’s bounded per-person outcomes and source references. Incomplete or organization actors never become invented contacts.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_discovery_items"],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/discovery/{job_id}/control":{"post":{"operationId":"control_discovery_job","summary":"Explicitly pause, resume or cancel an owned source import. Resume reauthorizes current actor/key; cancellation prevents late checkpoints, preserves prior library records and never recalls already imported data.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read","imports:write","leads:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_control_discovery_job"],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["pause","resume","cancel"]}},"required":["action"],"additionalProperties":false}}}}}},"/api/accounts/{account_id}/salesnav-lists":{"post":{"operationId":"list_salesnav_lead_lists","summary":"Spend a bounded owner-authorized read allowance to browse existing Sales Navigator lead lists for source selection. Requires current premium entitlement. Does not save to or modify provider lists.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_list_salesnav_lead_lists"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":2500}},"required":[],"additionalProperties":false}}}}}},"/api/openapi":{"get":{"summary":"This public API contract. It is documentation, not an execution/proxy endpoint.","security":[],"responses":{"200":{"description":"This public API contract. It is documentation, not an execution/proxy endpoint.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/api/agent-setup":{"get":{"summary":"Public onboarding links, draft permissions, and the ordered campaign workflow for an agent without a workspace key.","security":[],"responses":{"200":{"description":"Public onboarding links, draft permissions, and the ordered campaign workflow for an agent without a workspace key.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"x-promoter-public":true}},"/api/mcp/guide":{"get":{"summary":"Public setup guide for hosted Streamable HTTP MCP at /mcp and the downloadable stdio client.","security":[],"responses":{"200":{"description":"Public setup guide for hosted Streamable HTTP MCP at /mcp and the downloadable stdio client.","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/api/accounts/{account_id}/health":{"post":{"summary":"Refresh LinkedIn connection health for an owned sender. This does not enable or pause sending. One check per sender every five minutes.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Refresh LinkedIn connection health for an owned sender. This does not enable or pause sending. One check per sender every five minutes.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/keys":{"get":{"summary":"Verified signed-in owner lists sanitized key metadata. API keys cannot list or mint keys.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Verified signed-in owner lists sanitized key metadata. API keys cannot list or mint keys.","content":{"application/json":{"schema":{"type":"object","required":["keys"],"additionalProperties":false,"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceApiKeyMetadata"}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-promoter-roles":["owner"]},"post":{"summary":"Verified signed-in owner creates one private workspace key; response {key,token} shows token once. No token is stored in plaintext.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","scopes"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"type":"array","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"enum":["read","campaigns:write","leads:write","senders:write","imports:write","team:write","billing:write","sending:write"]}},"expires_in_days":{"type":"integer","minimum":1,"maximum":90,"default":90}}}}}},"responses":{"201":{"description":"Verified signed-in owner creates one private workspace key; response {key,token} shows token once. No token is stored in plaintext.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceApiKeyIssue"}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-promoter-roles":["owner"]}},"/api/keys/{credential_id}":{"delete":{"summary":"Verified signed-in owner revokes this workspace key. API keys cannot revoke other keys.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Verified signed-in owner revokes this workspace key. API keys cannot revoke other keys.","content":{"application/json":{"schema":{"type":"object","required":["key"],"additionalProperties":false,"properties":{"key":{"$ref":"#/components/schemas/WorkspaceApiKeyMetadata"}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-promoter-roles":["owner"]}},"/api/keys/{credential_id}/rotate":{"post":{"summary":"Verified signed-in owner replaces an active key in one transaction. The replacement inherits the original name, scopes and expiry. The old key is revoked when the replacement is created. Save the returned token once.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","maxProperties":0,"additionalProperties":false}}}},"responses":{"201":{"description":"Verified signed-in owner replaces an active key in one transaction. The replacement inherits the original name, scopes and expiry. The old key is revoked when the replacement is created. Save the returned token once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceApiKeyIssue"}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-promoter-roles":["owner"]}},"/api/connections/complete":{"post":{"summary":"The matching signed-in member completes the actor/workspace-bound Hosted Auth callback with a verified provider account. New senders start paused.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["state","account_id"],"additionalProperties":false,"properties":{"state":{"type":"string"},"account_id":{"type":"string","pattern":"^acc_[A-Za-z0-9]+$"}}}}}},"responses":{"200":{"description":"The matching signed-in member completes the actor/workspace-bound Hosted Auth callback with a verified provider account. New senders start paused.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/team/accept":{"post":{"summary":"Verified signed-in exact-email recipient accepts an invitation. Cannot be delegated to a workspace API key.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token"],"additionalProperties":false,"properties":{"token":{"type":"string"}}}}}},"responses":{"200":{"description":"Verified signed-in exact-email recipient accepts an invitation. Cannot be delegated to a workspace API key.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/team/join-preview":{"post":{"summary":"Read only the workspace name and ID for a reusable link before the verified recipient chooses to join. Capture the token from /team/join#token and include it only in this POST body.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token"],"additionalProperties":false,"properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}}}}}},"responses":{"200":{"description":"Read only the workspace name and ID for a reusable link before the verified recipient chooses to join. Capture the token from /team/join#token and include it only in this POST body.","content":{"application/json":{"schema":{"type":"object","required":["workspace_id","workspace_name"],"additionalProperties":false,"properties":{"workspace_id":{"type":"string","format":"uuid"},"workspace_name":{"type":"string","maxLength":120}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/team/join":{"post":{"summary":"The verified recipient accepts the reusable operator-only join link after deciding to join the previewed workspace. Workspace membership is free and never consumes a sender seat. Current owner authority is checked per claim. Already active members keep their role and receive a receipt without another link use. Removed members cannot reactivate through this link.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token","workspace_id"],"additionalProperties":false,"properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"workspace_id":{"type":"string","format":"uuid"}}}}}},"responses":{"200":{"description":"The verified recipient accepts the reusable operator-only join link after deciding to join the previewed workspace. Workspace membership is free and never consumes a sender seat. Current owner authority is checked per claim. Already active members keep their role and receive a receipt without another link use. Removed members cannot reactivate through this link.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/ops/context":{"get":{"summary":"Read your workspace support and preference context using the current verified browser session.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"name":"risk","in":"query","schema":{"const":"1"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Read your workspace support and preference context using the current verified browser session.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/support/guide":{"get":{"summary":"Read a support answer while signed into a workspace.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"name":"topic","in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Read a support answer while signed into a workspace.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/support/tickets":{"get":{"summary":"Read your support tickets in the selected workspace with a verified user session.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Read your support tickets in the selected workspace with a verified user session.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Open a support ticket for your selected workspace with a verified user session.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["category","subject","body"],"properties":{"category":{"type":"string"},"subject":{"type":"string","minLength":3,"maxLength":160},"body":{"type":"string","minLength":10,"maxLength":4000},"reference":{"type":"string","format":"uuid"}}}}}},"responses":{"201":{"description":"Open a support ticket for your selected workspace with a verified user session.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/ops/feedback":{"put":{"summary":"Record the signed-in user’s workspace feedback.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["rating"],"properties":{"rating":{"type":"integer","minimum":1,"maximum":5}}}}}},"responses":{"200":{"description":"Record the signed-in user’s workspace feedback.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/ops/preferences":{"put":{"summary":"Set whether the signed-in user receives feature emails.","security":[{"UserSession":[]}],"x-promoter-session-only":true,"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["enabled"],"properties":{"enabled":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Set whether the signed-in user receives feature emails.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/campaigns/{campaign_id}/leads/{lead_id}":{"delete":{"operationId":"remove_campaign_lead","summary":"Campaign-scoped alias of soft recipient removal.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["leads:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_remove_lead"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","properties":{"lead":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/v1/connect":{"post":{"operationId":"app_connect","summary":"Start connecting a person's LinkedIn. Creates the customer and the person on first use.","security":[{"AppKey":[]}],"x-promoter-app-key":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["customer","person","return_url"],"properties":{"customer":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"$ref":"#/components/schemas/AppExternalId"},"name":{"type":"string","minLength":1,"maxLength":120}}},"person":{"type":"object","additionalProperties":false,"required":["id","name","role"],"properties":{"id":{"$ref":"#/components/schemas/AppExternalId"},"name":{"type":"string","minLength":1,"maxLength":120},"role":{"enum":["admin","operator","viewer"]}}},"return_url":{"type":"string","format":"uri"},"sales_navigator":{"type":"boolean"},"reconnect_account_id":{"type":"string","format":"uuid"}}}}}},"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["connection_id","url","expires_at","completion_token"],"properties":{"connection_id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"expires_at":{"type":"string","format":"date-time"},"completion_token":{"type":"string"}}}}}},"202":{"description":"The app has no sender left. Nothing was started.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["status"],"properties":{"status":{"const":"sender_limit_reached"}}}}}},"400":{"description":"Credentials in the address, or a workspace header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked app key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Called from a browser, app suspended, or not this person's account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The app has no such customer, person, connection or account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Another connection is in progress, or this one can no longer be used","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/v1/connect/complete":{"post":{"operationId":"app_complete_connection","summary":"Finish a connection after checking that the signed-in user is the one who started it. Safe to repeat. Sending stays off.","security":[{"AppKey":[]}],"x-promoter-app-key":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["customer_id","person_id","connection_id","completion_token","account_ref"],"properties":{"customer_id":{"$ref":"#/components/schemas/AppExternalId"},"person_id":{"$ref":"#/components/schemas/AppExternalId"},"connection_id":{"type":"string","format":"uuid"},"completion_token":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"account_ref":{"type":"string","pattern":"^acc_[A-Za-z0-9]+$"}}}}}},"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["account"],"properties":{"account":{"$ref":"#/components/schemas/AppAccount"}}}}}},"400":{"description":"Credentials in the address, or a workspace header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked app key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Called from a browser, app suspended, or not this person's account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The app has no such customer, person, connection or account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Another connection is in progress, or this one can no longer be used","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/v1/accounts":{"get":{"operationId":"app_list_accounts","summary":"List a customer's LinkedIn accounts as this person sees them.","security":[{"AppKey":[]}],"x-promoter-app-key":true,"parameters":[{"name":"customer_id","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AppExternalId"}},{"name":"person_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AppExternalId"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["accounts","senders"],"properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/AppAccount"}},"senders":{"type":"object","additionalProperties":false,"required":["used_by_app","limit"],"properties":{"used_by_app":{"type":"integer"},"limit":{"type":"integer"}}}}}}}},"400":{"description":"Credentials in the address, or a workspace header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked app key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Called from a browser, app suspended, or not this person's account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The app has no such customer, person, connection or account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Another connection is in progress, or this one can no longer be used","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/v1/accounts/{account_id}/sending":{"post":{"operationId":"app_set_sending","summary":"Turn sending on or off. Only the person whose LinkedIn it is; an admin may only turn it off.","security":[{"AppKey":[]}],"x-promoter-app-key":true,"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["customer_id","enabled"],"properties":{"customer_id":{"$ref":"#/components/schemas/AppExternalId"},"person_id":{"$ref":"#/components/schemas/AppExternalId"},"enabled":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["account"],"properties":{"account":{"$ref":"#/components/schemas/AppAccount"}}}}}},"400":{"description":"Credentials in the address, or a workspace header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked app key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Called from a browser, app suspended, or not this person's account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The app has no such customer, person, connection or account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Another connection is in progress, or this one can no longer be used","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/v1/people/{person_id}":{"delete":{"operationId":"app_remove_person","summary":"The person loses access and their senders stop. Safe to repeat.","security":[{"AppKey":[]}],"x-promoter-app-key":true,"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/AppExternalId"}},{"name":"customer_id","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AppExternalId"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["removed"],"properties":{"removed":{"const":true}}}}}},"400":{"description":"Credentials in the address, or a workspace header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked app key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Called from a browser, app suspended, or not this person's account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The app has no such customer, person, connection or account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Another connection is in progress, or this one can no longer be used","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/outreach":{"post":{"operationId":"start_outreach","summary":"One call: create a campaign for these LinkedIn profiles and start it. People are profile addresses, or objects with linkedin_url and personal details. With one sender switched on, account_id may be left out. Sending follows the sender’s own pace, hours and limits, and stops for anyone who replies. Use start: false to leave a draft for review.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["campaigns:write","leads:write","sending:write"]],"x-promoter-roles":["owner","admin","operator"],"x-mcp-tools":["promoter_start_outreach"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"connection_request"},"note":{"default":"","type":"string","maxLength":300},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"minutes":{"type":"integer","minimum":5,"maximum":129600,"multipleOf":5},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","minutes"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"duration":{"type":"object","properties":{"value":{"type":"integer","minimum":1,"maximum":129600},"unit":{"type":"string","enum":["minutes","hours","days"]}},"required":["value","unit"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","duration"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"message"},"text":{"type":"string","minLength":1,"maxLength":8000},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"like"},"reaction":{"type":"string","const":"linkedin_like"},"target":{"type":"object","properties":{"kind":{"type":"string","const":"post"},"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","post_id","author_id"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","reaction","target"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","enum":["connected","invitation_pending"]}},"required":["type","id","on_true","on_false","on_unknown","condition"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","const":"exists"}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":200}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator","value"],"additionalProperties":false}]}},"sequence_format":{"type":"string","enum":["linear_v1","graph_v1"]},"entry_node_id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"name":{"type":"string","minLength":1,"maxLength":120},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"people":{"minItems":1,"maxItems":1000,"type":"array","items":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"object","properties":{"first_name":{"type":"string","maxLength":100},"last_name":{"type":"string","maxLength":100},"display_name":{"type":"string","maxLength":200},"company_name":{"type":"string","maxLength":200},"job_title":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":300},"linkedin_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["linkedin_url"],"additionalProperties":false}]}},"start":{"type":"boolean"}},"required":["steps","name","people"],"additionalProperties":false}}}}}},"/api/watches":{"get":{"operationId":"list_watches","summary":"List the workspace’s watches: standing searches for LinkedIn posts whose audience is the buyer, with what each found and added.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_watches"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create_watch","summary":"Turn a request like \"connect me with people interested in IAM\" into a watch: choose keywords for the posts and the words that mark a buyer. The watch searches through the sender’s own LinkedIn account a few times a day, scores each post by its audience, and with a campaign adds only buyers from posts above the bar. Pass campaign (name and steps) to make its campaign in the same call; it starts when the first people arrive. Reads only: it never sends by itself.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read","campaigns:write","leads:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_create_watch"],"parameters":[{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"201":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"prompt":{"description":"The request in the person’s own words, kept for reference.","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"keywords":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"description":"What to search LinkedIn posts for, one subject per phrase, such as \"identity and access management\"."},"buyer_titles":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"description":"Words in a buyer’s line under their name, such as \"ciso\" or \"head of security\". Whole words are matched."},"exclude_words":{"description":"Extra words that rule a person out. Sellers, recruiters and job seekers are always ruled out.","minItems":0,"maxItems":40,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"min_buyer_share":{"description":"A post is used only when at least this share of the people reacting to it look like buyers. Default 0.1.","type":"number","minimum":0,"maximum":1},"daily_people":{"description":"The most people added to the campaign in 24 hours. Default 10.","type":"integer","minimum":1,"maximum":50},"outreach":{"description":"Off: posts are found and scored and nobody is added. On: buyers from posts above the bar are added to the campaign.","type":"boolean"},"campaign":{"type":"object","properties":{"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"connection_request"},"note":{"default":"","type":"string","maxLength":300},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"minutes":{"type":"integer","minimum":5,"maximum":129600,"multipleOf":5},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","minutes"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"duration":{"type":"object","properties":{"value":{"type":"integer","minimum":1,"maximum":129600},"unit":{"type":"string","enum":["minutes","hours","days"]}},"required":["value","unit"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","duration"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"message"},"text":{"type":"string","minLength":1,"maxLength":8000},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"like"},"reaction":{"type":"string","const":"linkedin_like"},"target":{"type":"object","properties":{"kind":{"type":"string","const":"post"},"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","post_id","author_id"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","reaction","target"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","enum":["connected","invitation_pending"]}},"required":["type","id","on_true","on_false","on_unknown","condition"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","const":"exists"}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":200}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator","value"],"additionalProperties":false}]}},"sequence_format":{"type":"string","enum":["linear_v1","graph_v1"]},"entry_node_id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"name":{"type":"string","minLength":1,"maxLength":120}},"required":["steps","name"],"additionalProperties":false}},"required":["name","keywords","buyer_titles"],"additionalProperties":false}}}}}},"/api/watches/{watch_id}":{"get":{"operationId":"get_watch","summary":"Read one watch and its feed: the posts found, the share of buyers among the people reacting to each, and whether it was used.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_get_watch"],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update_watch","summary":"Change a watch: pause or resume it, switch outreach on or off, choose its campaign, or change its keywords, buyer words and limits.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read","campaigns:write","leads:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_update_watch"],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"prompt":{"description":"The request in the person’s own words, kept for reference.","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaign_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"keywords":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"description":"What to search LinkedIn posts for, one subject per phrase, such as \"identity and access management\"."},"buyer_titles":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"description":"Words in a buyer’s line under their name, such as \"ciso\" or \"head of security\". Whole words are matched."},"exclude_words":{"description":"Extra words that rule a person out. Sellers, recruiters and job seekers are always ruled out.","minItems":0,"maxItems":40,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"min_buyer_share":{"description":"A post is used only when at least this share of the people reacting to it look like buyers. Default 0.1.","type":"number","minimum":0,"maximum":1},"daily_people":{"description":"The most people added to the campaign in 24 hours. Default 10.","type":"integer","minimum":1,"maximum":50},"outreach":{"description":"Off: posts are found and scored and nobody is added. On: buyers from posts above the bar are added to the campaign.","type":"boolean"},"state":{"type":"string","enum":["running","paused"]}},"required":[],"additionalProperties":false}}}}},"delete":{"operationId":"delete_watch","summary":"Remove a watch and its feed. Its campaign and the people already added stay.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read","campaigns:write","leads:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_delete_watch"],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/watches/{watch_id}/run":{"post":{"operationId":"run_watch","summary":"Run one watch now instead of waiting for its next turn. At most once every 10 minutes; uses the sender’s daily read allowance.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read","campaigns:write","leads:write"]],"x-promoter-roles":["owner"],"x-mcp-tools":["promoter_run_watch"],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}}}},"/api/campaigns/{campaign_id}/people":{"get":{"operationId":"list_campaign_people","summary":"Read one page of a campaign’s recipients, most recently changed first. Filter by state or search by name or company. Pass pagination.next_cursor back as cursor for the next page.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_campaign_people"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"state","in":"query","required":false,"schema":{"enum":["waiting","in_progress","replied","needs_review","done","stopped"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"ids","in":"query","required":false,"schema":{"type":"string","description":"Up to 100 recipient ids, comma separated."}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["people","pagination"],"properties":{"people":{"type":"array","items":{"type":"object","additionalProperties":true}},"pagination":{"type":"object","required":["limit","has_more","next_cursor"],"properties":{"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/campaigns/{campaign_id}/activity":{"get":{"operationId":"list_campaign_activity","summary":"Read one page of a campaign’s actions, newest first, without message bodies. Pass id to read one action with its message.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"x-mcp-tools":["promoter_list_campaign_activity"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"query","required":false,"schema":{"type":"string","format":"uuid","description":"Read this one action, with its message."}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["actions","pagination"],"properties":{"actions":{"type":"array","items":{"type":"object","additionalProperties":true}},"pagination":{"type":"object","required":["limit","has_more","next_cursor"],"properties":{"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/campaigns/{campaign_id}/start-review":{"get":{"operationId":"review_campaign_start","summary":"Count every recipient who would be held for a missing personal detail, with the first examples.","security":[{"WorkspaceApiKey":[]},{"UserSession":[]}],"x-promoter-scopes":[["read"]],"x-promoter-roles":["owner","admin","operator","viewer"],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/WorkspaceAssertion"}],"responses":{"200":{"description":"Authorized command result. Provider uncertainty remains explicit; no automatic retry.","content":{"application/json":{"schema":{"type":"object","required":["total","unresolved","examples"],"properties":{"total":{"type":"integer"},"unresolved":{"type":"integer"},"examples":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}},"400":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Current workspace entitlement denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or current membership denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The key could not be found in the selected workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key is inactive, expired, or was already rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"API or native provider-read budget exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request rejected or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The rotation result could not be confirmed. Refresh the key list and identify the replacement by rotated_from_id before taking another action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"WorkspaceApiKey":{"type":"http","scheme":"bearer","bearerFormat":"pmk_ workspace API key"},"UserSession":{"type":"http","scheme":"bearer","bearerFormat":"Supabase authenticated user session; human flows only where marked"},"AppKey":{"type":"http","scheme":"bearer","bearerFormat":"pma_ app key, from the app's own server only. Refused on every other route, with an Origin header, and in the address."}},"schemas":{"WorkspaceApiKeyMetadata":{"type":"object","additionalProperties":false,"required":["id","name","key_prefix","scopes","created_at","expires_at","last_used_at","revoked_at"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":80},"key_prefix":{"type":"string","pattern":"^pmk_[A-Za-z0-9_-]{8}$"},"scopes":{"type":"array","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"enum":["read","campaigns:write","leads:write","senders:write","imports:write","team:write","billing:write","sending:write"]}},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"last_used_at":{"type":["string","null"],"format":"date-time"},"revoked_at":{"type":["string","null"],"format":"date-time"},"rotated_from_id":{"type":"string","format":"uuid","description":"Identifies the predecessor of a replacement key."}}},"WorkspaceApiKeyIssue":{"type":"object","additionalProperties":false,"required":["key","token"],"properties":{"key":{"$ref":"#/components/schemas/WorkspaceApiKeyMetadata"},"token":{"type":"string","description":"One-time secret. Store privately before leaving the page.","pattern":"^pmk_[A-Za-z0-9_-]{43}$"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_eligible_at":{"type":"string","format":"date-time","description":"Earliest reported retry time when the current gate has a known reset."}}}}},"TeamJoinLink":{"type":"object","additionalProperties":false,"required":["id","role","expires_at","max_uses","uses"],"properties":{"id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"created_by":{"type":"string","format":"uuid"},"role":{"const":"operator"},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"max_uses":{"type":["integer","null"],"minimum":1,"maximum":2147483647,"description":"Null means unlimited uses before expiry or revocation. Already active members preserve their role without another use. Membership is free."},"uses":{"type":"integer","minimum":0},"revoked_at":{"type":["string","null"],"format":"date-time"}}},"InvitationDelivery":{"type":"object","additionalProperties":false,"required":["id","recipient_email","role","state","provider","provider_accepted","inbox_delivery_confirmed","requires_review"],"properties":{"id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"invitation_id":{"type":["string","null"],"format":"uuid"},"created_by":{"type":"string","format":"uuid"},"recipient_email":{"type":"string","format":"email"},"role":{"enum":["admin","operator","viewer"]},"state":{"enum":["awaiting_capacity","prepared","attempted","accepted","failed","review","blocked"]},"provider":{"const":"resend"},"provider_id":{"type":["string","null"]},"provider_accepted":{"type":"boolean","description":"Mail provider acceptance only; not proof of inbox delivery."},"inbox_delivery_confirmed":{"const":false},"requires_review":{"type":"boolean"},"error_code":{"type":["string","null"]},"expires_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"attempted_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"}}},"TeamCapacity":{"type":"object","properties":{"paid_seats":{"type":["integer","null"],"minimum":0},"active_members":{"type":["integer","null"],"minimum":0},"pending_invitations":{"type":["integer","null"],"minimum":0},"required_seats":{"type":["integer","null"],"minimum":0},"additional":{"type":["integer","null"],"minimum":0},"available_seats":{"type":["integer","null"],"minimum":0},"unlimited":{"type":"boolean"},"admission_allowed":{"type":"boolean"},"reason":{"type":["string","null"]}}},"EmailInvitationResult":{"type":"object","required":["invitation","delivery"],"properties":{"invitation":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}]},"delivery":{"$ref":"#/components/schemas/InvitationDelivery"},"capacity":{"$ref":"#/components/schemas/TeamCapacity"}}},"BusinessProfileResult":{"type":"object","additionalProperties":false,"required":["profile","complete","missing","optional_missing"],"description":"What the workspace has told Promoter about its business. Every field is optional text; missing lists the main fields still empty.","properties":{"profile":{"type":"object","additionalProperties":false,"properties":{"website":{"type":["string","null"]},"what_we_sell":{"type":["string","null"]},"ideal_customer":{"type":["string","null"]},"proof":{"type":["string","null"]},"tone":{"type":["string","null"]},"call_to_action":{"type":["string","null"]},"booking_url":{"type":["string","null"]},"languages":{"type":["string","null"]},"avoid":{"type":["string","null"]},"updated_at":{"type":["string","null"],"format":"date-time"}}},"complete":{"type":"boolean"},"missing":{"type":"array","items":{"enum":["website","what_we_sell","ideal_customer","proof","tone","call_to_action","booking_url","languages","avoid"]}},"optional_missing":{"type":"array","items":{"enum":["website","what_we_sell","ideal_customer","proof","tone","call_to_action","booking_url","languages","avoid"]}}}},"PersonalizationFact":{"type":"object","additionalProperties":false,"required":["value","state","source_kind","source_field","observed_at"],"properties":{"value":{"type":["string","null"]},"state":{"enum":["known","empty","unknown"]},"source_kind":{"type":["string","null"]},"source_field":{"type":["string","null"]},"observed_at":{"type":["string","null"],"format":"date-time"}}},"SequencePreview":{"type":"object","required":["renderer_version","lead_id","rows","valid","facts"],"properties":{"renderer_version":{"enum":["v1","v2"]},"sequence_format":{"enum":["linear_v1","graph_v1"]},"sequence_version":{"type":"integer","minimum":1},"lead_id":{"type":"string","format":"uuid"},"valid":{"type":"boolean"},"rows":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"index":{"type":"integer","minimum":0},"node_id":{"type":["string","null"]},"type":{"enum":["connection_request","wait","message","like","condition"]},"template":{"type":"string"},"text":{"type":["string","null"]},"missing_fields":{"type":"array","items":{"type":"string"}},"error":{"type":"string"}}}},"facts":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PersonalizationFact"}}}},"ConditionDecision":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"account_id":{"type":"string","format":"uuid"},"campaign_id":{"type":"string","format":"uuid"},"enrollment_id":{"type":"string","format":"uuid"},"sequence_version":{"type":"integer","minimum":1},"node_id":{"type":"string"},"condition":{"enum":["connected","invitation_pending","data"]},"outcome":{"enum":["true","false","unknown"]},"target_node_id":{"type":"string"},"observation":{"type":"object","description":"Bounded identity/freshness/source evidence, never a provider profile or credential."},"observed_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"}}},"CampaignSequence":{"type":"object","properties":{"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"connection_request"},"note":{"default":"","type":"string","maxLength":300},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"minutes":{"type":"integer","minimum":5,"maximum":129600,"multipleOf":5},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","minutes"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"duration":{"type":"object","properties":{"value":{"type":"integer","minimum":1,"maximum":129600},"unit":{"type":"string","enum":["minutes","hours","days"]}},"required":["value","unit"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","duration"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"message"},"text":{"type":"string","minLength":1,"maxLength":8000},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"like"},"reaction":{"type":"string","const":"linkedin_like"},"target":{"type":"object","properties":{"kind":{"type":"string","const":"post"},"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","post_id","author_id"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","reaction","target"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","enum":["connected","invitation_pending"]}},"required":["type","id","on_true","on_false","on_unknown","condition"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","const":"exists"}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":200}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator","value"],"additionalProperties":false}]}},"sequence_format":{"type":"string","enum":["linear_v1","graph_v1"]},"entry_node_id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"}},"required":["steps"],"additionalProperties":false},"CampaignDraft":{"anyOf":[{"type":"object","properties":{"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"connection_request"},"note":{"default":"","type":"string","maxLength":300},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"minutes":{"type":"integer","minimum":5,"maximum":129600,"multipleOf":5},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","minutes"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"duration":{"type":"object","properties":{"value":{"type":"integer","minimum":1,"maximum":129600},"unit":{"type":"string","enum":["minutes","hours","days"]}},"required":["value","unit"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","duration"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"message"},"text":{"type":"string","minLength":1,"maxLength":8000},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"like"},"reaction":{"type":"string","const":"linkedin_like"},"target":{"type":"object","properties":{"kind":{"type":"string","const":"post"},"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","post_id","author_id"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","reaction","target"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","enum":["connected","invitation_pending"]}},"required":["type","id","on_true","on_false","on_unknown","condition"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","const":"exists"}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":200}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator","value"],"additionalProperties":false}]}},"sequence_format":{"type":"string","enum":["linear_v1","graph_v1"]},"entry_node_id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"name":{"type":"string","minLength":1,"maxLength":120},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["steps","name","account_id"],"additionalProperties":false},{"type":"object","properties":{"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"connection_request"},"note":{"default":"","type":"string","maxLength":300},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"minutes":{"type":"integer","minimum":5,"maximum":129600,"multipleOf":5},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","minutes"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"wait"},"duration":{"type":"object","properties":{"value":{"type":"integer","minimum":1,"maximum":129600},"unit":{"type":"string","enum":["minutes","hours","days"]}},"required":["value","unit"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","duration"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"message"},"text":{"type":"string","minLength":1,"maxLength":8000},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"like"},"reaction":{"type":"string","const":"linkedin_like"},"target":{"type":"object","properties":{"kind":{"type":"string","const":"post"},"post_id":{"type":"string","minLength":1,"maxLength":500},"author_id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","post_id","author_id"],"additionalProperties":false},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"next":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]}},"required":["type","reaction","target"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","enum":["connected","invitation_pending"]}},"required":["type","id","on_true","on_false","on_unknown","condition"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","const":"exists"}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"condition"},"id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"on_true":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_false":{"anyOf":[{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},{"type":"string","enum":["complete","review"]}]},"on_unknown":{"type":"string","const":"review"},"condition":{"type":"string","const":"data"},"field":{"type":"string","enum":["first_name","last_name","display_name","company_name","job_title","location"]},"operator":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":200}},"required":["type","id","on_true","on_false","on_unknown","condition","field","operator","value"],"additionalProperties":false}]}},"sequence_format":{"type":"string","enum":["linear_v1","graph_v1"]},"entry_node_id":{"type":"string","pattern":"^(?!(?:complete|review)$)[a-z][a-z0-9_]{0,39}$"},"name":{"type":"string","minLength":1,"maxLength":120},"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contacts":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"first_name":{"type":"string","maxLength":100},"last_name":{"type":"string","maxLength":100},"display_name":{"type":"string","maxLength":200},"company_name":{"type":"string","maxLength":200},"job_title":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":300},"linkedin_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["linkedin_url"],"additionalProperties":false}}},"required":["steps","name","account_id","contacts"],"additionalProperties":false}]},"PersonProfile":{"type":"object","additionalProperties":false,"description":"Read-only, workspace-cached LinkedIn details. Unknown fields are omitted or null.","properties":{"name":{"type":["string","null"]},"role":{"type":["string","null"]},"company":{"type":["string","null"]},"photo_url":{"type":["string","null"],"format":"uri"}}},"LibraryLead":{"type":"object","additionalProperties":false,"properties":{"id":{"type":["string","null"]},"workspace_id":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"normalized_linkedin_url":{"type":["string","null"]},"personalization":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PersonalizationFact"}},"person_profile":{"$ref":"#/components/schemas/PersonProfile"},"revision":{"type":"integer","minimum":1},"status":{"enum":["new","qualified","contacted","replied","not_interested"]},"notes":{"type":["string","null"]},"suppressed":{"type":"boolean"},"suppression_reason":{"type":["string","null"]},"suppressed_at":{"type":["string","null"]},"suppressed_by":{"type":["string","null"]},"archived_at":{"type":["string","null"]},"archived_by":{"type":["string","null"]},"created_at":{"type":["string","null"]},"updated_at":{"type":["string","null"]}}},"DiscoveryJob":{"type":"object","description":"Safe workspace import progress. No lease tokens, credentials or raw provider payloads.","properties":{"id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"account_id":{"type":"string","format":"uuid"},"list_id":{"type":["string","null"],"format":"uuid"},"source_kind":{"enum":["sales_navigator","salesnav_url","salesnav_list","post_reactions","post_comments"]},"source":{"type":"object"},"state":{"enum":["queued","running","waiting_budget","paused","review","completed","cancelled"]},"max_rows":{"type":"integer","minimum":1,"maximum":1000},"stats":{"type":"object","properties":{"fetched":{"type":"integer","minimum":0},"imported":{"type":"integer","minimum":0},"duplicates":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0},"unresolved":{"type":"integer","minimum":0},"pending":{"type":"integer","minimum":0}}},"next_action_at":{"type":["string","null"],"format":"date-time"},"reason":{"type":["string","null"]},"source_exhausted":{"type":"boolean"},"limit_reached":{"type":"boolean"},"last_checkpoint_at":{"type":["string","null"],"format":"date-time"}}},"AppExternalId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,128}$","description":"Your own id for a customer or a person."},"AppAccount":{"type":"object","additionalProperties":false,"required":["id","name","status","sending_enabled","own","needs_reconnect"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"status":{"enum":["connected","needs_reconnect","unavailable"]},"sending_enabled":{"type":"boolean"},"own":{"type":"boolean"},"needs_reconnect":{"type":"boolean"}}}},"parameters":{"WorkspaceAssertion":{"in":"header","name":"X-Promoter-Workspace-Id","required":false,"description":"Optional assertion; must match API key binding. Never selects a different key workspace.","schema":{"type":"string","format":"uuid"}}}}}