{"openapi":"3.1.0","info":{"title":"HyperC CRM","description":"\nShared CRM for agents selling HyperC.\n\n**Authentication.** One API key for the whole service. Send it as\n`Authorization: Bearer <key>` or `X-API-Key: <key>`.\n\n**Who did the work.** Register an agent with `POST /v1/agents`, then send\n`X-Agent-Id` on later calls. The key is shared. The header is the identity\nwritten onto records, activities, and the sync log. `POST /v1/agents` accepts\nthe header when it names the agent being registered. Any other route returns\n`400 agent_not_registered` for an id that has not been registered.\n\n**Synchronize.** `GET /v1/sync?since=<cursor>` returns changes after that\ncursor. Keep the returned `cursor`. Claim a task with `POST /v1/tasks/{id}/claim`\nso two agents do not pick up the same job. Send `Idempotency-Key` on writes\nthat may be retried. Send the record `version` on updates; a mismatch is\n`409 version_conflict`. A PATCH of `tags` or `custom` by an agent who is not\n`owner_agent_id` is `409 foreign_edit` unless the request sends\n`X-Allow-Foreign-Edit: true`. Other fields do not need that header.\n\n**Paging and retries.** Contact, account, deal, and lead lists are ordered by\n`created_at`, then `id`, so an update does not move a row onto a page you already\nread. New rows appear at the end. If a call fails with a connection error, a TLS\nreset, or `503` because the process is restarting, retry the same Idempotency-Key.\nA replay returns the first response.\n\n**Tickets.** `POST /v1/tickets` files an `issue` or a `suggestion`. Comment with\n`POST /v1/tickets/{id}/comments`. Move status with\n`POST /v1/tickets/{id}/transition`: open, accepted, in_progress, done,\ndeclined, or duplicate. A declined ticket needs a resolution. A duplicate\nnames the other ticket. Open suggestions are the queue of changes to make.\n\n**Channels.** A contact has as many reach channels as you need. `on_channel` is the\none they are on. Filter with `GET /v1/contacts?on=linkedin` (a kind, not a value).\nExact dedupe is `GET /v1/contacts?channel_kind=linkedin&channel_value=<url>`, or\n`POST /v1/contacts/lookup`. Email, phone, and LinkedIn ship with the service;\na missing shipped kind is added on startup, and an existing kind is left as stored.\nAdd another with `POST /v1/channel-kinds`, then `POST /v1/contacts/{id}/channels`.\nEmail and phone on the contact stay in sync with the primary channel of the kind\nthat fills that field. A duplicate email or unique channel is `409` and includes\n`contact_id` and `version`. URL channels treat www, a trailing slash, and the query\nstring as the same value.\n\n**People and companies.** `aliases` on a contact and `legal_name` / `aka` on an\naccount are searched by list `q` and by `/v1/search` after the record is saved.\n`relationship` is the partnership stage: approved, rejected, waiting, needs-action,\nor on-hold. `last_contact_on` is `YYYY-MM-DD`. Account status `internal` is the\noperating company, not a sales prospect. Account `kind` is separate from status:\ncustomer, investor, partner, vendor, internal, or other. Omitted means unknown.\n`GET /v1/accounts?kind=investor` and `?exclude_kind=investor` use it. `apply_url`\nand `application_status` are the fundraising application. The `fundraising` deal\npipeline is added when that key is missing. Existing pipelines are left as stored.\nLead and deal `source` is a label of at most 120 characters, not an evidence URL.\nTags are stored lowercase, at most 20. Each tag is 1–40 characters matching\n`^[a-z0-9][a-z0-9 ._-]{0,39}$` after spaces are collapsed. A colon is not allowed.\nThe service does not truncate a tag. A longer category belongs in `custom` or `description`.\n\n**Customer description.** Every account and contact has `profile`: `summary`, `industry`,\n`person_type`, and `classifications`. `summary` is the same text as `description`.\nOn an account, `profile.industry` is the `industry` column. On a contact, industry\nlives only on the profile. `person_type` is the type of person, such as founder or\ngeneral partner. Define other fields with `POST /v1/classification-fields`\n(`text`, `number`, `choice`, or `multi`), then set `profile.classifications`.\nA null value clears a stored key. On create, a null industry, person type, or\nplace is left blank. Omitted keys stay. `industry`, `person_type`, and\n`summary` are reserved and cannot be field keys. Filter with `industry`,\n`person_type`, or `classification=field:value`. List `q` matches the type of\nperson and classification values after they are stored. Search picks them up\nthe next time the record is saved.\n\nShipped classification fields, added when the key is missing: `contact_org_type`\n(fund, consulting, personal, operator), `product_fit` (scout, builder,\nai_consulting), and `potential_role` (investor, customer, channel). These are\nfit labels. Scout and Business Builder are capabilities inside paid plans, not\nseparate catalog SKUs, so they are not products. `account.kind` stays the\ncompany relationship. An existing field is left as stored. If `contact_type`\nor `product_match` is already registered, that field stays and the shipped\nkey is not added beside it.\n\nOn this book the official keys are `contact_type`, `product_match`, and `potential_role`.\n`contact_type` is fund, consulting, or personal. Angels and general partners stay fund.\nFounders, CEOs, and individual operators stay personal. There is no operator choice.\n`product_match` is scout, builder, or ai-consulting. `potential_role` is channel, customer,\nor investor. Do not register `contact_org_type` or `product_fit` beside those fields.\n\nAccount classification fields, added when the key is missing: `stage`\n(Pre-Seed, Pre-Seed to A, Seed, Seed to A, Series A), `focus` (sector choices,\nseveral allowed), `route_type` (apply-form, finish-apply-form, already-applied,\npitch-email, linkedin-connect, linkedin-warm (Atrium outreach), existing-contact,\nnot-recommended), `best_route`, `response_sla`, `linkedin_url`, `fit_score`, and\n`warm_paths`. These apply to accounts. Filter with `classification=stage:Seed`\nor `classification=focus:AI`. `linkedin_url` is text on the account. Accounts do\nnot have channels. `check_size` is not a shipped field. The first startup that\nsees no `investor_fields_v1` setting copies these from `custom` when the\nclassification is still blank and the value fits the field. A focus phrase is\nsplit on commas. A warm path longer than 400 characters is left in custom.\nCustom is left in place. A later edit is not copied again.\n\nA contact profile also has `location`, `city`, `region`, and `country`.\n`GET /v1/contacts?location=` matches any of those exactly. This is not\n`account.region`.\n\n`GET /v1/reports/profile-coverage` counts live contacts whose profile fields are filled or blank.\n`owner_agent_id` limits that count to one owner. `GET /v1/contacts?missing=industry,title,classification:contact_type`\nreturns contacts where every listed field is blank. `POST /v1/contacts/{id}/profile/preview` with a PATCH body\nreports `would_fill`, `would_replace`, and `would_clear`, and does not write the contact.\n\nThe first startup that sees no `profile_copy_v1` setting copies three empty\nfields from data already stored on the contact: `profile.industry` from the\nlinked account industry, `outreach_status` from `custom.outreach_status` or a\nsingle `outreach-*` tag when the value is invited, accepted, declined,\ncall_requested, queued, or connected, and `relationship` from\n`custom.partnership_status` or one partnership tag when it is one of the\npartnership stages. A later edit is not copied again.\nThe first startup that sees no `outreach_extra_v1` setting also copies blank\n`outreach_status` when the stored value is skipped, not_found, or inbound_unanswered.\nCustom is left in place. `outreach_status` is invited, accepted, declined, call_requested,\nqueued, connected, skipped, not_found, or inbound_unanswered.\n\nCreating an account with a name that already exists still succeeds. The response includes\n`possible_duplicates` with the other account ids. Existing duplicate companies are left as stored.\n\n**Consent.** A channel with no consent row is `unknown`. Creating a contact, adding\na channel, or logging a sent email does not opt anyone in. Set `consent` to\n`opted_in` or `opted_out`, `deliverability` to unknown, deliverable, bounced,\ninvalid, blocked, or spam_report, and `opt_outs` for groups such as `marketing`.\n`GET /v1/contacts?mailable=email` returns only explicit opt-ins that are not\nsuppressed and have no opt-out. Add `for_group=marketing` to block only that group.\n`opt_out_group=marketing` lists people who opted out of it. Updates send the contact\n`version`. These fields are on the contact in list, get, and the sync payload.\n\n**Duplicates.** `POST /v1/contacts?dedupe=name` or `dedupe=channel` returns\n`409 duplicate_contact` with the existing id. Omit `dedupe` to allow the same name.\n`POST /v1/contacts/{id}/merge` with `{from_id, version}` moves channels, activities,\nleads, deals, tasks, tags, and missing custom keys onto the survivor. The old id\nstays and `GET` returns `409 merged` with `merged_into_id`. `DELETE` soft-deletes.\n`POST /v1/contacts/{id}/restore` brings back the same id. `?hard=true` removes the\nrow. A soft-deleted email still returns `409 email_taken` with `deleted: true`.\n\n**Other agents' records.** If `X-Agent-Id` is not the `owner_agent_id`, a PATCH\nthat changes `tags` or `custom` is `409 foreign_edit`. Send `X-Allow-Foreign-Edit: true`\nto do it anyway. Other fields can be filled without that header.\n\n**Activities.** `PATCH /v1/activities/{id}` corrects `contact_id`, `account_id`,\n`deal_id`, `lead_id`, `subject`, `body`, or `metadata`. There is no version column\non an activity. `DELETE /v1/activities/{id}` voids it: lists hide it, search drops\nit, and the sync log records `voided`. The same Idempotency-Key on create still\nreplays the original response. A wrong link is fixed with PATCH, not by replaying\nthat key.\n\n**Bulk import.** `POST /v1/accounts/bulk` and `POST /v1/contacts/bulk` take up to\n100 rows. Each row has `mode` `create`, `upsert`, or `fill_empty`, and `match`\n`domain` or `external_id` for accounts, `email`, `external_id`, or `channel` for\ncontacts. The response lists `created`, `matched`, `conflict`, or `error` per row.\n`fill_empty` writes only blank fields and missing custom keys. `upsert` replaces\nthe fields you send, including `custom`. Exact lookup is `GET /v1/accounts?domain=`\nand `GET /v1/contacts?email=`.\n\n**Catalog.** Products, prices, and pipeline stages are data. Change them\nthrough the API or `crm products import`. Sales logic does not special-case a SKU.\nThe first launch loads the current HyperC offers from `catalog.json` and the\ndefault pipelines from `pipelines.json`. Editing those files does nothing to a\ndatabase that already has rows; import or call the API.\n","version":"1.0.0"},"paths":{"/v1":{"get":{"summary":"Directory","operationId":"directory_v1_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Directory V1 Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Service"]}},"/v1/agents":{"post":{"summary":"Post Agent","operationId":"post_agent_v1_agents_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Agents"]},"get":{"summary":"Get Agents","operationId":"get_agents_v1_agents_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Agents"]}},"/v1/agents/{agent_id}":{"get":{"summary":"Get Agent","operationId":"get_agent_v1_agents__agent_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Agents"]},"patch":{"summary":"Patch Agent","operationId":"patch_agent_v1_agents__agent_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Agents"]}},"/v1/agents/{agent_id}/heartbeat":{"post":{"summary":"Heartbeat","operationId":"heartbeat_v1_agents__agent_id__heartbeat_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Agents"]}},"/v1/accounts":{"get":{"summary":"Get Accounts","operationId":"get_accounts_v1_accounts_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name, domain, description, custom fields, legal name, or an alternate name.","title":"Q"},"description":"Name, domain, description, custom fields, legal name, or an alternate name."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"prospect, customer, churned, partner, or internal.","title":"Status"},"description":"prospect, customer, churned, partner, or internal."},{"name":"owner_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"relationship","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Partnership stage: approved, rejected, waiting, needs-action, or on-hold.","title":"Relationship"},"description":"Partnership stage: approved, rejected, waiting, needs-action, or on-hold."},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact source label, case-insensitive.","title":"Source"},"description":"Exact source label, case-insensitive."},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Account kind: customer, investor, partner, vendor, internal, other, or unset. Separate from status.","title":"Kind"},"description":"Account kind: customer, investor, partner, vendor, internal, other, or unset. Separate from status."},{"name":"exclude_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Hide accounts of this kind. Accounts with no kind stay in the list.","title":"Exclude Kind"},"description":"Hide accounts of this kind. Accounts with no kind stay in the list."},{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact domain. https:// and www. are normalized.","title":"Domain"},"description":"Exact domain. https:// and www. are normalized."},{"name":"application_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Fundraising application status: not_started, submitted, in_review, accepted, or declined.","title":"Application Status"},"description":"Fundraising application status: not_started, submitted, in_review, accepted, or declined."},{"name":"industry","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact industry, case-insensitive.","title":"Industry"},"description":"Exact industry, case-insensitive."},{"name":"person_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact type of person, case-insensitive.","title":"Person Type"},"description":"Exact type of person, case-insensitive."},{"name":"classification","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:value. The field must exist. Match is case-insensitive.","title":"Classification"},"description":"field:value. The field must exist. Match is case-insensitive."},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Accounts"]},"post":{"summary":"Post Account","description":"Create an account. When another account has the same name, the body includes possible_duplicates and the create still succeeds.","operationId":"post_account_v1_accounts_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Accounts"]}},"/v1/accounts/bulk":{"post":{"summary":"Post Accounts Bulk","description":"Up to 100 accounts. Each row is create, upsert, or fill_empty, matched by domain or external_id.","operationId":"post_accounts_bulk_v1_accounts_bulk_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Allow-Foreign-Edit","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"true, 1, or yes changes tags or custom on an account owned by another agent. Otherwise that row is 409 foreign_edit.","title":"X-Allow-Foreign-Edit"},"description":"true, 1, or yes lets this agent change tags or custom on a record owned by someone else. Without it, that change is 409 foreign_edit."},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBulkWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"409":{"description":"foreign_edit when X-Agent-Id is a different registered agent than owner_agent_id and a row changes tags or custom. Send X-Allow-Foreign-Edit: true to apply those rows. Other fields do not need the header."}},"tags":["Accounts"]}},"/v1/accounts/{account_id}":{"get":{"summary":"Get Account","operationId":"get_account_v1_accounts__account_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Accounts"]},"patch":{"summary":"Patch Account","description":"409 version_conflict if version is stale. 409 foreign_edit if another agent changes tags or custom.","operationId":"patch_account_v1_accounts__account_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"X-Allow-Foreign-Edit","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"true, 1, or yes changes tags or custom on an account owned by another agent. Otherwise that PATCH is 409 foreign_edit.","title":"X-Allow-Foreign-Edit"},"description":"true, 1, or yes lets this agent change tags or custom on a record owned by someone else. Without it, that change is 409 foreign_edit."},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"409":{"description":"version_conflict when the body's version is stale. foreign_edit when X-Agent-Id is a different registered agent than owner_agent_id and the body changes tags or custom. Send X-Allow-Foreign-Edit: true to apply that change. Other fields do not need the header. No actor, or no owner, is allowed."}},"tags":["Accounts"]},"delete":{"summary":"Remove Account","operationId":"remove_account_v1_accounts__account_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Accounts"]}},"/v1/channel-kinds":{"get":{"summary":"Get Channel Kinds","operationId":"get_channel_kinds_v1_channel_kinds_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"active","title":"Status"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelKindList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Channels"]},"post":{"summary":"Post Channel Kind","operationId":"post_channel_kind_v1_channel_kinds_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelKindWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelKindRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Channels"]}},"/v1/channel-kinds/{key}":{"get":{"summary":"Get Channel Kind","operationId":"get_channel_kind_v1_channel_kinds__key__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Channels"]},"patch":{"summary":"Patch Channel Kind","operationId":"patch_channel_kind_v1_channel_kinds__key__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelKindPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Channels"]},"delete":{"summary":"Remove Channel Kind","operationId":"remove_channel_kind_v1_channel_kinds__key__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"hard","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Hard"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Channels"]}},"/v1/classification-fields":{"get":{"summary":"Get Classification Fields","operationId":"get_classification_fields_v1_classification_fields_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"active","title":"Status"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationFieldList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Classification"]},"post":{"summary":"Post Classification Field","operationId":"post_classification_field_v1_classification_fields_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationFieldWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationFieldRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Classification"]}},"/v1/classification-fields/{key}":{"get":{"summary":"Get Classification Field","operationId":"get_classification_field_v1_classification_fields__key__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationFieldRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Classification"]},"patch":{"summary":"Patch Classification Field","operationId":"patch_classification_field_v1_classification_fields__key__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationFieldPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassificationFieldRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Classification"]},"delete":{"summary":"Remove Classification Field","operationId":"remove_classification_field_v1_classification_fields__key__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"hard","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Hard"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Classification"]}},"/v1/contacts":{"get":{"summary":"Get Contacts","operationId":"get_contacts_v1_contacts_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive match on name, email, title, description, custom fields, aliases, and channel values. Results are ordered by created_at, then id.","title":"Q"},"description":"Case-insensitive match on name, email, title, description, custom fields, aliases, and channel values. Results are ordered by created_at, then id."},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"owner_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"on","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Preferred channel kind (the contact's on_channel), for example linkedin. This is not a value filter.","title":"On"},"description":"Preferred channel kind (the contact's on_channel), for example linkedin. This is not a value filter."},{"name":"channel_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With channel_value, exact dedupe lookup. Kind key such as linkedin, email, or phone.","title":"Channel Kind"},"description":"With channel_value, exact dedupe lookup. Kind key such as linkedin, email, or phone."},{"name":"channel_value","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With channel_kind, the exact channel value. Email is lowercased. URL kinds ignore www, a trailing slash, the query string, and the fragment.","title":"Channel Value"},"description":"With channel_kind, the exact channel value. Email is lowercased. URL kinds ignore www, a trailing slash, the query string, and the fragment."},{"name":"relationship","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Partnership stage: approved, rejected, waiting, needs-action, or on-hold.","title":"Relationship"},"description":"Partnership stage: approved, rejected, waiting, needs-action, or on-hold."},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact source label, case-insensitive.","title":"Source"},"description":"Exact source label, case-insensitive."},{"name":"outreach_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Outreach state: invited, accepted, declined, call_requested, queued, connected, skipped, not_found, or inbound_unanswered.","title":"Outreach Status"},"description":"Outreach state: invited, accepted, declined, call_requested, queued, connected, skipped, not_found, or inbound_unanswered."},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact email. Stored lowercase.","title":"Email"},"description":"Exact email. Stored lowercase."},{"name":"channel_consent","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"unknown, opted_in, or opted_out. unknown includes channels with no consent row. A missing row is not opted in.","title":"Channel Consent"},"description":"unknown, opted_in, or opted_out. unknown includes channels with no consent row. A missing row is not opted in."},{"name":"consent_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Limit channel_consent, deliverability, and opt_out_group to this kind.","title":"Consent Kind"},"description":"Limit channel_consent, deliverability, and opt_out_group to this kind."},{"name":"deliverability","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"unknown, deliverable, bounced, invalid, blocked, or spam_report.","title":"Deliverability"},"description":"unknown, deliverable, bounced, invalid, blocked, or spam_report."},{"name":"mailable","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kind key, such as email. Only contacts with an explicit opted_in channel of that kind, deliverable or unknown, and no blocking opt-out.","title":"Mailable"},"description":"Kind key, such as email. Only contacts with an explicit opted_in channel of that kind, deliverable or unknown, and no blocking opt-out."},{"name":"for_group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With mailable, block only this opt-out group. Other groups on that channel stay allowed.","title":"For Group"},"description":"With mailable, block only this opt-out group. Other groups on that channel stay allowed."},{"name":"opt_out_group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Contacts opted out of this group.","title":"Opt Out Group"},"description":"Contacts opted out of this group."},{"name":"deleted","in":"query","required":false,"schema":{"type":"boolean","description":"When true, list only soft-deleted contacts.","default":false,"title":"Deleted"},"description":"When true, list only soft-deleted contacts."},{"name":"industry","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact industry, case-insensitive. Stored on the contact profile.","title":"Industry"},"description":"Exact industry, case-insensitive. Stored on the contact profile."},{"name":"person_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact type of person, case-insensitive.","title":"Person Type"},"description":"Exact type of person, case-insensitive."},{"name":"classification","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:value. The field must exist. Match is case-insensitive.","title":"Classification"},"description":"field:value. The field must exist. Match is case-insensitive."},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact contact location, city, region, or country. Case-insensitive. This is not account.region.","title":"Location"},"description":"Exact contact location, city, region, or country. Case-insensitive. This is not account.region."},{"name":"missing","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated blank fields. A contact is returned only when every listed field is blank. Fields: account_id, title, email, phone, industry, person_type, location, city, region, country, outreach_status, relationship, or classification:<key>.","title":"Missing"},"description":"Comma-separated blank fields. A contact is returned only when every listed field is blank. Fields: account_id, title, email, phone, industry, person_type, location, city, region, country, outreach_status, relationship, or classification:<key>."},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Contacts"]},"post":{"summary":"Post Contact","operationId":"post_contact_v1_contacts_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"dedupe","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional name, channel, or name,channel. Returns 409 duplicate_contact with the existing id. Omit it to allow another contact with the same name.","title":"Dedupe"},"description":"Optional name, channel, or name,channel. Returns 409 duplicate_contact with the existing id. Omit it to allow another contact with the same name."},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Contacts"]}},"/v1/contacts/lookup":{"post":{"summary":"Post Contact Lookup","operationId":"post_contact_lookup_v1_contacts_lookup_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLookup"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLookupResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Contacts"]}},"/v1/contacts/bulk":{"post":{"summary":"Post Contacts Bulk","description":"Up to 100 contacts. Each row is create, upsert, or fill_empty, matched by email, external_id, or channel.","operationId":"post_contacts_bulk_v1_contacts_bulk_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Allow-Foreign-Edit","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"true, 1, or yes changes tags or custom on a contact owned by another agent. Otherwise that row is 409 foreign_edit.","title":"X-Allow-Foreign-Edit"},"description":"true, 1, or yes lets this agent change tags or custom on a record owned by someone else. Without it, that change is 409 foreign_edit."},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactBulkWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"409":{"description":"foreign_edit when X-Agent-Id is a different registered agent than owner_agent_id and a row changes tags or custom. Send X-Allow-Foreign-Edit: true to apply those rows. Other fields do not need the header."}},"tags":["Contacts"]}},"/v1/contacts/{contact_id}":{"get":{"summary":"Get Contact","operationId":"get_contact_v1_contacts__contact_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Contacts"]},"patch":{"summary":"Patch Contact","description":"409 version_conflict if version is stale. 409 foreign_edit if another agent changes tags or custom.","operationId":"patch_contact_v1_contacts__contact_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"X-Allow-Foreign-Edit","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"true, 1, or yes changes tags or custom on a contact owned by another agent. Otherwise that PATCH is 409 foreign_edit.","title":"X-Allow-Foreign-Edit"},"description":"true, 1, or yes lets this agent change tags or custom on a record owned by someone else. Without it, that change is 409 foreign_edit."},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"409":{"description":"version_conflict when the body's version is stale. foreign_edit when X-Agent-Id is a different registered agent than owner_agent_id and the body changes tags or custom. Send X-Allow-Foreign-Edit: true to apply that change. Other fields do not need the header. No actor, or no owner, is allowed."}},"tags":["Contacts"]},"delete":{"summary":"Remove Contact","description":"Soft-delete by default so POST /restore can bring back the same id. hard=true removes the row.","operationId":"remove_contact_v1_contacts__contact_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"hard","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Hard"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Contacts"]}},"/v1/contacts/{contact_id}/profile/preview":{"post":{"summary":"Post Contact Profile Preview","description":"Report which sent fields would fill a blank, replace a value, or clear one. Does not write the contact.","operationId":"post_contact_profile_preview_v1_contacts__contact_id__profile_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Contacts"]}},"/v1/contacts/{contact_id}/restore":{"post":{"summary":"Post Contact Restore","operationId":"post_contact_restore_v1_contacts__contact_id__restore_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Contacts"]}},"/v1/contacts/{contact_id}/merge":{"post":{"summary":"Post Contact Merge","operationId":"post_contact_merge_v1_contacts__contact_id__merge_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMerge"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Contacts"]}},"/v1/contacts/{contact_id}/channels":{"get":{"summary":"Get Contact Channels","operationId":"get_contact_channels_v1_contacts__contact_id__channels_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Channels"]},"post":{"summary":"Post Contact Channel","operationId":"post_contact_channel_v1_contacts__contact_id__channels_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Channels"]}},"/v1/contacts/{contact_id}/channels/{channel_id}":{"patch":{"summary":"Patch Contact Channel","operationId":"patch_contact_channel_v1_contacts__contact_id__channels__channel_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Channels"]},"delete":{"summary":"Remove Contact Channel","operationId":"remove_contact_channel_v1_contacts__contact_id__channels__channel_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Channels"]}},"/v1/pipelines":{"get":{"summary":"Get Pipelines","operationId":"get_pipelines_v1_pipelines_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"object_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Type"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Pipelines"]},"post":{"summary":"Post Pipeline","operationId":"post_pipeline_v1_pipelines_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Pipelines"]}},"/v1/pipelines/{pipeline_id}":{"get":{"summary":"Get Pipeline","operationId":"get_pipeline_v1_pipelines__pipeline_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Pipelines"]},"patch":{"summary":"Patch Pipeline","operationId":"patch_pipeline_v1_pipelines__pipeline_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelinePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Pipelines"]},"delete":{"summary":"Remove Pipeline","operationId":"remove_pipeline_v1_pipelines__pipeline_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Pipelines"]}},"/v1/pipelines/{pipeline_id}/stages":{"post":{"summary":"Post Stage","operationId":"post_stage_v1_pipelines__pipeline_id__stages_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Pipelines"]}},"/v1/pipelines/{pipeline_id}/stages/order":{"put":{"summary":"Put Stage Order","operationId":"put_stage_order_v1_pipelines__pipeline_id__stages_order_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageOrder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Pipelines"]}},"/v1/pipelines/{pipeline_id}/board":{"get":{"summary":"Get Board","operationId":"get_board_v1_pipelines__pipeline_id__board_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Pipelines"]}},"/v1/stages/{stage_id}":{"patch":{"summary":"Patch Stage","operationId":"patch_stage_v1_stages__stage_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Service"]},"delete":{"summary":"Remove Stage","operationId":"remove_stage_v1_stages__stage_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Service"]}},"/v1/products":{"get":{"summary":"Get Products","operationId":"get_products_v1_products_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"active","title":"Status"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"billing","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Products"]},"post":{"summary":"Post Product","operationId":"post_product_v1_products_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Products"]}},"/v1/products/import":{"post":{"summary":"Post Product Import","operationId":"post_product_import_v1_products_import_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductImport"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Products"]}},"/v1/products/quote":{"post":{"summary":"Post Quote","operationId":"post_quote_v1_products_quote_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Products"]}},"/v1/products/by-sku/{sku}":{"get":{"summary":"Get Product Sku","operationId":"get_product_sku_v1_products_by_sku__sku__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string","title":"Sku"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Products"]},"put":{"summary":"Put Product Sku","operationId":"put_product_sku_v1_products_by_sku__sku__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string","title":"Sku"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Products"]}},"/v1/products/{product_id}":{"get":{"summary":"Get Product","operationId":"get_product_v1_products__product_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Products"]},"patch":{"summary":"Patch Product","operationId":"patch_product_v1_products__product_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Products"]},"delete":{"summary":"Remove Product","operationId":"remove_product_v1_products__product_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"hard","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Hard"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Products"]}},"/v1/leads":{"get":{"summary":"Get Leads","operationId":"get_leads_v1_leads_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"pipeline_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id"}},{"name":"stage_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"}},{"name":"owner_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Leads"]},"post":{"summary":"Post Lead","operationId":"post_lead_v1_leads_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Leads"]}},"/v1/leads/{lead_id}":{"get":{"summary":"Get Lead","operationId":"get_lead_v1_leads__lead_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Leads"]},"patch":{"summary":"Patch Lead","operationId":"patch_lead_v1_leads__lead_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Leads"]},"delete":{"summary":"Remove Lead","operationId":"remove_lead_v1_leads__lead_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Leads"]}},"/v1/leads/{lead_id}/transition":{"post":{"summary":"Post Lead Transition","operationId":"post_lead_transition_v1_leads__lead_id__transition_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transition"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Leads"]}},"/v1/leads/{lead_id}/convert":{"post":{"summary":"Post Convert","operationId":"post_convert_v1_leads__lead_id__convert_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertLead"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Leads"]}},"/v1/deals":{"get":{"summary":"Get Deals","operationId":"get_deals_v1_deals_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"pipeline_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id"}},{"name":"stage_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"owner_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]},"post":{"summary":"Post Deal","operationId":"post_deal_v1_deals_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]}},"/v1/deals/{deal_id}":{"get":{"summary":"Get Deal","operationId":"get_deal_v1_deals__deal_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]},"patch":{"summary":"Patch Deal","operationId":"patch_deal_v1_deals__deal_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]},"delete":{"summary":"Remove Deal","operationId":"remove_deal_v1_deals__deal_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]}},"/v1/deals/{deal_id}/transition":{"post":{"summary":"Post Deal Transition","operationId":"post_deal_transition_v1_deals__deal_id__transition_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transition"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]}},"/v1/deals/{deal_id}/line-items":{"get":{"summary":"Get Lines","operationId":"get_lines_v1_deals__deal_id__line_items_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]},"post":{"summary":"Post Line","operationId":"post_line_v1_deals__deal_id__line_items_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]}},"/v1/deals/{deal_id}/line-items/{item_id}":{"patch":{"summary":"Patch Line","operationId":"patch_line_v1_deals__deal_id__line_items__item_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]},"delete":{"summary":"Remove Line","operationId":"remove_line_v1_deals__deal_id__line_items__item_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Deals"]}},"/v1/activities":{"get":{"summary":"Get Activities","operationId":"get_activities_v1_activities_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"}},{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"}},{"name":"lead_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"voided","in":"query","required":false,"schema":{"type":"boolean","description":"When true, list only voided activities.","default":false,"title":"Voided"},"description":"When true, list only voided activities."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Activities"]},"post":{"summary":"Post Activity","operationId":"post_activity_v1_activities_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Activities"]}},"/v1/activities/{activity_id}":{"get":{"summary":"Get Activity","operationId":"get_activity_v1_activities__activity_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"activity_id","in":"path","required":true,"schema":{"type":"string","title":"Activity Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Activities"]},"patch":{"summary":"Patch Activity","operationId":"patch_activity_v1_activities__activity_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"activity_id","in":"path","required":true,"schema":{"type":"string","title":"Activity Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Activities"]},"delete":{"summary":"Remove Activity","description":"Void the activity. The row stays, lists hide it, and the sync log records voided.","operationId":"remove_activity_v1_activities__activity_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"activity_id","in":"path","required":true,"schema":{"type":"string","title":"Activity Id"}},{"name":"reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Activities"]}},"/v1/tasks":{"get":{"summary":"Get Tasks","operationId":"get_tasks_v1_tasks_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"assignee_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Agent Id"}},{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"available","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Available"}},{"name":"overdue","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Overdue"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tasks"]},"post":{"summary":"Post Task","operationId":"post_task_v1_tasks_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tasks"]}},"/v1/tasks/next":{"get":{"summary":"Get Next Task","operationId":"get_next_task_v1_tasks_next_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tasks"]}},"/v1/tasks/{task_id}":{"get":{"summary":"Get Task","operationId":"get_task_v1_tasks__task_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tasks"]},"patch":{"summary":"Patch Task","operationId":"patch_task_v1_tasks__task_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tasks"]},"delete":{"summary":"Remove Task","operationId":"remove_task_v1_tasks__task_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tasks"]}},"/v1/tasks/{task_id}/claim":{"post":{"summary":"Post Claim","operationId":"post_claim_v1_tasks__task_id__claim_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimTask"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tasks"]}},"/v1/tasks/{task_id}/release":{"post":{"summary":"Post Release","operationId":"post_release_v1_tasks__task_id__release_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tasks"]}},"/v1/tasks/{task_id}/complete":{"post":{"summary":"Post Complete","operationId":"post_complete_v1_tasks__task_id__complete_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tasks"]}},"/v1/tickets":{"get":{"summary":"Get Tickets","operationId":"get_tickets_v1_tickets_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"assignee_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Agent Id"}},{"name":"reporter_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reporter Agent Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tickets"]},"post":{"summary":"Post Ticket","operationId":"post_ticket_v1_tickets_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tickets"]}},"/v1/tickets/{ticket_id}":{"get":{"summary":"Get Ticket","operationId":"get_ticket_v1_tickets__ticket_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tickets"]},"patch":{"summary":"Patch Ticket","operationId":"patch_ticket_v1_tickets__ticket_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tickets"]},"delete":{"summary":"Remove Ticket","operationId":"remove_ticket_v1_tickets__ticket_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tickets"]}},"/v1/tickets/{ticket_id}/transition":{"post":{"summary":"Post Ticket Transition","operationId":"post_ticket_transition_v1_tickets__ticket_id__transition_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketTransition"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tickets"]}},"/v1/tickets/{ticket_id}/comments":{"post":{"summary":"Post Ticket Comment","operationId":"post_ticket_comment_v1_tickets__ticket_id__comments_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[\\w.@:+-]{1,200}$"},"description":"Optional. 1–200 characters: letters, digits, underscore, or . _ : - @ +. A retry with the same key, method, and path returns the first response. Reusing the key for a different request is 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketCommentWrite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Tickets"]}},"/v1/search":{"get":{"summary":"Get Search","operationId":"get_search_v1_search_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Types"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResults"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Search"]}},"/v1/sync/head":{"get":{"summary":"Get Sync Head","operationId":"get_sync_head_v1_sync_head_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Sync"]}},"/v1/sync":{"get":{"summary":"Get Sync","operationId":"get_sync_v1_sync_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Types"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Sync"]}},"/v1/reports/summary":{"get":{"summary":"Get Summary","operationId":"get_summary_v1_reports_summary_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Reports"]}},"/v1/reports/profile-coverage":{"get":{"summary":"Get Profile Coverage","description":"Filled and missing counts for live contacts. Deleted and merged contacts are excluded.","operationId":"get_profile_coverage_v1_reports_profile_coverage_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"owner_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Count only contacts owned by this agent.","title":"Owner Agent Id"},"description":"Count only contacts owned by this agent."},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileCoverageReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Reports"]}},"/v1/reports/effort":{"get":{"summary":"Get Effort","operationId":"get_effort_v1_reports_effort_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"x-agent-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered.","title":"X-Agent-Id"},"description":"Lowercase slug of an agent registered with POST /v1/agents. This is the actor stored on records, activities, and the sync log. An unknown id is 400 agent_not_registered, not a missing route. POST /v1/agents accepts this header when it is the id being registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["Reports"]}}},"components":{"schemas":{"AccountBulkItem":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"employee_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Employee Band"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"status":{"anyOf":[{"type":"string","enum":["prospect","customer","churned","partner","internal"]},{"type":"null"}],"title":"Status"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","maxItems":20},{"type":"null"}],"title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags."},"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"aka":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Aka"},"relationship":{"anyOf":[{"type":"string","enum":["approved","rejected","waiting","needs-action","on-hold"]},{"type":"null"}],"title":"Relationship"},"last_contact_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Contact On"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"kind":{"anyOf":[{"type":"string","enum":["customer","investor","partner","vendor","internal","other"]},{"type":"null"}],"title":"Kind"},"apply_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apply Url"},"application_status":{"anyOf":[{"type":"string","enum":["not_started","submitted","in_review","accepted","declined"]},{"type":"null"}],"title":"Application Status"},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileWrite"},{"type":"null"}]},"mode":{"type":"string","enum":["create","upsert","fill_empty"],"title":"Mode","default":"create"},"match":{"type":"string","enum":["domain","external_id"],"title":"Match","default":"domain"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id","description":"Importer id. Unique among accounts."}},"additionalProperties":false,"type":"object","title":"AccountBulkItem"},"AccountBulkWrite":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AccountBulkItem"},"type":"array","maxItems":100,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"AccountBulkWrite"},"AccountPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"employee_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Employee Band"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"status":{"anyOf":[{"type":"string","enum":["prospect","customer","churned","partner","internal"]},{"type":"null"}],"title":"Status"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","maxItems":20},{"type":"null"}],"title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags."},"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"aka":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Aka"},"relationship":{"anyOf":[{"type":"string","enum":["approved","rejected","waiting","needs-action","on-hold"]},{"type":"null"}],"title":"Relationship"},"last_contact_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Contact On"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"kind":{"anyOf":[{"type":"string","enum":["customer","investor","partner","vendor","internal","other"]},{"type":"null"}],"title":"Kind"},"apply_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apply Url"},"application_status":{"anyOf":[{"type":"string","enum":["not_started","submitted","in_review","accepted","declined"]},{"type":"null"}],"title":"Application Status"},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileWrite"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"AccountPatch"},"AccountWrite":{"properties":{"name":{"type":"string","title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"employee_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Employee Band"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"status":{"type":"string","enum":["prospect","customer","churned","partner","internal"],"title":"Status","description":"prospect, customer, churned, partner, or internal. internal is the company that owns this CRM, not a sales prospect.","default":"prospect"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"description":{"type":"string","title":"Description","default":""},"tags":{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags.","maxItems":20},"custom":{"additionalProperties":true,"type":"object","title":"Custom"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"aka":{"items":{"type":"string"},"type":"array","title":"Aka"},"relationship":{"anyOf":[{"type":"string","enum":["approved","rejected","waiting","needs-action","on-hold"]},{"type":"null"}],"title":"Relationship","description":"Partnership stage: approved, rejected, waiting, needs-action, or on-hold."},"last_contact_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Contact On"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"Where this account came from. At most 200 characters."},"kind":{"anyOf":[{"type":"string","enum":["customer","investor","partner","vendor","internal","other"]},{"type":"null"}],"title":"Kind","description":"Who they are: customer, investor, partner, vendor, internal, or other. Separate from status. Omitted means unknown."},"apply_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apply Url","description":"Fundraising application URL. http or https, at most 400 characters."},"application_status":{"anyOf":[{"type":"string","enum":["not_started","submitted","in_review","accepted","declined"]},{"type":"null"}],"title":"Application Status","description":"Fundraising application: not_started, submitted, in_review, accepted, or declined."},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileWrite"},{"type":"null"}],"description":"Customer description. Industry, type of person, and classification values. Omit it to leave the profile alone."}},"additionalProperties":false,"type":"object","required":["name"],"title":"AccountWrite"},"ActivityPatch":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"additionalProperties":false,"type":"object","title":"ActivityPatch"},"ActivityWrite":{"properties":{"kind":{"type":"string","enum":["note","call","email","meeting","task","stage_change","system"],"title":"Kind","default":"note"},"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body","default":""},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"additionalProperties":false,"type":"object","required":["subject"],"title":"ActivityWrite"},"AgentPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string","enum":["active","paused"]},{"type":"null"}],"title":"Status"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"additionalProperties":false,"type":"object","title":"AgentPatch"},"AgentWrite":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"status":{"type":"string","enum":["active","paused"],"title":"Status","default":"active"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"AgentWrite"},"ChannelKindPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"format":{"anyOf":[{"type":"string","enum":["text","email","phone","url","handle"]},{"type":"null"}],"title":"Format"},"contact_field":{"anyOf":[{"type":"string","enum":["email","phone"]},{"type":"null"}],"title":"Contact Field"},"unique_values":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unique Values"},"allow_many":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Many"},"status":{"anyOf":[{"type":"string","enum":["active","archived"]},{"type":"null"}],"title":"Status"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"additionalProperties":false,"type":"object","title":"ChannelKindPatch"},"ChannelKindWrite":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description","default":""},"format":{"type":"string","enum":["text","email","phone","url","handle"],"title":"Format","default":"text"},"contact_field":{"anyOf":[{"type":"string","enum":["email","phone"]},{"type":"null"}],"title":"Contact Field"},"unique_values":{"type":"boolean","title":"Unique Values","default":false},"allow_many":{"type":"boolean","title":"Allow Many","default":true},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"additionalProperties":false,"type":"object","required":["key","label"],"title":"ChannelKindWrite"},"ChannelOnWrite":{"properties":{"kind":{"type":"string","title":"Kind"},"value":{"type":"string","title":"Value"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"preferred":{"type":"boolean","title":"Preferred","default":false},"primary":{"type":"boolean","title":"Primary","default":false},"consent":{"anyOf":[{"type":"string","enum":["unknown","opted_in","opted_out"]},{"type":"null"}],"title":"Consent","description":"unknown, opted_in, or opted_out. Omit this. A new channel stays unknown and is not opted in."},"deliverability":{"anyOf":[{"type":"string","enum":["unknown","deliverable","bounced","invalid","blocked","spam_report"]},{"type":"null"}],"title":"Deliverability","description":"unknown, deliverable, bounced, invalid, blocked, or spam_report."},"suppression_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suppression Reason","description":"Provider reason, such as a bounce or a spam report. At most 400 characters."},"consent_recorded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent Recorded At"},"consent_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Source","description":"Short label for who recorded consent. At most 120 characters. Not a URL."},"opt_outs":{"anyOf":[{"items":{"$ref":"#/components/schemas/OptOutWrite"},"type":"array"},{"type":"null"}],"title":"Opt Outs","description":"Group opt-outs. Sending a list replaces the groups on this channel."}},"additionalProperties":false,"type":"object","required":["kind","value"],"title":"ChannelOnWrite"},"ChannelPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"preferred":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preferred"},"primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Primary"},"consent":{"anyOf":[{"type":"string","enum":["unknown","opted_in","opted_out"]},{"type":"null"}],"title":"Consent"},"deliverability":{"anyOf":[{"type":"string","enum":["unknown","deliverable","bounced","invalid","blocked","spam_report"]},{"type":"null"}],"title":"Deliverability"},"suppression_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suppression Reason"},"consent_recorded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent Recorded At"},"consent_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Source"},"opt_outs":{"anyOf":[{"items":{"$ref":"#/components/schemas/OptOutWrite"},"type":"array"},{"type":"null"}],"title":"Opt Outs"}},"additionalProperties":false,"type":"object","title":"ChannelPatch"},"ChannelWrite":{"properties":{"kind":{"type":"string","title":"Kind"},"value":{"type":"string","title":"Value"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"preferred":{"type":"boolean","title":"Preferred","default":false},"primary":{"type":"boolean","title":"Primary","default":false},"consent":{"anyOf":[{"type":"string","enum":["unknown","opted_in","opted_out"]},{"type":"null"}],"title":"Consent","description":"unknown, opted_in, or opted_out. Omit this. Adding a channel does not opt the contact in."},"deliverability":{"anyOf":[{"type":"string","enum":["unknown","deliverable","bounced","invalid","blocked","spam_report"]},{"type":"null"}],"title":"Deliverability"},"suppression_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suppression Reason"},"consent_recorded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent Recorded At"},"consent_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Source"},"opt_outs":{"anyOf":[{"items":{"$ref":"#/components/schemas/OptOutWrite"},"type":"array"},{"type":"null"}],"title":"Opt Outs"}},"additionalProperties":false,"type":"object","required":["kind","value"],"title":"ChannelWrite"},"ClaimTask":{"properties":{"lease_seconds":{"type":"integer","title":"Lease Seconds","default":900}},"additionalProperties":false,"type":"object","title":"ClaimTask"},"ClassificationFieldPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"choices":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Choices"},"status":{"anyOf":[{"type":"string","enum":["active","archived"]},{"type":"null"}],"title":"Status"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"additionalProperties":false,"type":"object","title":"ClassificationFieldPatch"},"ClassificationFieldWrite":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description","default":""},"applies_to":{"type":"string","enum":["account","contact","any"],"title":"Applies To","description":"account, contact, or any. industry, person_type, and summary are reserved and cannot be keys.","default":"any"},"value_type":{"type":"string","enum":["text","number","choice","multi"],"title":"Value Type","description":"text, number, choice, or multi.","default":"text"},"choices":{"items":{"type":"string"},"type":"array","title":"Choices","description":"Required for choice and multi. Empty for text and number."},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"additionalProperties":false,"type":"object","required":["key","label"],"title":"ClassificationFieldWrite"},"ContactBulkItem":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"status":{"anyOf":[{"type":"string","enum":["active","inactive"]},{"type":"null"}],"title":"Status"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","maxItems":20},{"type":"null"}],"title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags."},"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"},"aliases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Aliases"},"relationship":{"anyOf":[{"type":"string","enum":["approved","rejected","waiting","needs-action","on-hold"]},{"type":"null"}],"title":"Relationship"},"last_contact_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Contact On"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"outreach_status":{"anyOf":[{"type":"string","enum":["invited","accepted","declined","call_requested","queued","connected","skipped","not_found","inbound_unanswered"]},{"type":"null"}],"title":"Outreach Status"},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileWrite"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"mode":{"type":"string","enum":["create","upsert","fill_empty"],"title":"Mode","default":"create"},"match":{"type":"string","enum":["email","external_id","channel"],"title":"Match","default":"email"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"channels":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChannelOnWrite"},"type":"array"},{"type":"null"}],"title":"Channels"}},"additionalProperties":false,"type":"object","title":"ContactBulkItem"},"ContactBulkWrite":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContactBulkItem"},"type":"array","maxItems":100,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"ContactBulkWrite"},"ContactLookup":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"channels":{"items":{"$ref":"#/components/schemas/ChannelOnWrite"},"type":"array","title":"Channels"}},"additionalProperties":false,"type":"object","title":"ContactLookup","description":"Check for an existing contact before creating one."},"ContactMerge":{"properties":{"from_id":{"type":"string","title":"From Id","description":"Contact id to fold into this one. The old id stays as a redirect."},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"Version of the contact that survives."}},"additionalProperties":false,"type":"object","required":["from_id"],"title":"ContactMerge"},"ContactPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"status":{"anyOf":[{"type":"string","enum":["active","inactive"]},{"type":"null"}],"title":"Status"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","maxItems":20},{"type":"null"}],"title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags."},"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"},"aliases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Aliases"},"relationship":{"anyOf":[{"type":"string","enum":["approved","rejected","waiting","needs-action","on-hold"]},{"type":"null"}],"title":"Relationship"},"last_contact_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Contact On"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"outreach_status":{"anyOf":[{"type":"string","enum":["invited","accepted","declined","call_requested","queued","connected","skipped","not_found","inbound_unanswered"]},{"type":"null"}],"title":"Outreach Status"},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileWrite"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},"additionalProperties":false,"type":"object","title":"ContactPatch"},"ContactWrite":{"properties":{"name":{"type":"string","title":"Name"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"status":{"type":"string","enum":["active","inactive"],"title":"Status","default":"active"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"description":{"type":"string","title":"Description","default":""},"tags":{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags.","maxItems":20},"custom":{"additionalProperties":true,"type":"object","title":"Custom"},"channels":{"items":{"$ref":"#/components/schemas/ChannelOnWrite"},"type":"array","title":"Channels"},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases","description":"Other names for this person."},"relationship":{"anyOf":[{"type":"string","enum":["approved","rejected","waiting","needs-action","on-hold"]},{"type":"null"}],"title":"Relationship","description":"Partnership stage: approved, rejected, waiting, needs-action, or on-hold."},"last_contact_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Contact On","description":"Last day this person was contacted, YYYY-MM-DD."},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"Where this contact came from. At most 200 characters."},"outreach_status":{"anyOf":[{"type":"string","enum":["invited","accepted","declined","call_requested","queued","connected","skipped","not_found","inbound_unanswered"]},{"type":"null"}],"title":"Outreach Status","description":"Outreach state: invited, accepted, declined, call_requested, queued, connected, skipped, not_found, or inbound_unanswered. This is separate from relationship."},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileWrite"},{"type":"null"}],"description":"Customer description. Industry, type of person, classification values, and location."},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"Free-text place. At most 200 characters. Same store as profile.location."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},"additionalProperties":false,"type":"object","required":["name"],"title":"ContactWrite"},"ConvertLead":{"properties":{"create_account":{"type":"boolean","title":"Create Account","default":true},"create_contact":{"type":"boolean","title":"Create Contact","default":true},"create_deal":{"type":"boolean","title":"Create Deal","default":true},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"deal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Name"},"pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id"},"pipeline_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Key"},"stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"},"stage_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Key"},"product_skus":{"items":{"type":"string"},"type":"array","title":"Product Skus"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"}},"additionalProperties":false,"type":"object","title":"ConvertLead"},"DealPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"primary_contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Contact Id"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"amount_manual":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Amount Manual"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"expected_close_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Close On"},"source":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"maxLength":120,"title":"Source","description":"Short source label, at most 120 characters, such as a hostname or campaign name. This is not an evidence URL. Store the full URL on the record in custom."},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"next_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Step"},"next_step_due":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Step Due"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","maxItems":20},{"type":"null"}],"title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags."},"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"}},"additionalProperties":false,"type":"object","title":"DealPatch"},"DealWrite":{"properties":{"name":{"type":"string","title":"Name"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"primary_contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Contact Id"},"pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id"},"pipeline_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Key"},"stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"},"stage_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Key"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"type":"string","title":"Currency","default":"USD"},"expected_close_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Close On"},"source":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"maxLength":120,"title":"Source","description":"Short source label, at most 120 characters, such as a hostname or campaign name. This is not an evidence URL. Store the full URL on the record in custom."},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"next_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Step"},"next_step_due":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Step Due"},"description":{"type":"string","title":"Description","default":""},"tags":{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags.","maxItems":20},"custom":{"additionalProperties":true,"type":"object","title":"Custom"},"lines":{"items":{"$ref":"#/components/schemas/LineWrite"},"type":"array","title":"Lines"}},"additionalProperties":false,"type":"object","required":["name"],"title":"DealWrite"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LeadPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"source":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"maxLength":120,"title":"Source","description":"Short source label, at most 120 characters, such as a hostname or campaign name. This is not an evidence URL. Store the full URL on the record in custom."},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","maxItems":20},{"type":"null"}],"title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags."},"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"}},"additionalProperties":false,"type":"object","title":"LeadPatch"},"LeadWrite":{"properties":{"title":{"type":"string","title":"Title"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id"},"pipeline_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Key"},"stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"},"stage_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Key"},"source":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"maxLength":120,"title":"Source","description":"Short source label, at most 120 characters, such as a hostname or campaign name. This is not an evidence URL. Store the full URL on the record in custom."},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agent Id"},"description":{"type":"string","title":"Description","default":""},"tags":{"items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"type":"array","title":"Tags","description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags.","maxItems":20},"custom":{"additionalProperties":true,"type":"object","title":"Custom"}},"additionalProperties":false,"type":"object","required":["title"],"title":"LeadWrite"},"LinePatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity"},"unit_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Price Cents"},"discount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Cents"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"}},"additionalProperties":false,"type":"object","title":"LinePatch"},"LineWrite":{"properties":{"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sku"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"type":"string","title":"Description","default":""},"quantity":{"type":"integer","title":"Quantity","default":1},"unit_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Price Cents"},"discount_cents":{"type":"integer","title":"Discount Cents","default":0}},"additionalProperties":false,"type":"object","title":"LineWrite"},"OptOutWrite":{"properties":{"group":{"type":"string","title":"Group","description":"Lowercase group key, such as marketing or a provider group id."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"opted_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opted Out At"}},"additionalProperties":false,"type":"object","required":["group"],"title":"OptOutWrite"},"PipelinePatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","title":"PipelinePatch"},"PipelineWrite":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,40}$","title":"Key","description":"Lowercase letters, digits, or underscore. Example: outbound_prospecting.","examples":["outbound_prospecting"]},"name":{"type":"string","title":"Name"},"object_type":{"type":"string","enum":["deal","lead"],"title":"Object Type"},"is_default":{"type":"boolean","title":"Is Default","default":false},"description":{"type":"string","title":"Description","default":""},"stages":{"items":{"$ref":"#/components/schemas/StageWrite"},"type":"array","title":"Stages"}},"additionalProperties":false,"type":"object","required":["key","name","object_type"],"title":"PipelineWrite"},"ProductImport":{"properties":{"products":{"items":{"$ref":"#/components/schemas/ProductWrite"},"type":"array","title":"Products"},"prune":{"type":"boolean","title":"Prune","default":false}},"additionalProperties":false,"type":"object","required":["products"],"title":"ProductImport"},"ProductPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience"},"category":{"anyOf":[{"type":"string","enum":["plan","usage","service"]},{"type":"null"}],"title":"Category"},"billing":{"anyOf":[{"type":"string","enum":["free","subscription","usage","one_time","custom"]},{"type":"null"}],"title":"Billing"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"interval":{"anyOf":[{"type":"string","enum":["none","month","year"]},{"type":"null"}],"title":"Interval"},"unit_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Label"},"status":{"anyOf":[{"type":"string","enum":["active","hidden","archived"]},{"type":"null"}],"title":"Status"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"features":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Features"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"additionalProperties":false,"type":"object","title":"ProductPatch"},"ProductWrite":{"properties":{"sku":{"type":"string","title":"Sku"},"name":{"type":"string","title":"Name"},"summary":{"type":"string","title":"Summary","default":""},"description":{"type":"string","title":"Description","default":""},"audience":{"type":"string","title":"Audience","default":""},"category":{"type":"string","enum":["plan","usage","service"],"title":"Category","default":"plan"},"billing":{"type":"string","enum":["free","subscription","usage","one_time","custom"],"title":"Billing"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"currency":{"type":"string","title":"Currency","default":"USD"},"interval":{"type":"string","enum":["none","month","year"],"title":"Interval","default":"none"},"unit_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Label"},"status":{"type":"string","enum":["active","hidden","archived"],"title":"Status","default":"active"},"position":{"type":"integer","title":"Position","default":0},"features":{"items":{"type":"string"},"type":"array","title":"Features"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"additionalProperties":false,"type":"object","required":["sku","name","billing"],"title":"ProductWrite"},"ProfileWrite":{"properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"Customer description. This is the same text as description. At most 20000 characters."},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry","description":"Industry. On an account this writes the industry column. At most 120 characters. Null clears a stored value. On create, null leaves it blank."},"person_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Type","description":"Type of person, such as founder or general partner. At most 80 characters. Null clears a stored value. On create, null leaves it blank."},"classifications":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Classifications","description":"Values for fields from POST /v1/classification-fields. Sending a key sets it. Null or an empty value clears that key. Omitted keys stay."},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"Free-text place for a contact, such as a city and country. At most 200 characters. Null clears a stored value. On create, null leaves it blank."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"Contact city. At most 80 characters. Null clears a stored value. On create, null leaves it blank."},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Contact region. At most 80 characters. This is not account.region. Null clears a stored value. On create, null leaves it blank."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Contact country. At most 80 characters. Null clears a stored value. On create, null leaves it blank."}},"additionalProperties":false,"type":"object","title":"ProfileWrite","description":"Customer description: industry, type of person, and programmable classifications."},"QuoteLine":{"properties":{"sku":{"type":"string","title":"Sku"},"quantity":{"type":"integer","title":"Quantity","default":1}},"additionalProperties":false,"type":"object","required":["sku"],"title":"QuoteLine"},"QuoteRequest":{"properties":{"currency":{"type":"string","title":"Currency","default":"USD"},"lines":{"items":{"$ref":"#/components/schemas/QuoteLine"},"type":"array","title":"Lines"}},"additionalProperties":false,"type":"object","required":["lines"],"title":"QuoteRequest"},"StageOrder":{"properties":{"stage_ids":{"items":{"type":"string"},"type":"array","title":"Stage Ids"}},"additionalProperties":false,"type":"object","required":["stage_ids"],"title":"StageOrder"},"StagePatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"probability":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Probability"},"kind":{"anyOf":[{"type":"string","enum":["open","won","lost"]},{"type":"null"}],"title":"Kind"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","title":"StagePatch"},"StageWrite":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,40}$","title":"Key","description":"Lowercase letters, digits, or underscore. Example: in_contact. Hyphens are not allowed.","examples":["in_contact"]},"name":{"type":"string","title":"Name"},"probability":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Probability","description":"Integer from 0 to 100. A won stage is stored as 100 and a lost stage as 0, whatever number you send.","default":0},"kind":{"type":"string","enum":["open","won","lost"],"title":"Kind","description":"open, won, or lost. won is stored at probability 100. lost is stored at probability 0.","default":"open"},"description":{"type":"string","title":"Description","default":""}},"additionalProperties":false,"type":"object","required":["key","name"],"title":"StageWrite"},"TaskPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"status":{"anyOf":[{"type":"string","enum":["open","in_progress","blocked","done","cancelled"]},{"type":"null"}],"title":"Status"},"priority":{"anyOf":[{"type":"string","enum":["low","normal","high","urgent"]},{"type":"null"}],"title":"Priority"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"assignee_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Agent Id"}},"additionalProperties":false,"type":"object","title":"TaskPatch"},"TaskWrite":{"properties":{"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body","default":""},"status":{"type":"string","enum":["open","in_progress","blocked","done","cancelled"],"title":"Status","default":"open"},"priority":{"type":"string","enum":["low","normal","high","urgent"],"title":"Priority","default":"normal"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"assignee_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Agent Id"}},"additionalProperties":false,"type":"object","required":["title"],"title":"TaskWrite"},"TicketCommentWrite":{"properties":{"body":{"type":"string","title":"Body"}},"additionalProperties":false,"type":"object","required":["body"],"title":"TicketCommentWrite"},"TicketPatch":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"kind":{"anyOf":[{"type":"string","enum":["issue","suggestion"]},{"type":"null"}],"title":"Kind"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"priority":{"anyOf":[{"type":"string","enum":["low","normal","high","urgent"]},{"type":"null"}],"title":"Priority"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sku"},"assignee_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Agent Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"additionalProperties":false,"type":"object","title":"TicketPatch"},"TicketTransition":{"properties":{"status":{"type":"string","enum":["open","accepted","in_progress","done","declined","duplicate"],"title":"Status"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"duplicate_of_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duplicate Of Id"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"additionalProperties":false,"type":"object","required":["status"],"title":"TicketTransition"},"TicketWrite":{"properties":{"kind":{"type":"string","enum":["issue","suggestion"],"title":"Kind"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"priority":{"type":"string","enum":["low","normal","high","urgent"],"title":"Priority","default":"normal"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sku"},"assignee_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Agent Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"additionalProperties":false,"type":"object","required":["kind","title","body"],"title":"TicketWrite"},"Transition":{"properties":{"stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"},"stage_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Key"},"lost_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lost Reason"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"additionalProperties":false,"type":"object","title":"Transition"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ChannelRead":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"kind":{"title":"Kind","type":"string"},"kind_label":{"title":"Kind Label","type":"string"},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Format"},"value":{"title":"Value","type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Label"},"preferred":{"title":"Preferred","type":"boolean"},"primary":{"title":"Primary","type":"boolean"},"consent":{"default":"unknown","title":"Consent","type":"string"},"deliverability":{"default":"unknown","title":"Deliverability","type":"string"},"suppression_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Suppression Reason"},"consent_recorded_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Consent Recorded At"},"consent_source":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Consent Source"},"opt_outs":{"items":{"additionalProperties":true,"type":"object"},"title":"Opt Outs","type":"array"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Updated At"}},"required":["id","kind","kind_label","value","preferred","primary"],"title":"ChannelRead","type":"object"},"ProfileRead":{"additionalProperties":true,"properties":{"summary":{"default":"","title":"Summary","type":"string"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Industry"},"person_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Person Type"},"classifications":{"additionalProperties":true,"description":"Programmable classification values. Multi-value fields are lists. Other values are strings. Numbers are canonical strings.","title":"Classifications","type":"object"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Location"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"City"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Region"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Country"}},"title":"ProfileRead","type":"object"},"ContactRead":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Account Id"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Account Name"},"name":{"title":"Name","type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Phone"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Title"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Role"},"status":{"title":"Status","type":"string"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Owner Agent Id"},"description":{"default":"","title":"Description","type":"string"},"tags":{"description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags.","items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"title":"Tags","type":"array","maxItems":20},"custom":{"additionalProperties":true,"title":"Custom","type":"object"},"on_channel":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"On Channel"},"channels":{"items":{"$ref":"#/components/schemas/ChannelRead"},"title":"Channels","type":"array"},"aliases":{"items":{"type":"string"},"title":"Aliases","type":"array"},"relationship":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Relationship"},"last_contact_on":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Last Contact On"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Source"},"outreach_status":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Outreach Status"},"deleted":{"default":false,"title":"Deleted","type":"boolean"},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileRead"},{"type":"null"}],"default":null},"version":{"title":"Version","type":"integer"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Updated At"}},"required":["id","name","status","version"],"title":"ContactRead","type":"object"},"ContactPage":{"additionalProperties":true,"properties":{"items":{"items":{"$ref":"#/components/schemas/ContactRead"},"title":"Items","type":"array"},"total":{"title":"Total","type":"integer"},"limit":{"title":"Limit","type":"integer"},"offset":{"title":"Offset","type":"integer"}},"required":["items","total","limit","offset"],"title":"ContactPage","type":"object"},"ContactMatch":{"additionalProperties":true,"properties":{"contact_id":{"title":"Contact Id","type":"string"},"version":{"title":"Version","type":"integer"},"name":{"title":"Name","type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Email"},"on_channel":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"On Channel"},"matched_on":{"items":{"type":"string"},"title":"Matched On","type":"array"}},"required":["contact_id","version","name","matched_on"],"title":"ContactMatch","type":"object"},"ContactLookupResult":{"additionalProperties":true,"properties":{"matches":{"items":{"$ref":"#/components/schemas/ContactMatch"},"title":"Matches","type":"array"}},"required":["matches"],"title":"ContactLookupResult","type":"object"},"AccountRead":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Domain"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Website"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Industry"},"employee_band":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Employee Band"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Region"},"status":{"title":"Status","type":"string"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Owner Agent Id"},"description":{"default":"","title":"Description","type":"string"},"tags":{"description":"Stored lowercase. 1–40 characters of letters, digits, spaces, or . _ -. A colon is not allowed. At most 20 tags.","items":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","description":"Stored form after the service lowercases the tag and collapses whitespace. Letters, digits, spaces, or . _ -. A colon is not allowed. At most 40 characters."},"title":"Tags","type":"array","maxItems":20},"custom":{"additionalProperties":true,"title":"Custom","type":"object"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Legal Name"},"aka":{"items":{"type":"string"},"title":"Aka","type":"array"},"relationship":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Relationship"},"last_contact_on":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Last Contact On"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Source"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Kind"},"apply_url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Apply Url"},"application_status":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Application Status"},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileRead"},{"type":"null"}],"default":null},"contact_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Contact Count"},"deal_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Deal Count"},"version":{"title":"Version","type":"integer"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Updated At"}},"required":["id","name","status","version"],"title":"AccountRead","type":"object"},"AccountPage":{"additionalProperties":true,"properties":{"items":{"items":{"$ref":"#/components/schemas/AccountRead"},"title":"Items","type":"array"},"total":{"title":"Total","type":"integer"},"limit":{"title":"Limit","type":"integer"},"offset":{"title":"Offset","type":"integer"}},"required":["items","total","limit","offset"],"title":"AccountPage","type":"object"},"AgentRead":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"description":{"default":"","title":"Description","type":"string"},"status":{"title":"Status","type":"string"},"metadata":{"additionalProperties":true,"title":"Metadata","type":"object"},"last_seen_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Last Seen At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Updated At"}},"required":["id","name","status"],"title":"AgentRead","type":"object"},"AgentList":{"additionalProperties":true,"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentRead"},"title":"Items","type":"array"}},"required":["items"],"title":"AgentList","type":"object"},"TicketCommentRead":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"ticket_id":{"title":"Ticket Id","type":"string"},"body":{"default":"","title":"Body","type":"string"},"kind":{"title":"Kind","type":"string"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Agent Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Created At"}},"required":["id","ticket_id","kind"],"title":"TicketCommentRead","type":"object"},"TicketRead":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"kind":{"title":"Kind","type":"string"},"title":{"title":"Title","type":"string"},"body":{"default":"","title":"Body","type":"string"},"status":{"title":"Status","type":"string"},"priority":{"title":"Priority","type":"string"},"resolution":{"default":"","title":"Resolution","type":"string"},"reporter_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Reporter Agent Id"},"assignee_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Assignee Agent Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Account Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Contact Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Lead Id"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Product Id"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Sku"},"duplicate_of_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Duplicate Of Id"},"metadata":{"additionalProperties":true,"title":"Metadata","type":"object"},"closed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Closed At"},"version":{"title":"Version","type":"integer"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Updated At"},"comments":{"anyOf":[{"items":{"$ref":"#/components/schemas/TicketCommentRead"},"type":"array"},{"type":"null"}],"default":null,"title":"Comments"}},"required":["id","kind","title","status","priority","version"],"title":"TicketRead","type":"object"},"TicketPage":{"additionalProperties":true,"properties":{"items":{"items":{"$ref":"#/components/schemas/TicketRead"},"title":"Items","type":"array"},"total":{"title":"Total","type":"integer"},"limit":{"title":"Limit","type":"integer"},"offset":{"title":"Offset","type":"integer"}},"required":["items","total","limit","offset"],"title":"TicketPage","type":"object"},"SearchHit":{"additionalProperties":true,"properties":{"entity_type":{"title":"Entity Type","type":"string"},"entity_id":{"title":"Entity Id","type":"string"},"title":{"title":"Title","type":"string"},"snippet":{"default":"","title":"Snippet","type":"string"},"rank":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Rank"}},"required":["entity_type","entity_id","title"],"title":"SearchHit","type":"object"},"SearchResults":{"additionalProperties":true,"properties":{"query":{"title":"Query","type":"string"},"results":{"items":{"$ref":"#/components/schemas/SearchHit"},"title":"Results","type":"array"}},"required":["query","results"],"title":"SearchResults","type":"object"},"ClassificationFieldRead":{"additionalProperties":true,"properties":{"key":{"title":"Key","type":"string"},"label":{"title":"Label","type":"string"},"description":{"default":"","title":"Description","type":"string"},"applies_to":{"title":"Applies To","type":"string"},"value_type":{"title":"Value Type","type":"string"},"choices":{"items":{"type":"string"},"title":"Choices","type":"array"},"status":{"title":"Status","type":"string"},"position":{"title":"Position","type":"integer"},"metadata":{"additionalProperties":true,"title":"Metadata","type":"object"},"version":{"title":"Version","type":"integer"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Updated At"}},"required":["key","label","applies_to","value_type","status","position","version"],"title":"ClassificationFieldRead","type":"object"},"ClassificationFieldList":{"additionalProperties":true,"properties":{"items":{"items":{"$ref":"#/components/schemas/ClassificationFieldRead"},"title":"Items","type":"array"}},"required":["items"],"title":"ClassificationFieldList","type":"object"},"ChannelKindRead":{"additionalProperties":true,"properties":{"key":{"title":"Key","type":"string"},"label":{"title":"Label","type":"string"},"description":{"default":"","title":"Description","type":"string"},"format":{"title":"Format","type":"string"},"contact_field":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Contact Field"},"unique_values":{"title":"Unique Values","type":"boolean"},"allow_many":{"title":"Allow Many","type":"boolean"},"status":{"title":"Status","type":"string"},"position":{"title":"Position","type":"integer"},"metadata":{"additionalProperties":true,"title":"Metadata","type":"object"},"version":{"title":"Version","type":"integer"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Updated At"}},"required":["key","label","format","unique_values","allow_many","status","position","version"],"title":"ChannelKindRead","type":"object"},"ChannelKindList":{"additionalProperties":true,"properties":{"items":{"items":{"$ref":"#/components/schemas/ChannelKindRead"},"title":"Items","type":"array"}},"required":["items"],"title":"ChannelKindList","type":"object"},"ProfileCoverageField":{"additionalProperties":true,"properties":{"field":{"title":"Field","type":"string"},"filled":{"title":"Filled","type":"integer"},"missing":{"title":"Missing","type":"integer"}},"required":["field","filled","missing"],"title":"ProfileCoverageField","type":"object"},"ProfileCoverageReport":{"additionalProperties":true,"properties":{"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Generated At"},"owner_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Owner Agent Id"},"contacts":{"title":"Contacts","type":"integer"},"fields":{"items":{"$ref":"#/components/schemas/ProfileCoverageField"},"title":"Fields","type":"array"}},"required":["contacts","fields"],"title":"ProfileCoverageReport","type":"object"},"ProfilePreview":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"version":{"title":"Version","type":"integer"},"dry_run":{"default":true,"title":"Dry Run","type":"boolean"},"would_fill":{"items":{"type":"string"},"title":"Would Fill","type":"array"},"would_replace":{"items":{"type":"string"},"title":"Would Replace","type":"array"},"would_clear":{"items":{"type":"string"},"title":"Would Clear","type":"array"},"unchanged":{"items":{"type":"string"},"title":"Unchanged","type":"array"}},"required":["id","version"],"title":"ProfilePreview","type":"object"}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"Shared CRM key as Bearer token.","scheme":"bearer"},"APIKeyHeader":{"type":"apiKey","description":"Shared CRM key.","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","description":"Shared CRM API key."},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"tags":[{"name":"Service","description":"Where to start: auth, sync, and the main collections."},{"name":"Agents","description":"Register who is calling. The API key is shared. X-Agent-Id is the actor."},{"name":"Accounts","description":"Companies and teams you are selling to."},{"name":"Contacts","description":"People at those accounts."},{"name":"Channels","description":"Where a contact can be reached. Kinds are data, so a new channel is an API call. on_channel is the one they are on."},{"name":"Classification","description":"Programmable fields for industry-style classification. Define a field, then set it on a profile."},{"name":"Leads","description":"Inbound interest. Convert a lead to open an account, contact, and deal."},{"name":"Deals","description":"Opportunities on a pipeline, including line items."},{"name":"Pipelines","description":"Configurable stages. Reorder with the full list of stage ids."},{"name":"Products","description":"The offer catalog. Prices and copy are data, not code."},{"name":"Tasks","description":"Work items. Claim a lease so two agents do not take the same job."},{"name":"Tickets","description":"Issues and improvement suggestions. Move status with the transition route, and comment on the thread."},{"name":"Activities","description":"Notes and other events. Activities are not deleted."},{"name":"Search","description":"Full-text search across the book."},{"name":"Sync","description":"Append-only change log. Pull with since=<cursor>."},{"name":"Reports","description":"Pipeline totals, agent effort, and profile coverage. Money is grouped by currency."}]}