{"openapi":"3.1.0","info":{"title":"Reevo Public API v2","version":"0.1.0"},"paths":{"/api/v2/public/health":{"get":{"tags":["health"],"summary":"Public API v2 health check","description":"Return the public-API v2 liveness envelope.\n\nUnauthenticated. Always returns 200 + `{\"data\": {\"status\":\n\"healthy\"}}` while the process is responsive.","operationId":"get_public_api_v2_health_api_v2_public_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact":{"post":{"tags":["contact"],"summary":"Create a contact","operationId":"create_contact_api_v2_public_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreateRequest"},"examples":{"minimal":{"summary":"Minimal create body (Form 1 -- raw values)","description":"Smallest body that creates a contact -- the required attributes (the `stage` select is required). Replace the placeholder stage id with one from your tenant's `contact_stage` list; relationships and optional attributes are omitted.","value":{"attributes":{"first_name":"Sarah","last_name":"Chen","primary_email":"sarah.chen@acme.com","stage":{"value_type":"select","value":{"id":"00000000-0000-0000-0000-000000000004"}}}}},"with_owner_by_match":{"summary":"Create and resolve the owner by match","description":"Adds the optional attributes and resolves `owner_user_id` by matching an existing user (Form 3). Account and opportunity links are separate calls — see the `relationship/accounts` and `relationship/opportunities` endpoints.","value":{"attributes":{"first_name":"Sarah","last_name":"Chen","primary_email":"sarah.chen@acme.com","title":"VP of Engineering","stage":{"value_type":"select","value":{"id":"00000000-0000-0000-0000-000000000004"}},"owner_user_id":{"field":"email","value":"manager@acme.com"}}}},"enveloped_form":{"summary":"Form 2 -- enveloped values (self-describing)","description":"Same logical create as `minimal`, but every attribute is wrapped in `{value_type, value}` -- the round-trip shape emitted by reads. Useful for SDK codegen + AI agents.","value":{"attributes":{"first_name":{"value_type":"string","value":"Sarah"},"last_name":{"value_type":"string","value":"Chen"},"primary_email":{"value_type":"email","value":"sarah.chen@acme.com"},"stage":{"value_type":"select","value":{"id":"00000000-0000-0000-0000-000000000004"}}}}}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreateResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/contact/{contact_id}":{"get":{"tags":["contact"],"summary":"Read one contact","operationId":"get_contact_api_v2_public_contact__contact_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"patch":{"tags":["contact"],"summary":"Patch one contact","operationId":"patch_contact_api_v2_public_contact__contact_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPatchRequest"},"examples":{"single_field":{"summary":"Patch a single attribute (raw)","description":"Update one scalar attribute. Omitted keys are untouched.","value":{"attributes":{"title":"Chief Technology Officer"}}},"clear_field_with_sentinel":{"summary":"Clear an attribute (null sentinel)","description":"Use `null` to clear a nullable attribute. Per the SENTINEL-aware patch semantics, omitting a key leaves it untouched; sending `null` clears it.","value":{"attributes":{}}},"repoint_owner_by_match":{"summary":"Patch an attribute + repoint the owner by match","description":"Mixed update -- patches a scalar attribute and resolves the new owner by matching an existing user (Form 3).","value":{"attributes":{"title":"CTO","owner_user_id":{"field":"email","value":"newmanager@acme.com"}}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["contact"],"summary":"Archive one contact","operationId":"archive_contact_api_v2_public_contact__contact_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/_query":{"post":{"tags":["contact"],"summary":"List contacts with filter / sort / cursor pagination","operationId":"query_contacts_api_v2_public_contact__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQueryBodySchema"},"examples":{"empty":{"summary":"Default query (no filters, default limit)","description":"Empty body returns the first 50 records sorted by the record_type's default ordering.","value":{}},"filter_predicate":{"summary":"Filter by a single predicate","value":{"filters":[{"field":"primary_email","operator":"ends_with","value":"@acme.com"}],"sort":[{"field":"created_at","direction":"desc"}],"limit":50}},"filter_logical_and":{"summary":"Filter with logical AND","value":{"filters":[{"and":[{"field":"primary_email","operator":"ends_with","value":"@acme.com"},{"field":"created_at","operator":"gte","value":"2026-01-01T00:00:00Z"}]}],"limit":100}},"paginated_next_page":{"summary":"Follow-up page using cursor","value":{"cursor":"<opaque-cursor-from-prev-response>","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/contact/_upsert":{"post":{"tags":["contact"],"summary":"Upsert a contact by unique-field match","description":"Upsert a contact by matching an existing record on the `match` field. The matched attribute is the record's identity: its root attribute (e.g. `contact_emails.email` maps to `contact_emails`; `primary_email` maps to itself) must be omitted from `attributes` — the matched value is applied automatically and cannot be changed in the same request. If no record matches, one is created carrying the matched value.","operationId":"upsert_contact_api_v2_public_contact__upsert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpsertRequest"},"examples":{"match_by_contact_email":{"summary":"Upsert by contact email","description":"Generic match envelope. Returns 200 + meta.action=updated when the contact exists, 201 + meta.action=created otherwise.","value":{"match":{"field":"contact_emails.email","value":"sarah.chen@acme.com"},"attributes":{"first_name":"Sarah","last_name":"Chen","stage":{"value_type":"select","value":{"api_name":"default"}},"title":"VP of Engineering"}}},"match_by_primary_email":{"summary":"Upsert by primary email","description":"Uses the same generic envelope for a top-level unique scalar.","value":{"match":{"field":"primary_email","value":"sarah.chen@acme.com"},"attributes":{"first_name":"Sarah","last_name":"Chen","stage":{"value_type":"select","value":{"id":"00000000-0000-0000-0000-000000000004"}}}}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpsertResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"201":{"description":"Created — no existing contact matched the `match`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpsertResponse"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/contact/{contact_id}/relationship/accounts":{"get":{"tags":["contact"],"summary":"Paginated contact↔account relationship view","operationId":"get_account_relationships_for_contact_api_v2_public_contact__contact_id__relationship_accounts_get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipResponse_PublicV2ContactAccountRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["contact"],"summary":"Add a contact↔account relationship edge","operationId":"add_account_relationship_for_contact_api_v2_public_contact__contact_id__relationship_accounts_post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddContactAccountRelationshipBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000002"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Look the account up by one of its domains instead of by id.","value":{"related_record_match":{"domains.domain_name":"acme.com"}}},"with_edge_attributes":{"summary":"Add the edge and make the account primary","description":"Junction edge attributes are set inline on the add: `role` labels the contact's role on the account, `is_primary` makes this the contact's primary account (demoting the previous one).","value":{"related_record_id":"00000000-0000-0000-0000-000000000002","role":"decision_maker","is_primary":true}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipEdgeResponse_PublicV2ContactAccountRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/relationship/accounts/{target_id}":{"patch":{"tags":["contact"],"summary":"Update a contact↔account relationship edge","operationId":"patch_account_relationship_for_contact_api_v2_public_contact__contact_id__relationship_accounts__target_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchContactAccountRelationshipBody"},"examples":{"set_role":{"summary":"Update the contact's role on the account","value":{"role":"champion"}},"set_primary":{"summary":"Mark this account as the contact's primary account","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipEdgeResponse_PublicV2ContactAccountRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["contact"],"summary":"Remove a contact↔account relationship edge","operationId":"delete_account_relationship_for_contact_api_v2_public_contact__contact_id__relationship_accounts__target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/relationship/opportunities":{"get":{"tags":["contact"],"summary":"Paginated contact↔opportunity relationship view","operationId":"get_opportunity_relationships_for_contact_api_v2_public_contact__contact_id__relationship_opportunities_get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipResponse_ContactOpportunityRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["contact"],"summary":"Add a contact↔opportunity relationship edge","operationId":"add_opportunity_relationship_for_contact_api_v2_public_contact__contact_id__relationship_opportunities_post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddContactOpportunityRelationshipBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000003"}},"with_edge_attributes":{"summary":"Add the edge and make the contact primary","description":"`is_primary` makes this the opportunity's primary contact. The first contact added to an opportunity takes that slot regardless, so pass `false` to add a secondary contact to a populated one.","value":{"related_record_id":"00000000-0000-0000-0000-000000000003","is_primary":true}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipEdgeResponse_ContactOpportunityRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/relationship/opportunities/{target_id}":{"patch":{"tags":["contact"],"summary":"Update a contact↔opportunity relationship edge","operationId":"patch_opportunity_relationship_for_contact_api_v2_public_contact__contact_id__relationship_opportunities__target_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchContactOpportunityRelationshipBody"},"examples":{"set_primary":{"summary":"Mark this contact as the opportunity's primary contact","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipEdgeResponse_ContactOpportunityRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["contact"],"summary":"Remove a contact↔opportunity relationship edge","operationId":"delete_opportunity_relationship_for_contact_api_v2_public_contact__contact_id__relationship_opportunities__target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/relationship/{api_name}":{"get":{"tags":["contact"],"summary":"Paginated single-relationship view","operationId":"get_single_relationship_for_contact_api_v2_public_contact__contact_id__relationship__api_name__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["contact"],"summary":"Add a contact-relationship edge","operationId":"add_relationship_edge_for_contact_api_v2_public_contact__contact_id__relationship__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRelationshipEdgeBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000009"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Use the match form to look up the target by a unique attribute (e.g., email for users).","value":{"related_record_match":{"email":"manager@acme.com"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipEdgeResponse"}}}},"400":{"description":"Validation error. `relationship_loop_rejected` when the edge would close a loop of records on a self-referential relationship that a rollup field reads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict. Another write to the same relationship is in progress; retry the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/relationship/{api_name}/{target_id}":{"delete":{"tags":["contact"],"summary":"Remove a contact-relationship edge","operationId":"delete_relationship_edge_for_contact_api_v2_public_contact__contact_id__relationship__api_name___target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/attribute/contact_emails":{"post":{"tags":["contact"],"summary":"Add an email sub-resource item","operationId":"add_email_item_for_contact_api_v2_public_contact__contact_id__attribute_contact_emails_post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactEmailWrite"},"examples":{"add_email":{"summary":"Add an email (contact.contact_emails)","value":{"email":"sarah.work@acme.com","is_primary":false,"labels":["WORK"]}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubResourceItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/attribute/contact_emails/{item_id}":{"patch":{"tags":["contact"],"summary":"Update an email sub-resource item","operationId":"patch_email_item_for_contact_api_v2_public_contact__contact_id__attribute_contact_emails__item_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactEmailPatch"},"examples":{"promote_to_primary":{"summary":"Mark item as primary","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubResourceItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["contact"],"summary":"Remove an email sub-resource item","operationId":"delete_email_item_for_contact_api_v2_public_contact__contact_id__attribute_contact_emails__item_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/attribute/contact_phone_numbers":{"post":{"tags":["contact"],"summary":"Add a phone-number sub-resource item","operationId":"add_phone_number_item_for_contact_api_v2_public_contact__contact_id__attribute_contact_phone_numbers_post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPhoneNumberWrite"},"examples":{"add_phone_number":{"summary":"Add a phone (contact.contact_phone_numbers)","value":{"phone_number":"+1-555-0100","is_primary":false,"labels":["WORK"]}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubResourceItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/attribute/contact_phone_numbers/{item_id}":{"patch":{"tags":["contact"],"summary":"Update a phone-number sub-resource item","operationId":"patch_phone_number_item_for_contact_api_v2_public_contact__contact_id__attribute_contact_phone_numbers__item_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPhoneNumberPatch"},"examples":{"promote_to_primary":{"summary":"Mark item as primary","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubResourceItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["contact"],"summary":"Remove a phone-number sub-resource item","operationId":"delete_phone_number_item_for_contact_api_v2_public_contact__contact_id__attribute_contact_phone_numbers__item_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/attribute/{api_name}":{"post":{"tags":["contact"],"summary":"Add a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"add_sub_resource_item_for_contact_api_v2_public_contact__contact_id__attribute__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"add_email":{"description":"The body of the item's own route. This catch-all route refuses it: 400 sub_resource_not_supported for a non-item attribute, and 404 unknown_attribute for an unknown api_name. Post it to the item's route instead.","summary":"Add an email (contact.contact_emails)","value":{"email":"sarah.work@acme.com","is_primary":false,"labels":["WORK"]}},"add_phone_number":{"description":"The body of the item's own route. This catch-all route refuses it: 400 sub_resource_not_supported for a non-item attribute, and 404 unknown_attribute for an unknown api_name. Post it to the item's route instead.","summary":"Add a phone (contact.contact_phone_numbers)","value":{"phone_number":"+1-555-0100","is_primary":false,"labels":["WORK"]}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubResourceItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/contact/{contact_id}/attribute/{api_name}/{item_id}":{"patch":{"tags":["contact"],"summary":"Update a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"patch_sub_resource_item_for_contact_api_v2_public_contact__contact_id__attribute__api_name___item_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"promote_to_primary":{"summary":"Mark item as primary","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubResourceItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["contact"],"summary":"Remove a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"delete_sub_resource_item_for_contact_api_v2_public_contact__contact_id__attribute__api_name___item_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/account":{"post":{"tags":["account"],"summary":"Create an account","operationId":"create_account_api_v2_public_account_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAccountCreateRequest"},"examples":{"minimal":{"summary":"Minimal create body","description":"Smallest body that creates an account.","value":{"attributes":{"display_name":"Acme Corporation"}}},"with_relationships":{"summary":"Create with inline domains + owner","description":"Create the account, attach a primary domain through the multi-valued `domains` attribute, and resolve the owner by matching an existing user (Form 3).","value":{"attributes":{"display_name":"Acme Corporation","domains":[{"domain_name":"acme.com","is_primary":true}],"owner_user_id":{"field":"email","value":"manager@acme.com"}}}}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCreateResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/account/{account_id}":{"get":{"tags":["account"],"summary":"Read one account","operationId":"get_account_api_v2_public_account__account_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"patch":{"tags":["account"],"summary":"Patch one account","operationId":"patch_account_api_v2_public_account__account_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPatchRequest"},"examples":{"single_field":{"summary":"Rename the account","value":{"attributes":{"display_name":"Acme Holdings"}}},"patch_owner_via_match":{"summary":"Repoint the owner by match","description":"Form 3 (match form) on a reference attribute.","value":{"attributes":{"owner_user_id":{"field":"email","value":"newmanager@acme.com"}}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["account"],"summary":"Archive one account","operationId":"archive_account_api_v2_public_account__account_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/account/_query":{"post":{"tags":["account"],"summary":"List accounts with filter / sort / cursor pagination","operationId":"query_accounts_api_v2_public_account__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQueryBodySchema"},"examples":{"empty":{"summary":"Default query (no filters, default limit)","description":"Empty body returns the first 50 records sorted by the record_type's default ordering.","value":{}},"filter_predicate":{"summary":"Filter by a single predicate","value":{"filters":[{"field":"display_name","operator":"contains","value":"acme"}],"sort":[{"field":"created_at","direction":"desc"}],"limit":50}},"filter_logical_and":{"summary":"Filter with logical AND","value":{"filters":[{"and":[{"field":"display_name","operator":"contains","value":"acme"},{"field":"created_at","operator":"gte","value":"2026-01-01T00:00:00Z"}]}],"limit":100}},"paginated_next_page":{"summary":"Follow-up page using cursor","value":{"cursor":"<opaque-cursor-from-prev-response>","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/account/_upsert":{"post":{"tags":["account"],"summary":"Upsert an account by domain_name match","description":"Upsert an account by matching an existing record on the `match` field. The matched attribute is the record's identity: its root attribute (e.g. `domains.domain_name` maps to `domains`) must be omitted from `attributes` — the matched value is applied automatically and cannot be changed in the same request. If no record matches, one is created carrying the matched value.","operationId":"upsert_account_api_v2_public_account__upsert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountUpsertRequest"},"examples":{"match_by_domain":{"summary":"Upsert by account domain","description":"Uses the generic match envelope. Account domain matching keeps all-hits semantics and returns 409 when multiple accounts match.","value":{"match":{"field":"domains.domain_name","value":"acme.com"},"attributes":{"display_name":"Acme Corporation"}}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountUpsertResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"201":{"description":"Created — no existing account matched the `match`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountUpsertResponse"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/account/{account_id}/relationship/contacts":{"get":{"tags":["account"],"summary":"Paginated account↔contact relationship view","operationId":"get_contact_relationships_for_account_api_v2_public_account__account_id__relationship_contacts_get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipResponse_PublicV2ContactAccountRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["account"],"summary":"Add an account↔contact relationship edge","operationId":"add_contact_relationship_for_account_api_v2_public_account__account_id__relationship_contacts_post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAccountContactRelationshipBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000001"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Look the contact up by a unique attribute instead of by id.","value":{"related_record_match":{"primary_email":"sarah.chen@acme.com"}}},"with_edge_attributes":{"summary":"Add the edge and make the account the contact's primary","description":"`role` labels the contact's role on this account; `is_primary` makes this the contact's primary account (demoting the previous one).","value":{"related_record_id":"00000000-0000-0000-0000-000000000001","role":"decision_maker","is_primary":true}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipEdgeResponse_PublicV2ContactAccountRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/account/{account_id}/relationship/contacts/{target_id}":{"patch":{"tags":["account"],"summary":"Update an account↔contact relationship edge","operationId":"patch_contact_relationship_for_account_api_v2_public_account__account_id__relationship_contacts__target_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchAccountContactRelationshipBody"},"examples":{"set_role":{"summary":"Update the contact's role on the account","value":{"role":"champion"}},"set_primary":{"summary":"Mark this account as the contact's primary account","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipEdgeResponse_PublicV2ContactAccountRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["account"],"summary":"Remove an account↔contact relationship edge","operationId":"delete_contact_relationship_for_account_api_v2_public_account__account_id__relationship_contacts__target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/account/{account_id}/relationship/{api_name}":{"get":{"tags":["account"],"summary":"Paginated single-relationship view","operationId":"get_single_relationship_for_account_api_v2_public_account__account_id__relationship__api_name__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["account"],"summary":"Add an account-relationship edge","operationId":"add_relationship_edge_for_account_api_v2_public_account__account_id__relationship__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRelationshipEdgeBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000009"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Use the match form to look up the target by a unique attribute (e.g., email for users).","value":{"related_record_match":{"email":"manager@acme.com"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipEdgeResponse"}}}},"400":{"description":"Validation error. `relationship_loop_rejected` when the edge would close a loop of records on a self-referential relationship that a rollup field reads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict. Another write to the same relationship is in progress; retry the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/account/{account_id}/relationship/{api_name}/{target_id}":{"delete":{"tags":["account"],"summary":"Remove an account-relationship edge","operationId":"delete_relationship_edge_for_account_api_v2_public_account__account_id__relationship__api_name___target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/account/{account_id}/attribute/domains":{"post":{"tags":["account"],"summary":"Add a domain link to an account","operationId":"add_domain_for_account_api_v2_public_account__account_id__attribute_domains_post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAccountDomainBody"},"examples":{"add_domain":{"summary":"Attach a new domain","value":{"domain_name":"acme.com"}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDomainItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/account/{account_id}/attribute/domains/{domain_name}":{"patch":{"tags":["account"],"summary":"Set or unset the primary-for-account flag on a domain","operationId":"set_domain_primary_for_account_api_v2_public_account__account_id__attribute_domains__domain_name__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"domain_name","in":"path","required":true,"schema":{"type":"string","title":"Domain Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAccountDomainPrimaryBody"},"examples":{"set_primary_true":{"summary":"Mark domain as primary for this account","value":{"is_primary":true}},"set_primary_false":{"summary":"Unset primary flag","value":{"is_primary":false}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDomainItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["account"],"summary":"Remove a domain link from an account","operationId":"remove_domain_for_account_api_v2_public_account__account_id__attribute_domains__domain_name__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"domain_name","in":"path","required":true,"schema":{"type":"string","title":"Domain Name"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/account/{account_id}/attribute/{api_name}":{"post":{"tags":["account"],"summary":"Add a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"add_sub_resource_item_for_account_api_v2_public_account__account_id__attribute__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"add_domain":{"description":"The body of the item's own route. This catch-all route refuses it: 400 sub_resource_not_supported for a non-item attribute, and 404 unknown_attribute for an unknown api_name. Post it to the item's route instead.","summary":"Attach a new domain","value":{"domain_name":"acme.com"}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDomainItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/account/{account_id}/attribute/{api_name}/{item_id}":{"patch":{"tags":["account"],"summary":"Update a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"patch_sub_resource_item_for_account_api_v2_public_account__account_id__attribute__api_name___item_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"promote_to_primary":{"summary":"Mark item as primary","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDomainItemResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["account"],"summary":"Remove a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"delete_sub_resource_item_for_account_api_v2_public_account__account_id__attribute__api_name___item_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/opportunity":{"post":{"tags":["opportunity"],"summary":"Create an opportunity","operationId":"create_opportunity_api_v2_public_opportunity_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityCreateRequest"},"examples":{"minimal":{"summary":"Minimal create body (Form 1 -- raw values)","description":"Smallest body that creates an opportunity -- the required attributes. `account_id` and the `stage` select are both required; `amount` and the other optional attributes are omitted.","value":{"attributes":{"display_name":"Acme expansion -- 2026 renewal","account_id":"00000000-0000-0000-0000-000000000002","stage":{"value_type":"select","value":{"id":"00000000-0000-0000-0000-000000000014"}}}}},"with_relationships_and_stage":{"summary":"Create with stage + account linkage + amount","description":"Adds `amount` (currency) on top of the required account linkage (`account_id`) and `stage` select reference.","value":{"attributes":{"display_name":"Acme expansion -- 2026 renewal","account_id":"00000000-0000-0000-0000-000000000002","amount":50000,"stage":{"value_type":"select","value":{"id":"00000000-0000-0000-0000-000000000014"}}}}},"enveloped_form":{"summary":"Form 2 -- enveloped currency + stage","description":"Same logical body using enveloped scalar values and the enveloped stage select reference.","value":{"attributes":{"display_name":{"value_type":"string","value":"Acme expansion -- 2026 renewal"},"account_id":"00000000-0000-0000-0000-000000000002","amount":{"value_type":"currency","value":{"amount":50000}},"stage":{"value_type":"select","value":{"id":"00000000-0000-0000-0000-000000000014"}}}}}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunitySingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/opportunity/{opportunity_id}":{"get":{"tags":["opportunity"],"summary":"Read one opportunity","operationId":"get_opportunity_api_v2_public_opportunity__opportunity_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunitySingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"patch":{"tags":["opportunity"],"summary":"Patch one opportunity","operationId":"patch_opportunity_api_v2_public_opportunity__opportunity_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityPatchRequest"},"examples":{"advance_stage":{"summary":"Advance stage","value":{"attributes":{"stage":{"value_type":"select","value":{"id":"00000000-0000-0000-0000-000000000014"}}}}},"update_amount_and_close_date":{"summary":"Patch amount + close date","value":{"attributes":{"amount":75000,"anticipated_closing_at":"2026-12-31T00:00:00Z"}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunitySingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["opportunity"],"summary":"Archive one opportunity","operationId":"archive_opportunity_api_v2_public_opportunity__opportunity_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/opportunity/_query":{"post":{"tags":["opportunity"],"summary":"List opportunities with filter / sort / cursor pagination","operationId":"query_opportunities_api_v2_public_opportunity__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQueryBodySchema"},"examples":{"empty":{"summary":"Default query (no filters, default limit)","description":"Empty body returns the first 50 records sorted by the record_type's default ordering.","value":{}},"filter_predicate":{"summary":"Filter by a single predicate","value":{"filters":[{"field":"display_name","operator":"contains","value":"acme"}],"sort":[{"field":"created_at","direction":"desc"}],"limit":50}},"filter_logical_and":{"summary":"Filter with logical AND","value":{"filters":[{"and":[{"field":"display_name","operator":"contains","value":"acme"},{"field":"created_at","operator":"gte","value":"2026-01-01T00:00:00Z"}]}],"limit":100}},"paginated_next_page":{"summary":"Follow-up page using cursor","value":{"cursor":"<opaque-cursor-from-prev-response>","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/opportunity/{opportunity_id}/relationship/contacts":{"get":{"tags":["opportunity"],"summary":"Paginated opportunity↔contact relationship view","operationId":"get_contact_relationships_for_opportunity_api_v2_public_opportunity__opportunity_id__relationship_contacts_get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipResponse_ContactOpportunityRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["opportunity"],"summary":"Add an opportunity↔contact relationship edge","operationId":"add_contact_relationship_for_opportunity_api_v2_public_opportunity__opportunity_id__relationship_contacts_post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOpportunityContactRelationshipBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000001"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Look the contact up by a unique attribute instead of by id.","value":{"related_record_match":{"primary_email":"sarah.chen@acme.com"}}},"with_edge_attributes":{"summary":"Add the edge and make the contact primary","description":"`is_primary` makes this the opportunity's primary contact. The first contact added to an opportunity takes that slot regardless, so pass `false` to add a secondary contact to a populated one.","value":{"related_record_id":"00000000-0000-0000-0000-000000000001","is_primary":true}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipEdgeResponse_ContactOpportunityRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/opportunity/{opportunity_id}/relationship/contacts/{target_id}":{"patch":{"tags":["opportunity"],"summary":"Update an opportunity↔contact relationship edge","operationId":"patch_contact_relationship_for_opportunity_api_v2_public_opportunity__opportunity_id__relationship_contacts__target_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchOpportunityContactRelationshipBody"},"examples":{"set_primary":{"summary":"Mark this contact as the opportunity's primary contact","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipEdgeResponse_ContactOpportunityRoleAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["opportunity"],"summary":"Remove an opportunity↔contact relationship edge","operationId":"delete_contact_relationship_for_opportunity_api_v2_public_opportunity__opportunity_id__relationship_contacts__target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/opportunity/{opportunity_id}/field_history/{api_name}":{"get":{"tags":["opportunity"],"summary":"List an opportunity field's change history, newest first","operationId":"get_field_history_for_opportunity_api_v2_public_opportunity__opportunity_id__field_history__api_name__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityFieldHistoryResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/opportunity/{opportunity_id}/relationship/{api_name}":{"get":{"tags":["opportunity"],"summary":"Paginated single-relationship view","operationId":"get_single_relationship_for_opportunity_api_v2_public_opportunity__opportunity_id__relationship__api_name__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["opportunity"],"summary":"Add an opportunity-relationship edge","operationId":"add_relationship_edge_for_opportunity_api_v2_public_opportunity__opportunity_id__relationship__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRelationshipEdgeBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000009"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Use the match form to look up the target by a unique attribute (e.g., email for users).","value":{"related_record_match":{"email":"manager@acme.com"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipEdgeResponse"}}}},"400":{"description":"Validation error. `relationship_loop_rejected` when the edge would close a loop of records on a self-referential relationship that a rollup field reads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict. Another write to the same relationship is in progress; retry the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/opportunity/{opportunity_id}/relationship/{api_name}/{target_id}":{"delete":{"tags":["opportunity"],"summary":"Remove an opportunity-relationship edge","operationId":"delete_relationship_edge_for_opportunity_api_v2_public_opportunity__opportunity_id__relationship__api_name___target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/opportunity/{opportunity_id}/attribute/{api_name}":{"post":{"tags":["opportunity"],"summary":"Add a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"add_sub_resource_item_for_opportunity_api_v2_public_opportunity__opportunity_id__attribute__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"non_item_attribute":{"summary":"An attribute without item operations","description":"Gives 400 sub_resource_not_supported; an unknown api_name gives 404 unknown_attribute.","value":{"value":"example"}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/opportunity/{opportunity_id}/attribute/{api_name}/{item_id}":{"patch":{"tags":["opportunity"],"summary":"Update a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"patch_sub_resource_item_for_opportunity_api_v2_public_opportunity__opportunity_id__attribute__api_name___item_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"promote_to_primary":{"summary":"Mark item as primary","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["opportunity"],"summary":"Remove a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"delete_sub_resource_item_for_opportunity_api_v2_public_opportunity__opportunity_id__attribute__api_name___item_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Opportunity Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/task":{"post":{"tags":["task"],"summary":"Create a task","operationId":"create_task_api_v2_public_task_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreateRequest"},"examples":{"minimal":{"summary":"Minimal create body","description":"``title`` is the only required attribute. ``owner_user_id`` is optional -- it defaults to the API-key caller when omitted, and is set explicitly here to show the reference shape.","value":{"attributes":{"title":"Acme Follow Up Task","owner_user_id":"00000000-0000-0000-0000-000000000005"}}},"with_status_and_priority":{"summary":"Create with status / priority / description","value":{"attributes":{"title":"Globex Renewal Task","owner_user_id":"00000000-0000-0000-0000-000000000005","note":"Initial discovery call.","status":"IN_PROGRESS","priority":"HIGH"}}}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/task/{task_id}":{"get":{"tags":["task"],"summary":"Read one task","operationId":"get_task_api_v2_public_task__task_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"patch":{"tags":["task"],"summary":"Patch one task","operationId":"patch_task_api_v2_public_task__task_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPatchRequest"},"examples":{"mark_completed":{"summary":"Mark task completed","value":{"attributes":{"status":"COMPLETED"}}},"reassign_owner":{"summary":"Reassign owner","value":{"attributes":{"owner_user_id":"00000000-0000-0000-0000-000000000005"}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["task"],"summary":"Archive one task","operationId":"archive_task_api_v2_public_task__task_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/task/_query":{"post":{"tags":["task"],"summary":"List tasks with filter / sort / cursor pagination","operationId":"query_tasks_api_v2_public_task__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQueryBodySchema"},"examples":{"empty":{"summary":"Default query (no filters, default limit)","description":"Empty body returns the first 50 records sorted by the record_type's default ordering.","value":{}},"filter_predicate":{"summary":"Filter by a single predicate","value":{"filters":[{"field":"title","operator":"contains","value":"acme"}],"sort":[{"field":"created_at","direction":"desc"}],"limit":50}},"filter_logical_and":{"summary":"Filter with logical AND","value":{"filters":[{"and":[{"field":"title","operator":"contains","value":"acme"},{"field":"created_at","operator":"gte","value":"2026-01-01T00:00:00Z"}]}],"limit":100}},"paginated_next_page":{"summary":"Follow-up page using cursor","value":{"cursor":"<opaque-cursor-from-prev-response>","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/task/{task_id}/attribute/{api_name}":{"post":{"tags":["task"],"summary":"Add a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"add_sub_resource_item_for_task_api_v2_public_task__task_id__attribute__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"non_item_attribute":{"summary":"An attribute without item operations","description":"Gives 400 sub_resource_not_supported; an unknown api_name gives 404 unknown_attribute.","value":{"value":"example"}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/task/{task_id}/attribute/{api_name}/{item_id}":{"patch":{"tags":["task"],"summary":"Update a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"patch_sub_resource_item_for_task_api_v2_public_task__task_id__attribute__api_name___item_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"promote_to_primary":{"summary":"Mark item as primary","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["task"],"summary":"Remove a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"delete_sub_resource_item_for_task_api_v2_public_task__task_id__attribute__api_name___item_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/task/{task_id}/relationship/{api_name}":{"get":{"tags":["task"],"summary":"Paginated single-relationship view","operationId":"get_single_relationship_for_task_api_v2_public_task__task_id__relationship__api_name__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["task"],"summary":"Add a task-relationship edge","operationId":"add_relationship_edge_for_task_api_v2_public_task__task_id__relationship__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRelationshipEdgeBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000009"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Use the match form to look up the target by a unique attribute (e.g., email for users).","value":{"related_record_match":{"email":"manager@acme.com"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipEdgeResponse"}}}},"400":{"description":"Validation error. `relationship_loop_rejected` when the edge would close a loop of records on a self-referential relationship that a rollup field reads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict. Another write to the same relationship is in progress; retry the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/task/{task_id}/relationship/{api_name}/{target_id}":{"delete":{"tags":["task"],"summary":"Remove a task-relationship edge","operationId":"delete_relationship_edge_for_task_api_v2_public_task__task_id__relationship__api_name___target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/note":{"post":{"tags":["note"],"summary":"Create a note (optionally linking contacts / accounts / opportunities / a meeting)","operationId":"create_note_api_v2_public_note_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreateRequest"},"examples":{"minimal":{"summary":"Minimal note","description":"Create a note with body text only.","value":{"attributes":{"note_html":"<p>Follow-up scheduled.</p>"}}},"with_links":{"summary":"Create and link to a contact, account, opportunity, and meeting","description":"Links are resolved and org-scoped; an unknown or cross-tenant id returns 404. A meeting that already has a note returns 409.","value":{"attributes":{"note_html":"<p>Great discovery call.</p>","title":"Discovery recap","is_private":false,"contact_ids":["11111111-1111-1111-1111-111111111111"],"account_ids":["22222222-2222-2222-2222-222222222222"],"opportunity_ids":["33333333-3333-3333-3333-333333333333"],"meeting_id":"44444444-4444-4444-4444-444444444444"}}}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/note/{note_id}":{"get":{"tags":["note"],"summary":"Read one note","operationId":"get_note_api_v2_public_note__note_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"patch":{"tags":["note"],"summary":"Patch a note (overwrite text / title / privacy; replace associations)","description":"Partially update a note.\n\nAn omitted attribute is left unchanged. A provided ``note_html`` overwrites\nthe whole note text (sanitized before storage); a provided association field\nreplaces that relationship's entire set (empty / null clears it). Overwriting\n``note_html`` resets the view's ``yjs_content`` — a collaborative editor\nsession open on the same note may desync or lose in-progress edits.","operationId":"patch_note_api_v2_public_note__note_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotePatchRequest"},"examples":{"overwrite_text":{"summary":"Overwrite the note text","description":"A provided ``note_html`` replaces the whole note body; omitted fields are left unchanged.","value":{"attributes":{"note_html":"<p>Follow-up: sent pricing deck.</p>"}}},"replace_associations":{"summary":"Overwrite fields and replace associations","description":"Each provided association field replaces that relationship's entire set; an empty list clears it. Omitted fields stay unchanged.","value":{"attributes":{"title":"Discovery recap (updated)","is_private":true,"contact_ids":["11111111-1111-1111-1111-111111111111"],"opportunity_ids":[]}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["note"],"summary":"Disabled -- note archive is not supported on the public API","operationId":"archive_note_api_v2_public_note__note_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"responses":{"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/note/_query":{"post":{"tags":["note"],"summary":"List notes with filter / sort / cursor pagination","operationId":"query_notes_api_v2_public_note__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQueryBodySchema"},"examples":{"empty":{"summary":"Default query (no filters, default limit)","description":"Empty body returns the first 50 records sorted by the record_type's default ordering.","value":{}},"filter_predicate":{"summary":"Filter by a single predicate","value":{"filters":[{"field":"title","operator":"contains","value":"acme"}],"sort":[{"field":"created_at","direction":"desc"}],"limit":50}},"filter_logical_and":{"summary":"Filter with logical AND","value":{"filters":[{"and":[{"field":"title","operator":"contains","value":"acme"},{"field":"created_at","operator":"gte","value":"2026-01-01T00:00:00Z"}]}],"limit":100}},"paginated_next_page":{"summary":"Follow-up page using cursor","value":{"cursor":"<opaque-cursor-from-prev-response>","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/note/{note_id}/attribute/{api_name}":{"post":{"tags":["note"],"summary":"Add a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"add_sub_resource_item_for_note_api_v2_public_note__note_id__attribute__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"non_item_attribute":{"summary":"An attribute without item operations","description":"Gives 400 sub_resource_not_supported; an unknown api_name gives 404 unknown_attribute.","value":{"value":"example"}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/note/{note_id}/attribute/{api_name}/{item_id}":{"patch":{"tags":["note"],"summary":"Update a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"patch_sub_resource_item_for_note_api_v2_public_note__note_id__attribute__api_name___item_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"promote_to_primary":{"summary":"Mark item as primary","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["note"],"summary":"Remove a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"delete_sub_resource_item_for_note_api_v2_public_note__note_id__attribute__api_name___item_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/note/{note_id}/relationship/{api_name}":{"get":{"tags":["note"],"summary":"Paginated single-relationship view","operationId":"get_single_relationship_for_note_api_v2_public_note__note_id__relationship__api_name__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["note"],"summary":"Add a note-relationship edge","operationId":"add_relationship_edge_for_note_api_v2_public_note__note_id__relationship__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRelationshipEdgeBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000009"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Use the match form to look up the target by a unique attribute (e.g., email for users).","value":{"related_record_match":{"email":"manager@acme.com"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipEdgeResponse"}}}},"400":{"description":"Validation error. `relationship_loop_rejected` when the edge would close a loop of records on a self-referential relationship that a rollup field reads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict. Another write to the same relationship is in progress; retry the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/note/{note_id}/relationship/{api_name}/{target_id}":{"delete":{"tags":["note"],"summary":"Remove a note-relationship edge","operationId":"delete_relationship_edge_for_note_api_v2_public_note__note_id__relationship__api_name___target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/meeting/{meeting_id}":{"get":{"tags":["meeting"],"summary":"Read one meeting","operationId":"get_meeting_api_v2_public_meeting__meeting_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Meeting Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/meeting/_query":{"post":{"tags":["meeting"],"summary":"List meetings with filter / sort / cursor pagination","operationId":"query_meetings_api_v2_public_meeting__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQueryBodySchema"},"examples":{"empty":{"summary":"Default query (no filters, default limit)","description":"Empty body returns the first 50 records sorted by the record_type's default ordering.","value":{}},"filter_predicate":{"summary":"Filter by a single predicate","value":{"filters":[{"field":"description","operator":"contains","value":"acme"}],"sort":[{"field":"starts_at","direction":"desc"}],"limit":50}},"filter_logical_and":{"summary":"Filter with logical AND","value":{"filters":[{"and":[{"field":"description","operator":"contains","value":"acme"},{"field":"starts_at","operator":"gte","value":"2026-01-01T00:00:00Z"}]}],"limit":100}},"paginated_next_page":{"summary":"Follow-up page using cursor","value":{"cursor":"<opaque-cursor-from-prev-response>","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/meeting/{meeting_id}/recording":{"get":{"tags":["meeting"],"summary":"Get a pre-signed URL for the meeting recording","operationId":"get_meeting_recording_api_v2_public_meeting__meeting_id__recording_get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Meeting Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingRecordingResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/meeting/{meeting_id}/transcript":{"get":{"tags":["meeting"],"summary":"Get a pre-signed URL for the meeting transcript","operationId":"get_meeting_transcript_api_v2_public_meeting__meeting_id__transcript_get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Meeting Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingTranscriptResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/meeting/{meeting_id}/relationship/{api_name}":{"get":{"tags":["meeting"],"summary":"Paginated single-relationship view","operationId":"get_single_relationship_for_meeting_api_v2_public_meeting__meeting_id__relationship__api_name__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Meeting Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["meeting"],"summary":"Add a meeting-relationship edge","operationId":"add_relationship_edge_for_meeting_api_v2_public_meeting__meeting_id__relationship__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Meeting Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRelationshipEdgeBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000009"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Use the match form to look up the target by a unique attribute (e.g., email for users).","value":{"related_record_match":{"email":"manager@acme.com"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipEdgeResponse"}}}},"400":{"description":"Validation error. `relationship_loop_rejected` when the edge would close a loop of records on a self-referential relationship that a rollup field reads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict. Another write to the same relationship is in progress; retry the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/meeting/{meeting_id}/relationship/{api_name}/{target_id}":{"delete":{"tags":["meeting"],"summary":"Remove a meeting-relationship edge","operationId":"delete_relationship_edge_for_meeting_api_v2_public_meeting__meeting_id__relationship__api_name___target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Meeting Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/meeting/{meeting_id}/attribute/{api_name}":{"post":{"tags":["meeting"],"summary":"Add a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"add_sub_resource_item_for_meeting_api_v2_public_meeting__meeting_id__attribute__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Meeting Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"non_item_attribute":{"summary":"An attribute without item operations","description":"Gives 400 sub_resource_not_supported; an unknown api_name gives 404 unknown_attribute.","value":{"value":"example"}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/meeting/{meeting_id}/attribute/{api_name}/{item_id}":{"patch":{"tags":["meeting"],"summary":"Update a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"patch_sub_resource_item_for_meeting_api_v2_public_meeting__meeting_id__attribute__api_name___item_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Meeting Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"promote_to_primary":{"summary":"Mark item as primary","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["meeting"],"summary":"Remove a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"delete_sub_resource_item_for_meeting_api_v2_public_meeting__meeting_id__attribute__api_name___item_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Meeting Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/activity/_query":{"post":{"tags":["activity"],"summary":"Query the activity timeline (scoped, cursor-paginated)","operationId":"query_activities_api_v2_public_activity__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityQueryRequest"},"examples":{"account_timeline":{"summary":"Activity timeline for an account","description":"Exactly one of `account_id`, `contact_id`, or `opportunity_id` is required. Rows are newest first; pass `pagination.next_cursor` back as `cursor` for the next page.","value":{"account_id":"00000000-0000-0000-0000-000000000002","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/activity":{"post":{"tags":["activity"],"summary":"Log an activity (call, email, meeting, or other)","operationId":"create_activity_api_v2_public_activity_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityCreateRequest"},"examples":{"log_call":{"summary":"Log a call","value":{"attributes":{"type":"CALL","metadata":{"call_time":"2026-01-01T15:00:00Z","subject":"Discovery call","participants":[{"name":"Jane Doe","email":"jane@example.com"}],"direction":"OUTBOUND","duration_minutes":22,"notes":"Interested in a pilot","category":"CALL"},"account_id":"00000000-0000-0000-0000-000000000002"}}},"log_email":{"summary":"Log an email","value":{"attributes":{"type":"EMAIL","metadata":{"email_created_at":"2026-01-01T15:00:00Z","sender":{"email":"alex@example.com","name":"Alex Rep"},"recipients":[{"email":"jane@example.com","name":"Jane Doe"}],"subject":"Pilot proposal","body_text":"Hi Jane, attached is the pilot proposal."},"account_id":"00000000-0000-0000-0000-000000000002"}}},"log_meeting":{"summary":"Log a meeting","value":{"attributes":{"type":"MEETING","metadata":{"starts_at":"2026-01-01T15:00:00Z","ends_at":"2026-01-01T15:30:00Z","title":"Pilot kickoff","participants":[{"name":"Jane Doe","email":"jane@example.com"}],"location":"Zoom","meeting_type":"ONLINE_VIRTUAL"},"account_id":"00000000-0000-0000-0000-000000000002"}}},"log_other":{"summary":"Log another interaction","value":{"attributes":{"type":"OTHERS","metadata":{"activity_time":"2026-01-01T15:00:00Z","subject":"LinkedIn message","description":"Sent a connection request with a note","category":"LINKEDIN"},"account_id":"00000000-0000-0000-0000-000000000002"}}}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivitySingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/email_thread/{email_thread_id}":{"get":{"tags":["email_thread"],"summary":"Read one email thread (metadata only)","operationId":"get_email_thread_api_v2_public_email_thread__email_thread_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"email_thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Email Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailThreadSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/email_message/_query":{"post":{"tags":["email_message"],"summary":"Page through one email thread's messages (keyset cursor)","operationId":"query_email_messages_api_v2_public_email_message__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailMessageQueryRequest"},"examples":{"thread_oldest_first":{"summary":"Messages of one thread, oldest first","description":"Pass `pagination.next_cursor` back as `cursor` with the same `email_thread_id` and `sort` for the next page. Set `include_body` to false to omit `body_text`.","value":{"email_thread_id":"00000000-0000-0000-0000-000000000012","sort":"sent_at_asc","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailMessageListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/email_message/{email_message_id}":{"get":{"tags":["email_message"],"summary":"Read one email message (plain-text body)","operationId":"get_email_message_api_v2_public_email_message__email_message_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"email_message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Email Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailMessageSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/user/{user_id}":{"get":{"tags":["user"],"summary":"Read one user","operationId":"get_user_api_v2_public_user__user_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/user/_query":{"post":{"tags":["user"],"summary":"List users with filter / sort / cursor pagination","operationId":"query_users_api_v2_public_user__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQueryBodySchema"},"examples":{"empty":{"summary":"Default query (no filters, default limit)","description":"Empty body returns the first 50 records sorted by the record_type's default ordering.","value":{}},"filter_predicate":{"summary":"Filter by a single predicate","value":{"filters":[{"field":"email","operator":"ends_with","value":"@acme.com"}],"sort":[{"field":"created_at","direction":"desc"}],"limit":50}},"filter_logical_and":{"summary":"Filter with logical AND","value":{"filters":[{"and":[{"field":"email","operator":"ends_with","value":"@acme.com"},{"field":"created_at","operator":"gte","value":"2026-01-01T00:00:00Z"}]}],"limit":100}},"paginated_next_page":{"summary":"Follow-up page using cursor","value":{"cursor":"<opaque-cursor-from-prev-response>","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/user/{user_id}/relationship/teams":{"get":{"tags":["user"],"summary":"Paginated user↔team relationship view","operationId":"get_team_relationships_for_user_api_v2_public_user__user_id__relationship_teams_get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipResponse_TeamMembershipAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/team/{team_id}":{"get":{"tags":["team"],"summary":"Read one team","operationId":"get_team_api_v2_public_team__team_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/team/_query":{"post":{"tags":["team"],"summary":"List teams with filter / sort / cursor pagination","operationId":"query_teams_api_v2_public_team__query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQueryBodySchema"},"examples":{"empty":{"summary":"Default query (no filters, default limit)","description":"Empty body returns the first 50 records sorted by the record_type's default ordering.","value":{}},"filter_predicate":{"summary":"Filter by a single predicate","value":{"filters":[{"field":"name","operator":"contains","value":"acme"}],"sort":[{"field":"created_at","direction":"desc"}],"limit":50}},"filter_logical_and":{"summary":"Filter with logical AND","value":{"filters":[{"and":[{"field":"name","operator":"contains","value":"acme"},{"field":"created_at","operator":"gte","value":"2026-01-01T00:00:00Z"}]}],"limit":100}},"paginated_next_page":{"summary":"Follow-up page using cursor","value":{"cursor":"<opaque-cursor-from-prev-response>","limit":50}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/team/{team_id}/relationship/members":{"get":{"tags":["team"],"summary":"Paginated team↔user relationship view","operationId":"get_user_relationships_for_team_api_v2_public_team__team_id__relationship_members_get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JunctionRelationshipResponse_TeamMembershipAttributes_"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/_organization_schema_summary":{"get":{"tags":["schema"],"summary":"List all object schemas available in the organization","operationId":"list_object_schemas_api_v2_public__organization_schema_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrganizationSchemaSummary"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/_schema/{record_type}":{"get":{"tags":["schema"],"summary":"Introspect a record type's public schema","operationId":"get_object_schema_api_v2_public__schema__record_type__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"record_type","in":"path","required":true,"schema":{"type":"string","title":"Record Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectSchema"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/_me":{"get":{"tags":["me"],"summary":"Describe the calling API key, its user, organization, scopes and request limits","operationId":"get_me_api_v2_public__me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicMe"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/_organization":{"get":{"tags":["organization"],"summary":"Read the calling key's organization","operationId":"get_organization_api_v2_public__organization_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrganization"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}]}},"/api/v2/public/cus_obj__{object_api_name_suffix}":{"post":{"tags":["custom_object"],"summary":"Create a custom-object record","operationId":"create_custom_object_record_api_v2_public_cus_obj___object_api_name_suffix__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectCreateRequest"},"examples":{"minimal":{"summary":"Minimal create body","description":"`display_name` is the record's only standard attribute and is required. Every other attribute is a custom field addressed by its `cus_field__` api_name in the same `attributes` bag; fetch the schema via the discovery endpoints to see which ones this object defines. Relationships are not accepted here — write them through the relationship endpoints.","value":{"attributes":{"display_name":"Sample record"}}},"with_custom_fields":{"summary":"Create with custom-field attributes","description":"Custom fields sit alongside `display_name` in the same `attributes` bag, keyed by their `cus_field__` api_name.","value":{"attributes":{"display_name":"Sample record","cus_field__color":"blue"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/cus_obj__{object_api_name_suffix}/{record_id}":{"get":{"tags":["custom_object"],"summary":"Read one custom-object record","operationId":"get_custom_object_record_api_v2_public_cus_obj___object_api_name_suffix___record_id__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"patch":{"tags":["custom_object"],"summary":"Patch one custom-object record","operationId":"patch_custom_object_record_api_v2_public_cus_obj___object_api_name_suffix___record_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectPatchRequest"},"examples":{"single_attribute":{"summary":"Patch one attribute","value":{"attributes":{"display_name":"Renamed record"}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectSingleResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["custom_object"],"summary":"Archive one custom-object record","operationId":"archive_custom_object_record_api_v2_public_cus_obj___object_api_name_suffix___record_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/cus_obj__{object_api_name_suffix}/_upsert":{"post":{"tags":["custom_object"],"summary":"Upsert a custom-object record","description":"Upsert a custom-object record by matching on the `match` field (a custom-field api_name or `id`). The matched attribute is the record's identity and must be omitted from `attributes` — the matched value is applied automatically and cannot be changed in the same request. If no record matches, one is created carrying the matched value.","operationId":"upsert_custom_object_record_api_v2_public_cus_obj___object_api_name_suffix___upsert_post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectUpsertRequest"},"examples":{"match_by_id":{"summary":"Upsert by record id","description":"Returns 200 + meta.action=updated for an existing record. Matching on `id` never creates: an id that resolves to nothing is a 404. To get the create branch (201 + meta.action=created), match on a custom field the object declares unique.","value":{"match":{"field":"id","value":"00000000-0000-0000-0000-000000000010"},"attributes":{"display_name":"Renamed record"}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectUpsertResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/cus_obj__{object_api_name_suffix}/_query":{"post":{"tags":["custom_object"],"summary":"List custom-object records with filter / sort / cursor pagination","operationId":"query_custom_object_records_api_v2_public_cus_obj___object_api_name_suffix___query_post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicQueryBodySchema"},"examples":{"empty":{"summary":"Default query (no filters, default limit)","description":"Empty body returns the first 50 records sorted by the record_type's default ordering.","value":{}},"filter_predicate":{"summary":"Filter by a single predicate","value":{"filters":[{"field":"display_name","operator":"contains","value":"acme"}],"sort":[{"field":"created_at","direction":"desc"}],"limit":50}},"filter_logical_and":{"summary":"Filter with logical AND","value":{"filters":[{"and":[{"field":"display_name","operator":"contains","value":"acme"},{"field":"created_at","operator":"gte","value":"2026-01-01T00:00:00Z"}]}],"limit":100}},"paginated_next_page":{"summary":"Follow-up page using cursor","value":{"cursor":"<opaque-cursor-from-prev-response>","limit":50}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectListResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/cus_obj__{object_api_name_suffix}/{record_id}/relationship/{api_name}":{"get":{"tags":["custom_object"],"summary":"Paginated single-relationship view for a custom-object record","operationId":"get_single_relationship_for_custom_object_api_v2_public_cus_obj___object_api_name_suffix___record_id__relationship__api_name__get","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"post":{"tags":["custom_object"],"summary":"Add a custom-object-relationship edge","operationId":"add_relationship_edge_for_custom_object_api_v2_public_cus_obj___object_api_name_suffix___record_id__relationship__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRelationshipEdgeBody"},"examples":{"by_related_record_id":{"summary":"Add an edge by related_record_id","value":{"related_record_id":"00000000-0000-0000-0000-000000000009"}},"by_match":{"summary":"Add an edge by related_record_match","description":"Use the match form to look up the target by a unique attribute (e.g., email for users).","value":{"related_record_match":{"email":"manager@acme.com"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleRelationshipEdgeResponse"}}}},"400":{"description":"Validation error. `relationship_loop_rejected` when the edge would close a loop of records on a self-referential relationship that a rollup field reads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict. Another write to the same relationship is in progress; retry the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/cus_obj__{object_api_name_suffix}/{record_id}/relationship/{api_name}/{target_id}":{"delete":{"tags":["custom_object"],"summary":"Remove a custom-object-relationship edge","operationId":"delete_relationship_edge_for_custom_object_api_v2_public_cus_obj___object_api_name_suffix___record_id__relationship__api_name___target_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/cus_obj__{object_api_name_suffix}/{record_id}/attribute/{api_name}":{"post":{"tags":["custom_object"],"summary":"Add a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"add_sub_resource_item_for_custom_object_record_api_v2_public_cus_obj___object_api_name_suffix___record_id__attribute__api_name__post","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"non_item_attribute":{"summary":"An attribute without item operations","description":"Gives 400 sub_resource_not_supported; an unknown api_name gives 404 unknown_attribute.","value":{"value":"example"}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}},"/api/v2/public/cus_obj__{object_api_name_suffix}/{record_id}/attribute/{api_name}/{item_id}":{"patch":{"tags":["custom_object"],"summary":"Update a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"patch_sub_resource_item_for_custom_object_record_api_v2_public_cus_obj___object_api_name_suffix___record_id__attribute__api_name___item_id__patch","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"title":"Body"},"examples":{"promote_to_primary":{"summary":"Mark item as primary","value":{"is_primary":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}},"delete":{"tags":["custom_object"],"summary":"Remove a sub-resource item (non-item attribute -> 400, unknown api_name -> 404)","operationId":"delete_sub_resource_item_for_custom_object_record_api_v2_public_cus_obj___object_api_name_suffix___record_id__attribute__api_name___item_id__delete","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"object_api_name_suffix","in":"path","required":true,"schema":{"type":"string","title":"Object Api Name Suffix"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}},{"name":"api_name","in":"path","required":true,"schema":{"type":"string","title":"Api Name"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"406":{"description":"Not acceptable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"422":{"description":"Unprocessable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAPIErrorBody"}}}}}}}},"components":{"schemas":{"AccountCreateRequestAttributes":{"properties":{"display_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"}],"title":"Display Name"},"description":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"string"},{"type":"null"}],"title":"Description"},"domains":{"anyOf":[{"items":{"$ref":"#/components/schemas/AccountDomainWrite"},"type":"array"},{"type":"null"}],"title":"Domains"},"stage":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"},{"type":"null"}],"title":"Stage"},"type":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"},{"type":"null"}],"title":"Type"},"official_website":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Official Website","description":"`official_website` mirrors `websites[0]`; Reevo derives the account's domain from this URL's host, so it participates in domain uniqueness and `_upsert` matching. A host resolving to a domain already owned by another account returns a `409 conflict` (bare on create/patch; the domains sub-resource `POST /account/{id}/attribute/domains` additionally names the domain in `details.canonical_value`)."},"websites":{"anyOf":[{"items":{"$ref":"#/components/schemas/UrlValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/StringValue"},"type":"array"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Websites"},"linkedin_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"x_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"X Url"},"facebook_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Facebook Url"},"zoominfo_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Zoominfo Url"},"estimated_annual_revenue":{"anyOf":[{"$ref":"#/components/schemas/CurrencyWriteShape"},{"type":"null"}]},"estimated_employee_count":{"anyOf":[{"$ref":"#/components/schemas/NumberValue-Input"},{"type":"integer"},{"type":"null"}],"title":"Estimated Employee Count"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressValue"},{"$ref":"#/components/schemas/AddressWrite"},{"type":"null"}],"title":"Address"},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]},"participant_user_id_list":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"$ref":"#/components/schemas/UuidValue"}]},"type":"array"},{"type":"null"}],"title":"Participant User Id List"}},"additionalProperties":{"$ref":"#/components/schemas/CustomFieldAttributeRequestValue"},"type":"object","required":["display_name"],"title":"AccountCreateRequestAttributes","description":"Create standard-field surface."},"AccountCreateResponse":{"properties":{"data":{"$ref":"#/components/schemas/AccountObjectRecord"},"meta":{"anyOf":[{"$ref":"#/components/schemas/SingleMeta"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["data"],"title":"AccountCreateResponse","description":"Wrapper for account creates, with optional duplicate-check metadata."},"AccountDomainItemResponse":{"properties":{"data":{"$ref":"#/components/schemas/AccountDomainRead"}},"additionalProperties":false,"type":"object","required":["data"],"title":"AccountDomainItemResponse","description":"Single-item response for the domains sub-resource verbs.\n\n``data`` is the raw ``AccountDomainRead`` item (keyed by ``domain_name``, no\nserver-minted id) — the add / set-primary / move responses each carry the\none affected domain. ``remove`` returns 204 with no body."},"AccountDomainRead":{"properties":{"domain_name":{"type":"string","title":"Domain Name"},"is_primary":{"type":"boolean","title":"Is Primary"},"status":{"$ref":"#/components/schemas/PublicAccountDomainStatus"}},"additionalProperties":false,"type":"object","required":["domain_name","is_primary","status"],"title":"AccountDomainRead","description":"Read payload for an account domain value.\n\nKeyed by ``domain_name`` (no separate item id); ``is_primary`` flags the\naccount's primary domain and ``status`` carries the link lifecycle state."},"AccountDomainTypeInfo":{"properties":{"value_type":{"type":"string","const":"account_domain","title":"Value Type","default":"account_domain"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"}},"type":"object","required":["is_array"],"title":"AccountDomainTypeInfo"},"AccountDomainValue":{"properties":{"value_type":{"type":"string","const":"account_domain","title":"Value Type","default":"account_domain"},"value":{"$ref":"#/components/schemas/AccountDomainRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"AccountDomainValue"},"AccountDomainWrite":{"properties":{"domain_name":{"type":"string","title":"Domain Name"},"is_primary":{"type":"boolean","title":"Is Primary","default":false}},"additionalProperties":false,"type":"object","required":["domain_name"],"title":"AccountDomainWrite","description":"Write payload for an account domain list item on create / PATCH.\n\n``status`` is server-managed (the link lifecycle), so the write surface\ncarries only the addressable ``domain_name`` and the ``is_primary`` flag.\nWhen no item sets ``is_primary``, the first active domain auto-promotes to\nprimary in ``AccountService.add_domain_to_account``."},"AccountListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AccountObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"AccountListResponse","description":"Wrapper around a paginated list of ``AccountObjectRecord`` — query."},"AccountObjectAttributes":{"properties":{"id":{"$ref":"#/components/schemas/UuidValue"},"organization_id":{"$ref":"#/components/schemas/UuidValue"},"created_at":{"$ref":"#/components/schemas/TimestampValue"},"updated_at":{"$ref":"#/components/schemas/TimestampValue"},"display_name":{"$ref":"#/components/schemas/StringValue"},"domains":{"anyOf":[{"items":{"$ref":"#/components/schemas/AccountDomainValue"},"type":"array"},{"type":"null"}],"title":"Domains"},"description":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"null"}]},"official_website":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"websites":{"anyOf":[{"items":{"$ref":"#/components/schemas/UrlValue"},"type":"array"},{"type":"null"}],"title":"Websites"},"linkedin_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"x_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"facebook_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"zoominfo_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressValue"},{"type":"null"}]},"estimated_annual_revenue":{"anyOf":[{"$ref":"#/components/schemas/CurrencyValue-Output"},{"type":"null"}]},"funding_raised":{"anyOf":[{"$ref":"#/components/schemas/CurrencyValue-Output"},{"type":"null"}]},"estimated_employee_count":{"anyOf":[{"$ref":"#/components/schemas/NumberValue-Output"},{"type":"null"}]},"stage":{"anyOf":[{"$ref":"#/components/schemas/AccountStageValue"},{"type":"null"}]},"type":{"anyOf":[{"$ref":"#/components/schemas/SelectValue"},{"type":"null"}]},"research_tldr":{"anyOf":[{"$ref":"#/components/schemas/RichTextValue"},{"type":"null"}]},"last_activity_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_voice_call":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_meeting":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_global_thread":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_engaged_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_inbound_meeting_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_inbound_voice_call_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_inbound_global_thread_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outreached_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outbound_meeting_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outbound_voice_call_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outbound_global_thread_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"archived_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"created_source_form_submission_details":{"anyOf":[{"$ref":"#/components/schemas/CreatedSourceFormSubmissionDetailsValue"},{"type":"null"}]},"owner_user_id":{"$ref":"#/components/schemas/RecordReferenceValue"},"owner_team_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"participant_user_id_list":{"items":{"$ref":"#/components/schemas/RecordReferenceValue"},"type":"array","title":"Participant User Id List"},"created_by_user_id":{"$ref":"#/components/schemas/RecordReferenceValue"},"updated_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"archived_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["id","organization_id","created_at","updated_at","display_name","owner_user_id","created_by_user_id"],"title":"AccountObjectAttributes"},"AccountObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"account","title":"Record Type","default":"account"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/AccountObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"AccountObjectRecord"},"AccountPatchRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/AccountPatchRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"AccountPatchRequest","description":"PATCH /api/v2/account/{id} request envelope.\n\n``attributes`` is required (inherited from ``BaseRequest``), so a body that\nomits the block is a generic ``422``. An ``attributes`` block present but\ncarrying zero set fields (``{}``) is also rejected here with a ``422``: a\nPATCH must name at least one field to mutate."},"AccountPatchRequestAttributes":{"properties":{"display_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"string"},{"type":"null"}],"title":"Description"},"domains":{"anyOf":[{"items":{"$ref":"#/components/schemas/AccountDomainWrite"},"type":"array"},{"type":"null"}],"title":"Domains"},"stage":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"},{"type":"null"}],"title":"Stage"},"type":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"},{"type":"null"}],"title":"Type"},"official_website":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Official Website","description":"`official_website` mirrors `websites[0]`; Reevo derives the account's domain from this URL's host, so it participates in domain uniqueness and `_upsert` matching. A host resolving to a domain already owned by another account returns a `409 conflict` (bare on create/patch; the domains sub-resource `POST /account/{id}/attribute/domains` additionally names the domain in `details.canonical_value`)."},"websites":{"anyOf":[{"items":{"$ref":"#/components/schemas/UrlValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/StringValue"},"type":"array"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Websites"},"linkedin_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"x_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"X Url"},"facebook_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Facebook Url"},"zoominfo_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Zoominfo Url"},"estimated_annual_revenue":{"anyOf":[{"$ref":"#/components/schemas/CurrencyWriteShape"},{"type":"null"}]},"funding_raised":{"anyOf":[{"$ref":"#/components/schemas/CurrencyWriteShape"},{"type":"null"}]},"estimated_employee_count":{"anyOf":[{"$ref":"#/components/schemas/NumberValue-Input"},{"type":"integer"},{"type":"null"}],"title":"Estimated Employee Count"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressValue"},{"$ref":"#/components/schemas/AddressWrite"},{"type":"null"}],"title":"Address","description":"On PATCH, `address` merges leaf by leaf. A leaf you omit keeps its stored value, a leaf sent with a value is replaced, and a leaf sent as `null` is cleared. `address: null` removes the whole address. An address with no leaves (`{}`) or with all six leaves `null` changes nothing, so use `address: null` to remove the address. Nulling every leaf that currently has a value also removes the address, unless all six leaves are sent. Applies to the bare object and to the `{\"value\": {...}}` envelope."},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]},"participant_user_id_list":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"$ref":"#/components/schemas/UuidValue"}]},"type":"array"},{"type":"null"}],"title":"Participant User Id List"}},"additionalProperties":{"$ref":"#/components/schemas/CustomFieldAttributeRequestValue"},"type":"object","title":"AccountPatchRequestAttributes","description":"All standard fields optional on patch.\n\nDrops the system fields (``status`` / ``created_source``) and ``archived_at``\n(public archive is via DELETE, not PATCH).\n\n``domains`` is a full-array replace (mirroring contact ``contact_emails``):\na supplied array reconciles the account's domain links (add new, drop\nremoved, reconcile primary); ``[]`` clears all; absent leaves them untouched."},"AccountSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/AccountObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"AccountSingleResponse","description":"Wrapper around a single ``AccountObjectRecord`` — GET / PATCH."},"AccountStageOption":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"api_name":{"type":"string","title":"Api Name"},"account_stage_select_list_id":{"type":"string","format":"uuid","title":"Account Stage Select List Id"},"display_name":{"type":"string","title":"Display Name"},"index":{"type":"integer","title":"Index"}},"type":"object","required":["id","api_name","account_stage_select_list_id","display_name","index"],"title":"AccountStageOption"},"AccountStageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"select_list_id":{"type":"string","format":"uuid","title":"Select List Id"},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name"},"display_name":{"type":"string","title":"Display Name"}},"additionalProperties":false,"type":"object","required":["id","select_list_id","display_name"],"title":"AccountStageRead","description":"Read payload for an account stage value."},"AccountStageSelectList":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"stages":{"items":{"$ref":"#/components/schemas/AccountStageOption"},"type":"array","title":"Stages"}},"type":"object","required":["id","display_name","stages"],"title":"AccountStageSelectList"},"AccountStageTypeInfo":{"properties":{"value_type":{"type":"string","const":"account_stage","title":"Value Type","default":"account_stage"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"},"default_account_stage_select_list":{"$ref":"#/components/schemas/AccountStageSelectList"}},"type":"object","required":["is_array","default_account_stage_select_list"],"title":"AccountStageTypeInfo"},"AccountStageValue":{"properties":{"value_type":{"type":"string","const":"account_stage","title":"Value Type","default":"account_stage"},"value":{"$ref":"#/components/schemas/AccountStageRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"AccountStageValue"},"AccountUpsertRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/AccountCreateRequestAttributes"},"match":{"$ref":"#/components/schemas/RecordMatch"}},"additionalProperties":false,"type":"object","required":["attributes","match"],"title":"AccountUpsertRequest","description":"Upsert request — match block + create-shape attributes.\n\nReuses the shared writable create-shape directly. The upsert body carries\nno ``relationships`` block. The match-key field is immutable on the\nupdate branch, so a key present in BOTH ``match`` and ``attributes`` is a\nstructural conflict rejected here with a generic ``422``. An empty\n``attributes`` block (zero set fields) is likewise structural: an upsert must\ncarry at least one attribute so the no-match branch can CREATE the record."},"AccountUpsertResponse":{"properties":{"data":{"$ref":"#/components/schemas/AccountObjectRecord"},"meta":{"$ref":"#/components/schemas/DuplicateCheckUpsertMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"AccountUpsertResponse","description":"Response shape for the account ``_upsert`` endpoint."},"ActivityCreateRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/ActivityCreateRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"ActivityCreateRequest"},"ActivityCreateRequestAttributes":{"properties":{"type":{"$ref":"#/components/schemas/ManualActivityTypeWire"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/OthersMetadataCreate"},{"$ref":"#/components/schemas/CallMetadataCreate"},{"$ref":"#/components/schemas/MeetingMetadataCreate"},{"$ref":"#/components/schemas/EmailMetadataCreate"}],"title":"Metadata","description":"The object for type: OthersMetadataCreate for OTHERS, CallMetadataCreate for CALL, MeetingMetadataCreate for MEETING, EmailMetadataCreate for EMAIL. The object of another type is a 400."},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id","description":"An account of the caller's organization; an archived account is accepted."},"opportunity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Opportunity Id","description":"Must exist in the caller's organization. A logged meeting records the opportunity's current stage."},"contact_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":25},{"type":"null"}],"title":"Contact Ids","description":"CALL and OTHERS only; each a contact of the caller's organization that is not archived. MEETING and EMAIL associate their participants' contacts."},"sequence_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sequence Id","description":"Must exist in the caller's organization."}},"additionalProperties":false,"type":"object","required":["type","metadata"],"title":"ActivityCreateRequestAttributes","description":"Attributes of an activity to log.\n\n``metadata`` must be the object for ``type``: a mismatch is a 400."},"ActivityListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ActivityObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"ActivityListResponse","description":"Wrapper around a paginated list of activity records.\n\nUsed by POST /activity/_query for list/filter/sort/pagination."},"ActivityMeetingParticipant":{"properties":{"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"is_host":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Host"},"rsvp_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rsvp Status"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"}},"additionalProperties":false,"type":"object","required":["name"],"title":"ActivityMeetingParticipant"},"ActivityMetadata":{"oneOf":[{"$ref":"#/components/schemas/MeetingActivityMetadata"},{"$ref":"#/components/schemas/CallActivityMetadata"},{"$ref":"#/components/schemas/TaskActivityMetadata"},{"$ref":"#/components/schemas/CalendarEventActivityMetadata"}],"discriminator":{"propertyName":"kind","mapping":{"calendar_event":"#/components/schemas/CalendarEventActivityMetadata","call":"#/components/schemas/CallActivityMetadata","meeting":"#/components/schemas/MeetingActivityMetadata","task":"#/components/schemas/TaskActivityMetadata"}}},"ActivityObjectAttributes":{"properties":{"type":{"$ref":"#/components/schemas/EnumValue","description":"Activity type; one of EMAIL_THREAD, EMAIL_GLOBAL_THREAD, CALENDAR_EVENT, NOTE, MEETING, TASK, VOICE_CALL, SEQUENCE, SEQUENCE_ENROLLMENT, EXTERNAL_SEQUENCE_ENROLLMENT, MANUAL_ACTIVITY, CAMPAIGN, SMS, LINKEDIN_MESSAGE, LINKEDIN_CONNECTION_REQUEST, IMESSAGE, WHATSAPP_MESSAGE. The same values are accepted by the `types` request filter."},"sub_type":{"$ref":"#/components/schemas/EnumValue","description":"Activity sub-type (e.g., MANUAL_ACTIVITY_CREATED, CALL_INBOUND, etc.)"},"status":{"$ref":"#/components/schemas/EnumValue","description":"Activity status"},"priority":{"$ref":"#/components/schemas/EnumValue","description":"Activity priority"},"display_name":{"$ref":"#/components/schemas/StringValue","description":"Human-readable title or subject of the activity"},"reference_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}],"description":"Reference to the record behind this row: MEETING and VOICE_CALL -> `meeting`; NOTE -> `note`; TASK -> `task`; EMAIL_GLOBAL_THREAD -> `email_thread`. Null for every other type, including EMAIL_THREAD (per-mailbox thread ids are not global thread ids), legacy SMS rows stored as TASK, and types whose underlying record has no public resource."},"owner_user_id":{"$ref":"#/components/schemas/RecordReferenceValue","description":"User who owns or created this activity"},"occurred_at":{"$ref":"#/components/schemas/TimestampValue","description":"When the activity took place (user-entered time for backdated manual activities). The feed sorts newest-first by this value and the `occurred_from` / `occurred_to` filters bound it; `created_at` is the record insert time."},"ended_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}],"description":"Activity end time (null if not ended or not applicable)"}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["type","sub_type","status","priority","display_name","owner_user_id","occurred_at"],"title":"ActivityObjectAttributes","description":"Public-facing attributes of an enriched activity.\n\nSimplifies the internal EnrichedActivity surface by omitting:\n- Associated contacts/accounts/pipelines/sequences (as JSON strings)\n- Metadata blobs (call_metadata, meeting_metadata, etc. as JSON strings)\n- Source provenance (source_crm_objects, source_identifiers, attribution)\n- Internal reference counts\n\nIncludes core fields surfaced to the public API:\n- type: ActivityType enum (MEETING, EMAIL_GLOBAL_THREAD, CALL, TASK, NOTE, etc.)\n- sub_type: ActivitySubType enum\n- status: ActivityStatus enum (always present)\n- priority: ActivityPriority enum (always present)\n- display_name: human-readable title/subject\n- owner_user_id: user who created/owns the activity\n- created_at/ended_at: timestamps (created_at is top-level, ended_at optional)"},"ActivityObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"activity","title":"Record Type","default":"activity"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/ActivityObjectAttributes"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/ActivityMetadata"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"ActivityObjectRecord","description":"Response record for a single activity.\n\n``metadata`` is a deliberate exception to the ``attributes``-only record\nshape: a typed per-type union (``kind`` discriminator, plain scalars) that\ngeneric envelope walkers can ignore.\n\nCarries core activity data: id, type, timestamps, attributes, and the\ntyped per-type ``metadata`` union. ``metadata`` is ``None`` for\nMANUAL_ACTIVITY / NOTE / EMAIL_* / SEQUENCE* rows (lean card). The record\ncarries no ``relationships`` block."},"ActivityQueryRequest":{"properties":{"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"opportunity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Opportunity Id"},"types":{"anyOf":[{"items":{"$ref":"#/components/schemas/ActivityTypeWire"},"type":"array","minItems":1},{"type":"null"}],"title":"Types","description":"Return only rows whose `attributes.type` is one of these."},"occurred_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred From"},"occurred_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred To"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"},"limit":{"type":"integer","title":"Limit","default":50}},"additionalProperties":false,"type":"object","title":"ActivityQueryRequest","description":"Request body for ``POST /activity/_query``.\n\nExactly one parent scope (``contact_id`` / ``account_id`` /\n``opportunity_id``) must be supplied; ``opportunity_id`` maps to the\ninternal ``pipeline_id``."},"ActivitySingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/ActivityObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"ActivitySingleResponse","description":"The logged activity: the same record POST /activity/_query returns for it.\n\nattributes.type is the timeline type: MANUAL_ACTIVITY for a logged CALL or\nOTHERS, MEETING for a MEETING, EMAIL_GLOBAL_THREAD for an EMAIL."},"ActivityTaskAssignee":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"additionalProperties":false,"type":"object","title":"ActivityTaskAssignee"},"ActivityTypeWire":{"type":"string","enum":["EMAIL_THREAD","EMAIL_GLOBAL_THREAD","CALENDAR_EVENT","NOTE","MEETING","TASK","VOICE_CALL","SEQUENCE","SEQUENCE_ENROLLMENT","EXTERNAL_SEQUENCE_ENROLLMENT","MANUAL_ACTIVITY","CAMPAIGN","SMS","LINKEDIN_MESSAGE","LINKEDIN_CONNECTION_REQUEST","IMESSAGE","WHATSAPP_MESSAGE"],"title":"ActivityTypeWire","description":"Public activity type: the ``_query`` ``types`` filter and ``attributes.type``.\n\nMirrors every internal ``ActivityType`` value; a unit test asserts both\ndirections so a new internal type cannot silently drift out of the contract."},"AddAccountContactRelationshipBody":{"properties":{"related_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"$ref":"#/components/schemas/RelatedRecordIdObject"},{"type":"null"}],"title":"Related Record Id"},"related_record_match":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"},{"type":"string","format":"uuid"}]},"type":"object"},{"type":"null"}],"title":"Related Record Match"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"is_primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"}},"additionalProperties":false,"type":"object","title":"AddAccountContactRelationshipBody","description":"POST body for ``/relationship/contacts`` — reference plus edge attributes."},"AddAccountDomainBody":{"properties":{"domain_name":{"type":"string","title":"Domain Name"}},"additionalProperties":false,"type":"object","required":["domain_name"],"title":"AddAccountDomainBody","description":"POST ``/account/{id}/attribute/domains`` body.\n\nAdds one domain link to the account. The first active domain auto-promotes\nto primary inside ``AccountService.add_domain_to_account``; ``is_primary`` is\nnot part of the add body (set it afterward via the per-item PATCH)."},"AddContactAccountRelationshipBody":{"properties":{"related_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"$ref":"#/components/schemas/RelatedRecordIdObject"},{"type":"null"}],"title":"Related Record Id"},"related_record_match":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"},{"type":"string","format":"uuid"}]},"type":"object"},{"type":"null"}],"title":"Related Record Match"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"is_primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"}},"additionalProperties":false,"type":"object","title":"AddContactAccountRelationshipBody","description":"POST body for ``/relationship/accounts`` — reference plus edge attributes."},"AddContactOpportunityRelationshipBody":{"properties":{"related_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"$ref":"#/components/schemas/RelatedRecordIdObject"},{"type":"null"}],"title":"Related Record Id"},"related_record_match":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"},{"type":"string","format":"uuid"}]},"type":"object"},{"type":"null"}],"title":"Related Record Match"},"is_primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"}},"additionalProperties":false,"type":"object","title":"AddContactOpportunityRelationshipBody","description":"POST body for ``/relationship/opportunities`` — reference plus is_primary."},"AddOpportunityContactRelationshipBody":{"properties":{"related_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"$ref":"#/components/schemas/RelatedRecordIdObject"},{"type":"null"}],"title":"Related Record Id"},"related_record_match":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"},{"type":"string","format":"uuid"}]},"type":"object"},{"type":"null"}],"title":"Related Record Match"},"is_primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"}},"additionalProperties":false,"type":"object","title":"AddOpportunityContactRelationshipBody","description":"POST body for ``/relationship/contacts`` — reference plus is_primary."},"AddRelationshipEdgeBody":{"properties":{"related_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"$ref":"#/components/schemas/RelatedRecordIdObject"},{"type":"null"}],"title":"Related Record Id"},"related_record_match":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"},{"type":"string","format":"uuid"}]},"type":"object"},{"type":"null"}],"title":"Related Record Match"}},"additionalProperties":false,"type":"object","title":"RelationshipReferenceBody","description":"Reference-or-match target shape shared by every relationship POST body.\n\nExactly one of ``related_record_id`` / ``related_record_match`` must be\npresent; both or neither raises (mapped to ``field_value_invalid``)."},"AddressRead":{"properties":{"street_one":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street One"},"street_two":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street Two"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"}},"additionalProperties":false,"type":"object","title":"AddressRead","description":"Read payload for the `address` value type."},"AddressTypeInfo":{"properties":{"value_type":{"type":"string","const":"address","title":"Value Type","default":"address"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"}},"type":"object","required":["is_array"],"title":"AddressTypeInfo"},"AddressValue":{"properties":{"value_type":{"type":"string","const":"address","title":"Value Type","default":"address"},"value":{"$ref":"#/components/schemas/AddressRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"AddressValue"},"AddressWrite":{"properties":{"street_one":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street One"},"street_two":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street Two"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"}},"additionalProperties":false,"type":"object","title":"AddressWrite","description":"Write payload for the `address` value type.\n\nSame shape as ``AddressRead``; accepted alongside the ``AddressValue``\nenvelope so a caller can send the address bare (mirrors ``CurrencyWrite``\nvs ``CurrencyValue``). Read == write."},"AmbiguousMatchDetail":{"properties":{"code":{"type":"string","const":"ambiguous_match","title":"Code","default":"ambiguous_match"},"record_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Type"},"match_field_api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Field Api Name"},"match_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Key"},"match_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Value"},"hit_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hit Count"},"record_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Record Ids"}},"additionalProperties":false,"type":"object","title":"AmbiguousMatchDetail"},"ApiPermission":{"type":"string","enum":["accounts:read","accounts:write","contacts:read","contacts:write","opportunities:read","opportunities:write","tasks:read","tasks:write","notes:read","notes:write","custom_objects:read","custom_objects:write","users:read","mailboxes:read","sequence_enrollment:write","webhooks:write","ops_central:read","ops_central:write","ai_chat:write","activities:read","activities:write","meetings:read","meetings:write","emails:read","scheduler_link:read","scheduler_bookings:write"],"title":"ApiPermission","description":"New granular API permissions system"},"ApiRequestJsonValue":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"$ref":"#/components/schemas/ApiRequestJsonValue"},"type":"array"},{"additionalProperties":{"$ref":"#/components/schemas/ApiRequestJsonValue"},"type":"object"},{"type":"null"}]},"ApiRequestLimitPeriod":{"type":"string","enum":["hour","day","billing_period"],"title":"ApiRequestLimitPeriod"},"ApiRequestLimitReaction":{"type":"string","enum":["warn","block"],"title":"ApiRequestLimitReaction"},"ApiRequestPauseScope":{"type":"string","enum":["organization","you"],"title":"ApiRequestPauseScope"},"BaseModel":{"properties":{},"type":"object","title":"BaseModel"},"BooleanTypeInfo":{"properties":{"value_type":{"type":"string","const":"boolean","title":"Value Type","default":"boolean"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"BooleanTypeInfo"},"BooleanValue":{"properties":{"value_type":{"type":"string","const":"boolean","title":"Value Type","default":"boolean"},"value":{"type":"boolean","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"BooleanValue"},"CalendarEventActivityMetadata":{"properties":{"kind":{"type":"string","const":"calendar_event","title":"Kind","default":"calendar_event"},"title":{"type":"string","title":"Title"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"conferencing_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conferencing Provider"},"html_link":{"type":"string","title":"Html Link"}},"additionalProperties":false,"type":"object","required":["title","starts_at","ends_at","html_link"],"title":"CalendarEventActivityMetadata"},"CallActivityMetadata":{"properties":{"kind":{"type":"string","const":"call","title":"Kind","default":"call"},"direction":{"type":"string","title":"Direction"},"status":{"type":"string","title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"caller_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Number"}},"additionalProperties":false,"type":"object","required":["direction","status"],"title":"CallActivityMetadata"},"CallMetadataCreate":{"properties":{"call_time":{"type":"string","format":"date-time","title":"Call Time","description":"An ISO 8601 date-time with a UTC offset, on or after 1900-01-01T00:00:00Z and before 2100-01-01T00:00:00Z. A number, or a string that is only a number, is refused."},"subject":{"type":"string","minLength":1,"title":"Subject","description":"Must not be blank; leading and trailing whitespace is removed."},"participants":{"items":{"$ref":"#/components/schemas/ManualParticipantCreate"},"type":"array","maxItems":25,"title":"Participants","description":"An item's email can make the write create a contact, and an account for the email's domain, as the organization's activity capture settings (capture mode and blocked domains) and the contacts and accounts it already has decide. A blocked email gets no contact, though its domain can still get an account. An email at the API key user's domain or one of the organization's own domains, or a system address such as no-reply, info or admin, gets no contact. When the email of a participant, the sender of an email included, is that of a user of the organization who has turned their own activity capture off, the write creates no contact or account. A write that would create a contact needs the key's contacts:write, and one that would create an account needs accounts:write. A key missing a scope the write needs gets 403 insufficient_scope naming the missing scopes, and nothing is written."},"direction":{"anyOf":[{"$ref":"#/components/schemas/ManualCallDirectionWire"},{"type":"null"}]},"duration_minutes":{"anyOf":[{"type":"integer","maximum":35791394.0,"minimum":0.0},{"type":"null"}],"title":"Duration Minutes"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"category":{"$ref":"#/components/schemas/ManualActivityCategoryWire","default":"CALL"}},"additionalProperties":false,"type":"object","required":["call_time","subject"],"title":"CallMetadataCreate"},"CannotRemoveLastPrimaryDetail":{"properties":{"code":{"type":"string","const":"cannot_remove_last_primary","title":"Code","default":"cannot_remove_last_primary"},"field":{"type":"string","title":"Field"},"relationship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship"}},"additionalProperties":false,"type":"object","required":["field"],"title":"CannotRemoveLastPrimaryDetail"},"CommonValueEnvelope":{"oneOf":[{"$ref":"#/components/schemas/StringValue"},{"$ref":"#/components/schemas/LongTextValue"},{"$ref":"#/components/schemas/RichTextValue"},{"$ref":"#/components/schemas/NumberValue-Output"},{"$ref":"#/components/schemas/PercentValue-Output"},{"$ref":"#/components/schemas/CurrencyValue-Output"},{"$ref":"#/components/schemas/BooleanValue"},{"$ref":"#/components/schemas/TimestampValue"},{"$ref":"#/components/schemas/DateValue"},{"$ref":"#/components/schemas/TimeValue"},{"$ref":"#/components/schemas/EmailValue"},{"$ref":"#/components/schemas/PhoneNumberValue"},{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/UuidValue"},{"$ref":"#/components/schemas/EnumValue"},{"$ref":"#/components/schemas/SelectValue"},{"$ref":"#/components/schemas/RecordReferenceValue"},{"$ref":"#/components/schemas/AddressValue"}],"discriminator":{"propertyName":"value_type","mapping":{"address":"#/components/schemas/AddressValue","boolean":"#/components/schemas/BooleanValue","currency":"#/components/schemas/CurrencyValue-Output","date":"#/components/schemas/DateValue","email":"#/components/schemas/EmailValue","enum":"#/components/schemas/EnumValue","long_text":"#/components/schemas/LongTextValue","number":"#/components/schemas/NumberValue-Output","percent":"#/components/schemas/PercentValue-Output","phone_number":"#/components/schemas/PhoneNumberValue","record_reference":"#/components/schemas/RecordReferenceValue","rich_text":"#/components/schemas/RichTextValue","select":"#/components/schemas/SelectValue","string":"#/components/schemas/StringValue","time":"#/components/schemas/TimeValue","timestamp":"#/components/schemas/TimestampValue","url":"#/components/schemas/UrlValue","uuid":"#/components/schemas/UuidValue"}}},"CommonValueEnvelopeList":{"anyOf":[{"items":{"$ref":"#/components/schemas/StringValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/LongTextValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/RichTextValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/NumberValue-Output"},"type":"array"},{"items":{"$ref":"#/components/schemas/PercentValue-Output"},"type":"array"},{"items":{"$ref":"#/components/schemas/CurrencyValue-Output"},"type":"array"},{"items":{"$ref":"#/components/schemas/BooleanValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/TimestampValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/DateValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/TimeValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/EmailValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/PhoneNumberValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/UrlValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/UuidValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/EnumValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/SelectValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/RecordReferenceValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/AddressValue"},"type":"array"}]},"CommonValueWriteEnvelope":{"oneOf":[{"$ref":"#/components/schemas/StringValue"},{"$ref":"#/components/schemas/LongTextValue"},{"$ref":"#/components/schemas/RichTextValue"},{"$ref":"#/components/schemas/NumberValue-Input"},{"$ref":"#/components/schemas/PercentValue-Input"},{"$ref":"#/components/schemas/CurrencyValue-Input"},{"$ref":"#/components/schemas/BooleanValue"},{"$ref":"#/components/schemas/TimestampValue"},{"$ref":"#/components/schemas/DateValue"},{"$ref":"#/components/schemas/TimeValue"},{"$ref":"#/components/schemas/EmailValue"},{"$ref":"#/components/schemas/PhoneNumberValue"},{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/UuidValue"},{"$ref":"#/components/schemas/EnumValue"},{"$ref":"#/components/schemas/SelectValueWrite"},{"$ref":"#/components/schemas/RecordReferenceValue"},{"$ref":"#/components/schemas/AddressValue"}],"discriminator":{"propertyName":"value_type","mapping":{"address":"#/components/schemas/AddressValue","boolean":"#/components/schemas/BooleanValue","currency":"#/components/schemas/CurrencyValue-Input","date":"#/components/schemas/DateValue","email":"#/components/schemas/EmailValue","enum":"#/components/schemas/EnumValue","long_text":"#/components/schemas/LongTextValue","number":"#/components/schemas/NumberValue-Input","percent":"#/components/schemas/PercentValue-Input","phone_number":"#/components/schemas/PhoneNumberValue","record_reference":"#/components/schemas/RecordReferenceValue","rich_text":"#/components/schemas/RichTextValue","select":"#/components/schemas/SelectValueWrite","string":"#/components/schemas/StringValue","time":"#/components/schemas/TimeValue","timestamp":"#/components/schemas/TimestampValue","url":"#/components/schemas/UrlValue","uuid":"#/components/schemas/UuidValue"}}},"CommonValueWriteEnvelopeList":{"anyOf":[{"items":{"$ref":"#/components/schemas/StringValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/LongTextValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/RichTextValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/NumberValue-Input"},"type":"array"},{"items":{"$ref":"#/components/schemas/PercentValue-Input"},"type":"array"},{"items":{"$ref":"#/components/schemas/CurrencyValue-Input"},"type":"array"},{"items":{"$ref":"#/components/schemas/BooleanValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/TimestampValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/DateValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/TimeValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/EmailValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/PhoneNumberValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/UrlValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/UuidValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/EnumValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/SelectValueWrite"},"type":"array"},{"items":{"$ref":"#/components/schemas/RecordReferenceValue"},"type":"array"},{"items":{"$ref":"#/components/schemas/AddressValue"},"type":"array"}]},"ConcurrentUpsertConflictDetail":{"properties":{"code":{"type":"string","const":"concurrent_upsert_conflict","title":"Code","default":"concurrent_upsert_conflict"},"record_type":{"type":"string","title":"Record Type"},"match_key":{"type":"string","title":"Match Key"}},"additionalProperties":false,"type":"object","required":["record_type","match_key"],"title":"ConcurrentUpsertConflictDetail"},"ConflictDetail":{"properties":{"code":{"type":"string","const":"conflict","title":"Code","default":"conflict"},"reason":{"type":"string","title":"Reason"},"id":{"type":"string","title":"Id"},"record_type":{"type":"string","title":"Record Type"},"constraint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Constraint Id"},"canonical_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Value"}},"additionalProperties":false,"type":"object","required":["reason","id","record_type"],"title":"ConflictDetail"},"ContactCreateRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/ContactCreateRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"ContactCreateRequest"},"ContactCreateRequestAttributes":{"properties":{"first_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Last Name"},"middle_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Middle Name"},"title":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Title"},"department":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Department"},"stage":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"}],"title":"Stage"},"primary_email":{"anyOf":[{"$ref":"#/components/schemas/EmailValue"},{"type":"string"},{"type":"null"}],"title":"Primary Email"},"primary_phone_number":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumberValue"},{"type":"string"},{"type":"null"}],"title":"Primary Phone Number"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressValue"},{"$ref":"#/components/schemas/AddressWrite"},{"type":"null"}],"title":"Address"},"contact_emails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactEmailWrite"},"type":"array"},{"type":"null"}],"title":"Contact Emails"},"contact_phone_numbers":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactPhoneNumberWrite"},"type":"array"},{"type":"null"}],"title":"Contact Phone Numbers"},"linkedin_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"zoominfo_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Zoominfo Url"},"x_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"X Url"},"facebook_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Facebook Url"},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]},"participant_user_id_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecordReferenceWrite"},"type":"array"},{"type":"null"}],"title":"Participant User Id List"}},"additionalProperties":{"$ref":"#/components/schemas/CustomFieldAttributeRequestValue"},"type":"object","required":["stage"],"title":"ContactCreateRequestAttributes","description":"Create standard-field surface."},"ContactCreateResponse":{"properties":{"data":{"$ref":"#/components/schemas/ContactObjectRecord"},"meta":{"anyOf":[{"$ref":"#/components/schemas/SingleMeta"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["data"],"title":"ContactCreateResponse","description":"Wrapper for contact creates, with optional duplicate-check metadata."},"ContactEmailPatch":{"properties":{"is_primary":{"type":"boolean","title":"Is Primary"},"labels":{"anyOf":[{"items":{"$ref":"#/components/schemas/PublicChannelLabel"},"type":"array"},{"type":"null"}],"title":"Labels"}},"additionalProperties":false,"type":"object","title":"UnsetTypeAware","description":"Partial write payload for a per-item ``emails`` PATCH.\n\n``email`` is immutable on the per-item PATCH (it identifies the row), so it\nis intentionally absent. Each field distinguishes absent (``UNSET`` →\nuntouched) from explicit ``null`` (clears) from a value (sets)."},"ContactEmailRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"is_primary":{"type":"boolean","title":"Is Primary"},"labels":{"items":{"$ref":"#/components/schemas/PublicChannelLabel"},"type":"array","title":"Labels"}},"additionalProperties":false,"type":"object","required":["id","email","is_primary"],"title":"ContactEmailRead","description":"Read payload for the `contact_email` value type."},"ContactEmailTypeInfo":{"properties":{"value_type":{"type":"string","const":"contact_email","title":"Value Type","default":"contact_email"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"}},"type":"object","required":["is_array"],"title":"ContactEmailTypeInfo"},"ContactEmailValue":{"properties":{"value_type":{"type":"string","const":"contact_email","title":"Value Type","default":"contact_email"},"value":{"$ref":"#/components/schemas/ContactEmailRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"ContactEmailValue"},"ContactEmailWrite":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"is_primary":{"type":"boolean","title":"Is Primary"},"labels":{"items":{"$ref":"#/components/schemas/PublicChannelLabel"},"type":"array","title":"Labels"}},"additionalProperties":false,"type":"object","required":["email","is_primary"],"title":"ContactEmailWrite","description":"Write payload for the `contact_email` value type."},"ContactListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ContactObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"ContactListResponse","description":"Wrapper around a paginated list of ``ContactResponseRecord`` — query."},"ContactObjectAttributes":{"properties":{"id":{"$ref":"#/components/schemas/UuidValue"},"organization_id":{"$ref":"#/components/schemas/UuidValue"},"created_at":{"$ref":"#/components/schemas/TimestampValue"},"updated_at":{"$ref":"#/components/schemas/TimestampValue"},"display_name":{"$ref":"#/components/schemas/StringValue"},"first_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"last_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"middle_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"title":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"department":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"stage":{"$ref":"#/components/schemas/ContactStageValue"},"primary_email":{"anyOf":[{"$ref":"#/components/schemas/EmailValue"},{"type":"null"}]},"primary_phone_number":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumberValue"},{"type":"null"}]},"sms_consent":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"null"}]},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressValue"},{"type":"null"}]},"contact_emails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactEmailValue"},"type":"array"},{"type":"null"}],"title":"Contact Emails"},"contact_phone_numbers":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactPhoneNumberValue"},"type":"array"},{"type":"null"}],"title":"Contact Phone Numbers"},"linkedin_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"zoominfo_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"x_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"facebook_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"owner_team_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"created_by_user_id":{"$ref":"#/components/schemas/RecordReferenceValue"},"updated_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"archived_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"created_source_form_submission_details":{"anyOf":[{"$ref":"#/components/schemas/CreatedSourceFormSubmissionDetailsValue"},{"type":"null"}]},"last_activity_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_voice_call":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_meeting":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_global_thread":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_engaged_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outreached_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_inbound_meeting_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_inbound_voice_call_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_inbound_global_thread_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outbound_meeting_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outbound_voice_call_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outbound_global_thread_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"participant_user_id_list":{"items":{"$ref":"#/components/schemas/RecordReferenceValue"},"type":"array","title":"Participant User Id List"},"archived_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"stage_last_shifted_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["id","organization_id","created_at","updated_at","display_name","stage","created_by_user_id","participant_user_id_list"],"title":"ContactObjectAttributes"},"ContactObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"contact","title":"Record Type","default":"contact"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/ContactObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"ContactObjectRecord"},"ContactOpportunityRoleAttributes":{"properties":{"is_primary":{"$ref":"#/components/schemas/BooleanValue"}},"additionalProperties":false,"type":"object","required":["is_primary"],"title":"ContactOpportunityRoleAttributes","description":"Per-edge attributes of the contact-opportunity junction."},"ContactPatchRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/ContactPatchRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"ContactPatchRequest","description":"PATCH /api/v2/contact/{id} request envelope."},"ContactPatchRequestAttributes":{"properties":{"first_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Last Name"},"middle_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Middle Name"},"title":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Title"},"department":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Department"},"stage":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"},{"type":"null"}],"title":"Stage"},"primary_email":{"anyOf":[{"$ref":"#/components/schemas/EmailValue"},{"type":"string"},{"type":"null"}],"title":"Primary Email"},"primary_phone_number":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumberValue"},{"type":"string"},{"type":"null"}],"title":"Primary Phone Number"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressValue"},{"$ref":"#/components/schemas/AddressWrite"},{"type":"null"}],"title":"Address","description":"On PATCH, `address` merges leaf by leaf. A leaf you omit keeps its stored value, a leaf sent with a value is replaced, and a leaf sent as `null` is cleared. `address: null` removes the whole address. An address with no leaves (`{}`) or with all six leaves `null` changes nothing, so use `address: null` to remove the address. Nulling every leaf that currently has a value also removes the address, unless all six leaves are sent. Applies to the bare object and to the `{\"value\": {...}}` envelope."},"contact_emails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactEmailWrite"},"type":"array"},{"type":"null"}],"title":"Contact Emails"},"contact_phone_numbers":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactPhoneNumberWrite"},"type":"array"},{"type":"null"}],"title":"Contact Phone Numbers"},"linkedin_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"zoominfo_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Zoominfo Url"},"x_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"X Url"},"facebook_url":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Facebook Url"},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]},"participant_user_id_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecordReferenceWrite"},"type":"array"},{"type":"null"}],"title":"Participant User Id List"}},"additionalProperties":{"$ref":"#/components/schemas/CustomFieldAttributeRequestValue"},"type":"object","title":"ContactPatchRequestAttributes","description":"All standard fields optional on patch — no required gates.\n\n``display_name`` is NOT patchable: core ``ContactV2.display_name`` is\n``is_ui_editable=False`` (server-derived from first / last)."},"ContactPhoneNumberPatch":{"properties":{"is_primary":{"type":"boolean","title":"Is Primary"},"labels":{"anyOf":[{"items":{"$ref":"#/components/schemas/PublicChannelLabel"},"type":"array"},{"type":"null"}],"title":"Labels"}},"additionalProperties":false,"type":"object","title":"UnsetTypeAware","description":"Partial write payload for a per-item ``phone_numbers`` PATCH.\n\n``phone_number`` is immutable on the per-item PATCH (it identifies the row),\nso it is intentionally absent."},"ContactPhoneNumberRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"phone_number":{"type":"string","title":"Phone Number"},"is_primary":{"type":"boolean","title":"Is Primary"},"labels":{"items":{"$ref":"#/components/schemas/PublicChannelLabel"},"type":"array","title":"Labels"}},"additionalProperties":false,"type":"object","required":["id","phone_number","is_primary"],"title":"ContactPhoneNumberRead","description":"Read payload for the `contact_phone_number` value type."},"ContactPhoneNumberTypeInfo":{"properties":{"value_type":{"type":"string","const":"contact_phone_number","title":"Value Type","default":"contact_phone_number"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"}},"type":"object","required":["is_array"],"title":"ContactPhoneNumberTypeInfo"},"ContactPhoneNumberValue":{"properties":{"value_type":{"type":"string","const":"contact_phone_number","title":"Value Type","default":"contact_phone_number"},"value":{"$ref":"#/components/schemas/ContactPhoneNumberRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"ContactPhoneNumberValue"},"ContactPhoneNumberWrite":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"labels":{"items":{"$ref":"#/components/schemas/PublicChannelLabel"},"type":"array","title":"Labels"}},"additionalProperties":false,"type":"object","required":["phone_number"],"title":"ContactPhoneNumberWrite","description":"Write payload for the `contact_phone_number` value type."},"ContactSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/ContactObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"ContactSingleResponse","description":"Wrapper around a single ``ContactResponseRecord`` — GET / PATCH.\n\nThe record-write surface carries no ``relationships`` body, so\nthere is no inline-relationship partial-failure meta on create / patch;\nthe wire response is ``{\"data\": {...}}``."},"ContactStageOption":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"api_name":{"type":"string","title":"Api Name"},"contact_stage_select_list_id":{"type":"string","format":"uuid","title":"Contact Stage Select List Id"},"display_name":{"type":"string","title":"Display Name"},"index":{"type":"integer","title":"Index"}},"type":"object","required":["id","api_name","contact_stage_select_list_id","display_name","index"],"title":"ContactStageOption"},"ContactStageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"select_list_id":{"type":"string","format":"uuid","title":"Select List Id"},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name"},"display_name":{"type":"string","title":"Display Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"additionalProperties":false,"type":"object","required":["id","select_list_id","display_name"],"title":"ContactStageRead","description":"Read payload for a contact stage value."},"ContactStageSelectList":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"stages":{"items":{"$ref":"#/components/schemas/ContactStageOption"},"type":"array","title":"Stages"}},"type":"object","required":["id","display_name","stages"],"title":"ContactStageSelectList"},"ContactStageTypeInfo":{"properties":{"value_type":{"type":"string","const":"contact_stage","title":"Value Type","default":"contact_stage"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"},"default_contact_stage_select_list":{"$ref":"#/components/schemas/ContactStageSelectList"}},"type":"object","required":["is_array","default_contact_stage_select_list"],"title":"ContactStageTypeInfo"},"ContactStageValue":{"properties":{"value_type":{"type":"string","const":"contact_stage","title":"Value Type","default":"contact_stage"},"value":{"$ref":"#/components/schemas/ContactStageRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"ContactStageValue"},"ContactUpsertRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/ContactCreateRequestAttributes"},"match":{"$ref":"#/components/schemas/RecordMatch"}},"additionalProperties":false,"type":"object","required":["attributes","match"],"title":"ContactUpsertRequest","description":"Upsert request — match block + create-shape attributes."},"ContactUpsertResponse":{"properties":{"data":{"$ref":"#/components/schemas/ContactObjectRecord"},"meta":{"$ref":"#/components/schemas/DuplicateCheckUpsertMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ContactUpsertResponse","description":"Response shape for the contact ``_upsert`` endpoint."},"CreatedSourceFormSubmissionDetailsRead":{"properties":{"form_submission_id":{"$ref":"#/components/schemas/RecordReferenceRead"},"form_id":{"$ref":"#/components/schemas/RecordReferenceRead"},"source_event_occurred_at":{"type":"string","format":"date-time","title":"Source Event Occurred At"},"utm_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign"},"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Medium"},"utm_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Content"},"utm_term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Term"}},"additionalProperties":false,"type":"object","required":["form_submission_id","form_id","source_event_occurred_at"],"title":"CreatedSourceFormSubmissionDetailsRead","description":"Read payload for the ``created_source_form_submission_details`` value type."},"CreatedSourceFormSubmissionDetailsTypeInfo":{"properties":{"value_type":{"type":"string","const":"created_source_form_submission_details","title":"Value Type","default":"created_source_form_submission_details"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"}},"type":"object","required":["is_array"],"title":"CreatedSourceFormSubmissionDetailsTypeInfo"},"CreatedSourceFormSubmissionDetailsValue":{"properties":{"value_type":{"type":"string","const":"created_source_form_submission_details","title":"Value Type","default":"created_source_form_submission_details"},"value":{"$ref":"#/components/schemas/CreatedSourceFormSubmissionDetailsRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"CreatedSourceFormSubmissionDetailsValue"},"CurrencyRead-Input":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"}},"additionalProperties":false,"type":"object","required":["amount"],"title":"CurrencyRead","description":"Read payload for the `currency` value type."},"CurrencyRead-Output":{"properties":{"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"}},"additionalProperties":false,"type":"object","required":["amount"],"title":"CurrencyRead","description":"Read payload for the `currency` value type."},"CurrencyTypeInfo":{"properties":{"value_type":{"type":"string","const":"currency","title":"Value Type","default":"currency"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"CurrencyTypeInfo"},"CurrencyValue-Input":{"properties":{"value_type":{"type":"string","const":"currency","title":"Value Type","default":"currency"},"value":{"$ref":"#/components/schemas/CurrencyRead-Input"}},"additionalProperties":false,"type":"object","required":["value"],"title":"CurrencyValue"},"CurrencyValue-Output":{"properties":{"value_type":{"type":"string","const":"currency","title":"Value Type","default":"currency"},"value":{"$ref":"#/components/schemas/CurrencyRead-Output"}},"additionalProperties":false,"type":"object","required":["value"],"title":"CurrencyValue"},"CurrencyWrite":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"}},"additionalProperties":false,"type":"object","required":["amount"],"title":"CurrencyWrite","description":"Write payload for the `currency` value type."},"CurrencyWriteShape":{"anyOf":[{"$ref":"#/components/schemas/CurrencyValue-Input"},{"$ref":"#/components/schemas/CurrencyWrite"},{"$ref":"#/components/schemas/NumberValue-Input"},{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"string"}]},"CustomFieldAttributeRequestValue":{"anyOf":[{"$ref":"#/components/schemas/CommonValueWriteEnvelope"},{"$ref":"#/components/schemas/CommonValueWriteEnvelopeList"},{"$ref":"#/components/schemas/ApiRequestJsonValue"}]},"CustomObjectCreateRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/CustomObjectCreateRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"CustomObjectCreateRequest"},"CustomObjectCreateRequestAttributes":{"properties":{"display_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"}],"title":"Display Name"}},"additionalProperties":{"$ref":"#/components/schemas/CustomFieldAttributeRequestValue"},"type":"object","required":["display_name"],"title":"CustomObjectCreateRequestAttributes"},"CustomObjectListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CustomObjectObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"CustomObjectListResponse","description":"``{\"data\": [...], \"pagination\": {...}}`` — ``_query``."},"CustomObjectObjectAttributes":{"properties":{"id":{"$ref":"#/components/schemas/UuidValue"},"display_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/TimestampValue"},"updated_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["id","created_at"],"title":"CustomObjectObjectAttributes"},"CustomObjectObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","title":"Record Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/CustomObjectObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","record_type","created_at","updated_at","attributes"],"title":"CustomObjectObjectRecord"},"CustomObjectPatchRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/CustomObjectPatchRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"CustomObjectPatchRequest"},"CustomObjectPatchRequestAttributes":{"properties":{"display_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Display Name"}},"additionalProperties":{"$ref":"#/components/schemas/CustomFieldAttributeRequestValue"},"type":"object","title":"CustomObjectPatchRequestAttributes"},"CustomObjectSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/CustomObjectObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"CustomObjectSingleResponse","description":"``{\"data\": <record>}`` — GET / POST / PATCH."},"CustomObjectUpsertRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/CustomObjectCreateRequestAttributes"},"match":{"$ref":"#/components/schemas/RecordMatch"}},"additionalProperties":false,"type":"object","required":["attributes","match"],"title":"CustomObjectUpsertRequest"},"CustomObjectUpsertResponse":{"properties":{"data":{"$ref":"#/components/schemas/CustomObjectObjectRecord"},"meta":{"$ref":"#/components/schemas/UpsertMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"CustomObjectUpsertResponse","description":"``{\"data\": <record>, \"meta\": ...}`` — ``_upsert``."},"DateTypeInfo":{"properties":{"value_type":{"type":"string","const":"date","title":"Value Type","default":"date"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"DateTypeInfo"},"DateValue":{"properties":{"value_type":{"type":"string","const":"date","title":"Value Type","default":"date"},"value":{"type":"string","format":"date","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"DateValue"},"DescriptorReservedDetail":{"properties":{"code":{"type":"string","const":"descriptor_naming_reserved","title":"Code","default":"descriptor_naming_reserved"},"api_name":{"type":"string","title":"Api Name"},"reserved_namespace":{"type":"string","title":"Reserved Namespace"}},"additionalProperties":false,"type":"object","required":["api_name","reserved_namespace"],"title":"DescriptorReservedDetail"},"DuplicateCheckStatus":{"type":"string","enum":["matched","no_match","out_of_scope","not_applicable","skipped","unavailable"],"title":"DuplicateCheckStatus","description":"Outcome of one create-time duplicate check.\n\n`not_applicable` and `no_match` are deliberately distinct: the first means no\nrule could be evaluated against the draft, the second means we looked and\nfound nothing. Collapsing them makes the heed-rate metric meaningless."},"DuplicateCheckUpsertMeta":{"properties":{"action":{"type":"string","enum":["created","updated"],"title":"Action"},"matched_on":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"},{"type":"string","format":"uuid"}]},"type":"object","title":"Matched On"},"duplicate_check":{"anyOf":[{"$ref":"#/components/schemas/PublicDuplicateCheck"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["action","matched_on"],"title":"DuplicateCheckUpsertMeta","description":"Upsert metadata for account/contact, which may include dedup results."},"DuplicateRecordDetail":{"properties":{"code":{"type":"string","const":"duplicate_record","title":"Code","default":"duplicate_record"},"record_type":{"type":"string","title":"Record Type"},"matches":{"items":{"$ref":"#/components/schemas/PublicDuplicateMatch"},"type":"array","title":"Matches"},"redacted_count":{"type":"integer","title":"Redacted Count","default":0},"redacted_owners":{"items":{"$ref":"#/components/schemas/PublicDuplicateOwner"},"type":"array","title":"Redacted Owners"}},"additionalProperties":false,"type":"object","required":["record_type"],"title":"DuplicateRecordDetail"},"EmailMessageListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/EmailMessageObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"EmailMessageListResponse","description":"POST /email_message/_query."},"EmailMessageObjectAttributes":{"properties":{"email_thread_id":{"$ref":"#/components/schemas/RecordReferenceValue"},"sent_at":{"$ref":"#/components/schemas/TimestampValue"},"subject":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"from":{"items":{"$ref":"#/components/schemas/EmailParticipantValue"},"type":"array","title":"From"},"to":{"items":{"$ref":"#/components/schemas/EmailParticipantValue"},"type":"array","title":"To"},"cc":{"items":{"$ref":"#/components/schemas/EmailParticipantValue"},"type":"array","title":"Cc"},"bcc":{"items":{"$ref":"#/components/schemas/EmailParticipantValue"},"type":"array","title":"Bcc"},"body_text":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"null"}]}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["email_thread_id","sent_at","subject","from","to","cc","bcc"],"title":"EmailMessageObjectAttributes"},"EmailMessageObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"email_message","title":"Record Type","default":"email_message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/EmailMessageObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"EmailMessageObjectRecord"},"EmailMessageQueryRequest":{"properties":{"email_thread_id":{"type":"string","format":"uuid","title":"Email Thread Id","description":"Email thread to read."},"sort":{"$ref":"#/components/schemas/EmailMessageSort","description":"`sent_at_asc` (oldest first) or `sent_at_desc` (newest first).","default":"sent_at_asc"},"include_body":{"type":"boolean","title":"Include Body","description":"When false, records omit `body_text`.","default":true},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor","description":"`pagination.next_cursor` from the previous page."},"limit":{"type":"integer","title":"Limit","description":"Page size, 1 to 100.","default":50}},"additionalProperties":false,"type":"object","required":["email_thread_id"],"title":"EmailMessageQueryRequest"},"EmailMessageSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/EmailMessageObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"EmailMessageSingleResponse","description":"GET /email_message/{email_message_id}."},"EmailMessageSort":{"type":"string","enum":["sent_at_asc","sent_at_desc"],"title":"EmailMessageSort"},"EmailMetadataCreate":{"properties":{"email_created_at":{"type":"string","format":"date-time","title":"Email Created At","description":"An ISO 8601 date-time with a UTC offset, on or after 1900-01-01T00:00:00Z and before 2100-01-01T00:00:00Z. A number, or a string that is only a number, is refused."},"sender":{"$ref":"#/components/schemas/EmailParticipantCreate","description":"For an email that is not a reply, the mailbox the email is logged as sent from: a mailbox the organization already has for this address must belong to the API key's user, be neither archived nor deleted, and be active unless it is an offline mailbox, and for an address with no mailbox the API key's user gets an offline one. For a reply (reply_to_email_thread_id), mailboxes and members are looked up to decide whether the reply is recorded as sent or received, and a sent reply from a member's address with no mailbox gets an offline one owned by that member, reusing an offline placeholder the organization already has at that address."},"recipients":{"items":{"$ref":"#/components/schemas/EmailParticipantCreate"},"type":"array","maxItems":25,"minItems":1,"title":"Recipients","description":"An item's email can make the write create a contact, and an account for the email's domain, as the organization's activity capture settings (capture mode and blocked domains) and the contacts and accounts it already has decide. A blocked email gets no contact, though its domain can still get an account. An email at the API key user's domain or one of the organization's own domains, or a system address such as no-reply, info or admin, gets no contact. When the email of a participant, the sender of an email included, is that of a user of the organization who has turned their own activity capture off, the write creates no contact or account. A write that would create a contact needs the key's contacts:write, and one that would create an account needs accounts:write. A key missing a scope the write needs gets 403 insufficient_scope naming the missing scopes, and nothing is written."},"subject":{"type":"string","minLength":1,"title":"Subject","description":"Must not be blank; leading and trailing whitespace is removed."},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet"},"reply_to_email_thread_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reply To Email Thread Id","description":"Log the email as a reply in this email thread, such as the attributes.reference_id of an email logged earlier: it joins the same conversation as a reply to its latest delivered message, and keeps the thread's account, opportunity and sequence, so account_id, opportunity_id and sequence_id must be omitted. The thread must have a copy the API key's user logged from an address with no connected mailbox (a connected mailbox's replies arrive by sync), and email_created_at must be after the thread's latest message. The organization's addresses are its members' under any membership status and those of its mailboxes other than offline placeholders, archived and deleted ones included. The reply is recorded as sent when its sender is one of them, unless the sender is also a recipient and is not the address of the thread's logged copy; otherwise it is recorded as received. The thread counts as started by the organization when its earliest message is from one of those addresses, and otherwise as engaged when a later message or this reply is; with the reply's direction, that decides whether its recipients, and a received reply's sender, can become contacts under the organization's capture settings."}},"additionalProperties":false,"type":"object","required":["email_created_at","sender","recipients","subject"],"title":"EmailMetadataCreate"},"EmailParticipantCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id","description":"A contact of the caller's organization that is not archived."}},"additionalProperties":false,"type":"object","required":["email"],"title":"EmailParticipantCreate","description":"The sender or a recipient of a logged email."},"EmailParticipantRead":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},"additionalProperties":false,"type":"object","required":["email","name","contact_id","user_id"],"title":"EmailParticipantRead","description":"Read payload for an email participant value."},"EmailParticipantTypeInfo":{"properties":{"value_type":{"type":"string","const":"email_participant","title":"Value Type","default":"email_participant"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"}},"type":"object","required":["is_array"],"title":"EmailParticipantTypeInfo"},"EmailParticipantValue":{"properties":{"value_type":{"type":"string","const":"email_participant","title":"Value Type","default":"email_participant"},"value":{"$ref":"#/components/schemas/EmailParticipantRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"EmailParticipantValue"},"EmailThreadObjectAttributes":{"properties":{"subject":{"$ref":"#/components/schemas/StringValue"},"participant_emails":{"items":{"$ref":"#/components/schemas/EmailValue"},"type":"array","title":"Participant Emails"},"message_count":{"$ref":"#/components/schemas/NumberValue-Output"},"earliest_message_date":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"latest_message_date":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"owner_user_ids":{"items":{"$ref":"#/components/schemas/RecordReferenceValue"},"type":"array","title":"Owner User Ids"}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["subject","participant_emails","message_count","owner_user_ids"],"title":"EmailThreadObjectAttributes"},"EmailThreadObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"email_thread","title":"Record Type","default":"email_thread"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/EmailThreadObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"EmailThreadObjectRecord"},"EmailThreadSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/EmailThreadObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"EmailThreadSingleResponse","description":"Wrapper around a single ``EmailThreadObjectRecord`` — GET."},"EmailTypeInfo":{"properties":{"value_type":{"type":"string","const":"email","title":"Value Type","default":"email"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"EmailTypeInfo"},"EmailValue":{"properties":{"value_type":{"type":"string","const":"email","title":"Value Type","default":"email"},"value":{"type":"string","format":"email","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"EmailValue"},"EnumTypeInfo":{"properties":{"value_type":{"type":"string","const":"enum","title":"Value Type","default":"enum"},"is_array":{"type":"boolean","title":"Is Array"},"allowed_values":{"items":{"type":"string"},"type":"array","title":"Allowed Values"}},"type":"object","required":["is_array","allowed_values"],"title":"EnumTypeInfo"},"EnumValue":{"properties":{"value_type":{"type":"string","const":"enum","title":"Value Type","default":"enum"},"value":{"type":"string","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"EnumValue"},"FieldHistoryItem_OpportunityStageValue_":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"operation":{"$ref":"#/components/schemas/FieldHistoryOperation"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"},"old_value":{"anyOf":[{"$ref":"#/components/schemas/OpportunityStageValue"},{"type":"null"}]},"new_value":{"anyOf":[{"$ref":"#/components/schemas/OpportunityStageValue"},{"type":"null"}]},"time_in_old_value_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time In Old Value Seconds"},"changed_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Changed By User Id"}},"additionalProperties":false,"type":"object","required":["id","operation","changed_at","old_value","new_value","time_in_old_value_seconds","changed_by_user_id"],"title":"FieldHistoryItem[OpportunityStageValue]"},"FieldHistoryOperation":{"type":"string","enum":["created","updated","archived"],"title":"FieldHistoryOperation"},"FieldNotCreatableDetail":{"properties":{"code":{"type":"string","const":"field_not_creatable","title":"Code","default":"field_not_creatable"},"field":{"type":"string","title":"Field"},"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Fields"}},"additionalProperties":false,"type":"object","required":["field"],"title":"FieldNotCreatableDetail"},"FieldNotUpdatableDetail":{"properties":{"code":{"type":"string","const":"field_not_updatable","title":"Code","default":"field_not_updatable"},"field":{"type":"string","title":"Field"},"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Fields"}},"additionalProperties":false,"type":"object","required":["field"],"title":"FieldNotUpdatableDetail"},"FieldNotWritableDetail":{"properties":{"code":{"type":"string","const":"field_not_writable","title":"Code","default":"field_not_writable"},"field":{"type":"string","title":"Field"},"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Fields"},"operation":{"type":"string","enum":["create","update"],"title":"Operation"},"kind":{"anyOf":[{"type":"string","enum":["junction","singleton_fk","custom_association","domain_crm_association"]},{"type":"null"}],"title":"Kind"},"reason":{"anyOf":[{"type":"string","enum":["edge_post_not_supported","no_per_edge_state","read_only","missing_descriptor","missing_association"]},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["field","operation"],"title":"FieldNotWritableDetail"},"FieldRequiredMissingDetail":{"properties":{"code":{"type":"string","const":"field_required_missing","title":"Code","default":"field_required_missing"},"field":{"type":"string","title":"Field"},"missing_fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Missing Fields"}},"additionalProperties":false,"type":"object","required":["field"],"title":"FieldRequiredMissingDetail"},"FieldSchema":{"properties":{"api_name":{"type":"string","title":"Api Name"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_creatable":{"type":"boolean","title":"Is Creatable"},"is_updatable":{"type":"boolean","title":"Is Updatable"},"is_required_on_create":{"type":"boolean","title":"Is Required On Create","default":false},"is_unique":{"type":"boolean","title":"Is Unique","default":false},"is_custom":{"type":"boolean","title":"Is Custom","default":false},"is_sortable":{"type":"boolean","title":"Is Sortable","default":false},"is_filterable":{"type":"boolean","title":"Is Filterable","default":false},"filter_operators":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filter Operators"},"type_info":{"$ref":"#/components/schemas/ValueTypeInfo"}},"type":"object","required":["api_name","display_name","is_creatable","is_updatable","type_info"],"title":"FieldSchema","description":"Public-API descriptor for a single field on a record_type.\n\n``api_name`` is already post-rename, so callers do not need to consult the\nrename registry. Read-only fields are signaled by ``is_creatable=False AND\nis_updatable=False``."},"FieldValueInvalidDetail":{"properties":{"code":{"type":"string","const":"field_value_invalid","title":"Code","default":"field_value_invalid"},"field":{"type":"string","title":"Field"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"received_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Received Type"},"received_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Received Value"},"value_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Type"}},"additionalProperties":false,"type":"object","required":["field"],"title":"FieldValueInvalidDetail"},"FilterDepthExceededDetail":{"properties":{"code":{"type":"string","const":"filter_depth_exceeded","title":"Code","default":"filter_depth_exceeded"},"max_depth":{"type":"integer","title":"Max Depth"}},"additionalProperties":false,"type":"object","required":["max_depth"],"title":"FilterDepthExceededDetail"},"HealthResponse":{"properties":{"data":{"$ref":"#/components/schemas/PublicV2HealthStatus"}},"additionalProperties":false,"type":"object","required":["data"],"title":"HealthResponse","description":"Response envelope for `GET /api/v2/health`.\n\nThe shape mirrors the public-API single-record envelope (`data:\npayload`) so every documented `/api/v2` response shares a uniform\ntop-level structure. The inner `HealthStatus` is dedicated to this\nendpoint rather than reusing `common.envelope.SingleResponse`,\nwhich is record-typed (id / record_type / attributes) and does not\nfit a liveness payload."},"InvalidApiKeyDetail":{"properties":{"code":{"type":"string","const":"invalid_api_key","title":"Code","default":"invalid_api_key"},"reason":{"anyOf":[{"type":"string","enum":["malformed","unknown","expired"]},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"InvalidApiKeyDetail"},"InvalidCursorDetail":{"properties":{"code":{"type":"string","const":"invalid_cursor","title":"Code","default":"invalid_cursor"},"reason":{"type":"string","enum":["malformed_payload","version_unsupported","filter_sort_changed","parent_api_name_changed"],"title":"Reason"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"InvalidCursorDetail"},"InvalidFilterFieldDetail":{"properties":{"code":{"type":"string","const":"invalid_filter_field","title":"Code","default":"invalid_filter_field"},"field":{"type":"string","title":"Field"},"hop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hop"},"parent_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Field"},"filterable_subfields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filterable Subfields"}},"additionalProperties":false,"type":"object","required":["field"],"title":"InvalidFilterFieldDetail"},"InvalidFilterOperatorDetail":{"properties":{"code":{"type":"string","const":"invalid_filter_operator","title":"Code","default":"invalid_filter_operator"},"field":{"type":"string","title":"Field"},"operator":{"type":"string","title":"Operator"},"allowed":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed"},"check":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check"}},"additionalProperties":false,"type":"object","required":["field","operator"],"title":"InvalidFilterOperatorDetail"},"InvalidFilterValueDetail":{"properties":{"code":{"type":"string","const":"invalid_filter_value","title":"Code","default":"invalid_filter_value"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"},"expected_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Type"},"value_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Type"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator"},"max_elements":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Elements"},"received":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Received"},"received_element_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Received Element Type"}},"additionalProperties":false,"type":"object","title":"InvalidFilterValueDetail"},"InvalidTargetIdentifierDetail":{"properties":{"code":{"type":"string","const":"invalid_target_identifier","title":"Code","default":"invalid_target_identifier"},"reason":{"type":"string","enum":["missing","conflicting"],"title":"Reason"},"related_record_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Record Id"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"InvalidTargetIdentifierDetail"},"JsonValue-Output":{},"JunctionRelationshipEdgeResponse_ContactOpportunityRoleAttributes_":{"properties":{"parent":{"$ref":"#/components/schemas/ParentRef"},"api_name":{"type":"string","title":"Api Name"},"item":{"$ref":"#/components/schemas/JunctionRelationshipItem_ContactOpportunityRoleAttributes_"}},"additionalProperties":false,"type":"object","required":["parent","api_name","item"],"title":"JunctionRelationshipEdgeResponse[ContactOpportunityRoleAttributes]"},"JunctionRelationshipEdgeResponse_PublicV2ContactAccountRoleAttributes_":{"properties":{"parent":{"$ref":"#/components/schemas/ParentRef"},"api_name":{"type":"string","title":"Api Name"},"item":{"$ref":"#/components/schemas/JunctionRelationshipItem_PublicV2ContactAccountRoleAttributes_"}},"additionalProperties":false,"type":"object","required":["parent","api_name","item"],"title":"JunctionRelationshipEdgeResponse[PublicV2ContactAccountRoleAttributes]"},"JunctionRelationshipItem_ContactOpportunityRoleAttributes_":{"properties":{"related_record_id":{"type":"string","format":"uuid","title":"Related Record Id"},"related_record_type":{"type":"string","title":"Related Record Type"},"through":{"$ref":"#/components/schemas/JunctionThrough_ContactOpportunityRoleAttributes_"}},"additionalProperties":false,"type":"object","required":["related_record_id","related_record_type","through"],"title":"JunctionRelationshipItem[ContactOpportunityRoleAttributes]"},"JunctionRelationshipItem_PublicV2ContactAccountRoleAttributes_":{"properties":{"related_record_id":{"type":"string","format":"uuid","title":"Related Record Id"},"related_record_type":{"type":"string","title":"Related Record Type"},"through":{"$ref":"#/components/schemas/JunctionThrough_PublicV2ContactAccountRoleAttributes_"}},"additionalProperties":false,"type":"object","required":["related_record_id","related_record_type","through"],"title":"JunctionRelationshipItem[PublicV2ContactAccountRoleAttributes]"},"JunctionRelationshipItem_TeamMembershipAttributes_":{"properties":{"related_record_id":{"type":"string","format":"uuid","title":"Related Record Id"},"related_record_type":{"type":"string","title":"Related Record Type"},"through":{"$ref":"#/components/schemas/JunctionThrough_TeamMembershipAttributes_"}},"additionalProperties":false,"type":"object","required":["related_record_id","related_record_type","through"],"title":"JunctionRelationshipItem[TeamMembershipAttributes]"},"JunctionRelationshipResponse_ContactOpportunityRoleAttributes_":{"properties":{"count":{"type":"integer","title":"Count"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"parent":{"$ref":"#/components/schemas/ParentRef"},"api_name":{"type":"string","title":"Api Name"},"items":{"items":{"$ref":"#/components/schemas/JunctionRelationshipItem_ContactOpportunityRoleAttributes_"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["count","next_cursor","parent","api_name","items"],"title":"JunctionRelationshipResponse[ContactOpportunityRoleAttributes]"},"JunctionRelationshipResponse_PublicV2ContactAccountRoleAttributes_":{"properties":{"count":{"type":"integer","title":"Count"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"parent":{"$ref":"#/components/schemas/ParentRef"},"api_name":{"type":"string","title":"Api Name"},"items":{"items":{"$ref":"#/components/schemas/JunctionRelationshipItem_PublicV2ContactAccountRoleAttributes_"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["count","next_cursor","parent","api_name","items"],"title":"JunctionRelationshipResponse[PublicV2ContactAccountRoleAttributes]"},"JunctionRelationshipResponse_TeamMembershipAttributes_":{"properties":{"count":{"type":"integer","title":"Count"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"parent":{"$ref":"#/components/schemas/ParentRef"},"api_name":{"type":"string","title":"Api Name"},"items":{"items":{"$ref":"#/components/schemas/JunctionRelationshipItem_TeamMembershipAttributes_"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["count","next_cursor","parent","api_name","items"],"title":"JunctionRelationshipResponse[TeamMembershipAttributes]"},"JunctionThrough_BaseModel_":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","title":"Record Type"},"attributes":{"$ref":"#/components/schemas/BaseModel"}},"additionalProperties":false,"type":"object","required":["id","record_type","attributes"],"title":"JunctionThrough[BaseModel]"},"JunctionThrough_ContactOpportunityRoleAttributes_":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","title":"Record Type"},"attributes":{"$ref":"#/components/schemas/ContactOpportunityRoleAttributes"}},"additionalProperties":false,"type":"object","required":["id","record_type","attributes"],"title":"JunctionThrough[ContactOpportunityRoleAttributes]"},"JunctionThrough_PublicV2ContactAccountRoleAttributes_":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","title":"Record Type"},"attributes":{"$ref":"#/components/schemas/PublicV2ContactAccountRoleAttributes"}},"additionalProperties":false,"type":"object","required":["id","record_type","attributes"],"title":"JunctionThrough[PublicV2ContactAccountRoleAttributes]"},"JunctionThrough_TeamMembershipAttributes_":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","title":"Record Type"},"attributes":{"$ref":"#/components/schemas/TeamMembershipAttributes"}},"additionalProperties":false,"type":"object","required":["id","record_type","attributes"],"title":"JunctionThrough[TeamMembershipAttributes]"},"LimitOutOfRangeDetail":{"properties":{"code":{"type":"string","const":"limit_out_of_range","title":"Code","default":"limit_out_of_range"},"limit":{"type":"integer","title":"Limit"},"allowed_range":{"prefixItems":[{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2,"title":"Allowed Range"}},"additionalProperties":false,"type":"object","required":["limit","allowed_range"],"title":"LimitOutOfRangeDetail"},"LongTextTypeInfo":{"properties":{"value_type":{"type":"string","const":"long_text","title":"Value Type","default":"long_text"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"LongTextTypeInfo"},"LongTextValue":{"properties":{"value_type":{"type":"string","const":"long_text","title":"Value Type","default":"long_text"},"value":{"type":"string","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"LongTextValue"},"ManualActivityCategoryWire":{"type":"string","enum":["LINKEDIN","TEXT","SOCIAL_MEDIA","EVENT","CONFERENCE","WEBINAR","CALL","OTHER"],"title":"ManualActivityCategoryWire","description":"Category of a logged activity."},"ManualActivityTypeWire":{"type":"string","enum":["OTHERS","CALL","MEETING","EMAIL"],"title":"ManualActivityTypeWire","description":"Type of activity to log: a call, meeting, email, or other interaction."},"ManualCallDirectionWire":{"type":"string","enum":["INBOUND","OUTBOUND"],"title":"ManualCallDirectionWire","description":"Direction of a logged call."},"ManualMeetingTypeWire":{"type":"string","enum":["IN_PERSON","ONLINE_VIRTUAL","EVENT","OTHER"],"title":"ManualMeetingTypeWire","description":"Format of a logged meeting."},"ManualParticipantCreate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id","description":"A contact of the caller's organization that is not archived."},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id","description":"A user of the caller's organization. A meeting participant with is_organizer set may name only the API key's user."},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id","description":"An account of the caller's organization that is not archived."},"is_organizer":{"type":"boolean","title":"Is Organizer","default":false}},"additionalProperties":false,"type":"object","title":"ManualParticipantCreate","description":"A participant on a logged call or meeting."},"MatchType":{"type":"string","enum":["fuzzy","exact"],"title":"MatchType"},"MatchingFieldDetail":{"properties":{"code":{"type":"string","const":"invalid_matching_field","title":"Code","default":"invalid_matching_field"},"record_type":{"type":"string","title":"Record Type"},"field":{"type":"string","title":"Field"},"field_api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Api Name"},"match_field_api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Field Api Name"},"reason":{"anyOf":[{"type":"string","enum":["not_found","not_unique","too_deep","invalid"]},{"type":"null"}],"title":"Reason"},"received_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Received Type"},"parent_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Field"},"max_hops":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Hops"},"allowed_match_fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Match Fields"}},"additionalProperties":false,"type":"object","required":["record_type","field"],"title":"MatchingFieldDetail"},"MeetingActivityMetadata":{"properties":{"kind":{"type":"string","const":"meeting","title":"Kind","default":"meeting"},"title":{"type":"string","title":"Title"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"meeting_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Type"},"participants":{"items":{"$ref":"#/components/schemas/ActivityMeetingParticipant"},"type":"array","title":"Participants"}},"additionalProperties":false,"type":"object","required":["title"],"title":"MeetingActivityMetadata"},"MeetingListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MeetingObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"MeetingListResponse","description":"Wrapper around a paginated list of ``MeetingObjectRecord`` — query."},"MeetingMetadataCreate":{"properties":{"starts_at":{"type":"string","format":"date-time","title":"Starts At","description":"An ISO 8601 date-time with a UTC offset, on or after 1900-01-01T00:00:00Z and before 2100-01-01T00:00:00Z. A number, or a string that is only a number, is refused."},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At","description":"Not before starts_at. An ISO 8601 date-time with a UTC offset, on or after 1900-01-01T00:00:00Z and before 2100-01-01T00:00:00Z. A number, or a string that is only a number, is refused."},"title":{"type":"string","minLength":1,"title":"Title","description":"Must not be blank; leading and trailing whitespace is removed."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"participants":{"items":{"$ref":"#/components/schemas/ManualParticipantCreate"},"type":"array","maxItems":25,"title":"Participants","description":"An item's email can make the write create a contact, and an account for the email's domain, as the organization's activity capture settings (capture mode and blocked domains) and the contacts and accounts it already has decide. A blocked email gets no contact, though its domain can still get an account. An email at the API key user's domain or one of the organization's own domains, or a system address such as no-reply, info or admin, gets no contact. When the email of a participant, the sender of an email included, is that of a user of the organization who has turned their own activity capture off, the write creates no contact or account. A write that would create a contact needs the key's contacts:write, and one that would create an account needs accounts:write. A key missing a scope the write needs gets 403 insufficient_scope naming the missing scopes, and nothing is written."},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"meeting_type":{"anyOf":[{"$ref":"#/components/schemas/ManualMeetingTypeWire"},{"type":"null"}]},"transcript":{"anyOf":[{"items":{"$ref":"#/components/schemas/TranscriptSegmentCreate"},"type":"array","maxItems":10000,"minItems":1},{"type":"null"}],"title":"Transcript","description":"The meeting's transcript, one item per line in spoken order. The meeting shows it as a recorded meeting's transcript and is then analyzed from it in the background (summary, insights and CRM field suggestions), which spends the organization's AI credits."}},"additionalProperties":false,"type":"object","required":["starts_at","title"],"title":"MeetingMetadataCreate"},"MeetingObjectAttributes":{"properties":{"id":{"$ref":"#/components/schemas/UuidValue"},"organization_id":{"$ref":"#/components/schemas/UuidValue"},"title":{"$ref":"#/components/schemas/StringValue"},"description":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"location":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"agenda":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"key_talking_points":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"starts_at":{"$ref":"#/components/schemas/TimestampValue"},"ends_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"started_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"ended_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"duration_seconds":{"$ref":"#/components/schemas/NumberValue-Output"},"meeting_created_at":{"$ref":"#/components/schemas/TimestampValue"},"meeting_status":{"$ref":"#/components/schemas/EnumValue"},"meeting_type":{"$ref":"#/components/schemas/EnumValue"},"meeting_platform":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"null"}]},"call_direction":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"null"}]},"confirmation_state":{"$ref":"#/components/schemas/EnumValue"},"is_sales_meeting":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"null"}]},"is_external_meeting":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"null"}]},"is_private":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"null"}]},"is_recorded":{"$ref":"#/components/schemas/BooleanValue"},"is_no_show":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"null"}]},"is_rescheduled":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"null"}]},"has_active_bot":{"$ref":"#/components/schemas/BooleanValue"},"is_bot_enabled":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"null"}]},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"owner_team_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"organizer_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"organizer_contact_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"created_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/UuidValue"},{"type":"null"}]},"rescheduled_from_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"meeting_url":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"manual_meeting_type":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"null"}]},"origin_platform":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"null"}]},"consent_declined_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"meeting_bot_removed_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"meeting_bot_status":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"null"}]},"processing_status":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"null"}]},"meeting_participants":{"items":{"$ref":"#/components/schemas/MeetingParticipantValue"},"type":"array","title":"Meeting Participants"}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["id","organization_id","title","starts_at","duration_seconds","meeting_created_at","meeting_status","meeting_type","confirmation_state","is_recorded","has_active_bot","meeting_participants"],"title":"MeetingObjectAttributes"},"MeetingObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"meeting","title":"Record Type","default":"meeting"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/MeetingObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"MeetingObjectRecord"},"MeetingParticipantRead":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"rsvp_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rsvp Status"},"is_host":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Host"}},"additionalProperties":false,"type":"object","title":"MeetingParticipantRead","description":"Read payload for a meeting participant value.\n\nA meeting participant in one of the meeting record's role arrays\n(invitees / attendees / organizers). ``name`` / ``email`` / ``rsvp_status`` /\n``is_host`` are joined from the calendar participant by user_id / contact_id\nand are all ``None`` when the role member has no matching calendar\nparticipant — a role member known only by its reference UUID (the role lists\non ``MeetingV2`` carry no name/email). ``is_host`` flags the organizer. The\nunderlying user / contact identity is exposed via the meeting's relationship\nendpoints (invitees / attendees / organizers), not duplicated here.\n\n``MeetingParticipantV2.platform`` is intentionally not surfaced — core always\nconstructs it as ``None``, so there is nothing to expose."},"MeetingParticipantTypeInfo":{"properties":{"value_type":{"type":"string","const":"meeting_participant","title":"Value Type","default":"meeting_participant"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"}},"type":"object","required":["is_array"],"title":"MeetingParticipantTypeInfo"},"MeetingParticipantValue":{"properties":{"value_type":{"type":"string","const":"meeting_participant","title":"Value Type","default":"meeting_participant"},"value":{"$ref":"#/components/schemas/MeetingParticipantRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"MeetingParticipantValue"},"MeetingRecordingPayload":{"properties":{"url":{"type":"string","title":"Url","description":"Short-lived pre-signed S3 URL to the meeting recording media. Download directly from this URL; it stops working after `expires_at`, after which a fresh request is required."},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"UTC instant after which `url` is no longer valid."}},"additionalProperties":false,"type":"object","required":["url","expires_at"],"title":"MeetingRecordingPayload"},"MeetingRecordingResponse":{"properties":{"data":{"$ref":"#/components/schemas/MeetingRecordingPayload"}},"additionalProperties":false,"type":"object","required":["data"],"title":"MeetingRecordingResponse"},"MeetingSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/MeetingObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"MeetingSingleResponse","description":"Wrapper around a single ``MeetingObjectRecord`` — GET."},"MeetingTranscriptPayload":{"properties":{"url":{"type":"string","title":"Url","description":"Short-lived pre-signed S3 URL to the meeting transcript file. Download directly from this URL; it stops working after `expires_at`, after which a fresh request is required."},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"UTC instant after which `url` is no longer valid."},"format":{"type":"string","const":"json","title":"Format","description":"Serialization format of the transcript file."}},"additionalProperties":false,"type":"object","required":["url","expires_at","format"],"title":"MeetingTranscriptPayload"},"MeetingTranscriptResponse":{"properties":{"data":{"$ref":"#/components/schemas/MeetingTranscriptPayload"}},"additionalProperties":false,"type":"object","required":["data"],"title":"MeetingTranscriptResponse"},"MissingMatchKeyDetail":{"properties":{"code":{"type":"string","const":"missing_match_key","title":"Code","default":"missing_match_key"}},"additionalProperties":false,"type":"object","title":"MissingMatchKeyDetail"},"NoteCreateRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/NoteCreateRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"NoteCreateRequest"},"NoteCreateRequestAttributes":{"properties":{"note_html":{"anyOf":[{"$ref":"#/components/schemas/RichTextValue"},{"type":"string"}],"title":"Note Html"},"title":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Title"},"is_private":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"boolean"},{"type":"null"}],"title":"Is Private"},"created_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Created At","description":"When the note was written. Defaults to now when omitted or null. An ISO 8601 date-time with a UTC offset, on or after 1900-01-01T00:00:00Z and before 2100-01-01T00:00:00Z. A number, or a string that is only a number, is refused. Sets the note and its timeline activity date. Cannot be changed by PATCH."},"contact_ids":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecordReferenceWrite"},"type":"array"},{"type":"null"}],"title":"Contact Ids"},"account_ids":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecordReferenceWrite"},"type":"array"},{"type":"null"}],"title":"Account Ids"},"opportunity_ids":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecordReferenceWrite"},"type":"array"},{"type":"null"}],"title":"Opportunity Ids"},"meeting_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["note_html"],"title":"NoteCreateRequestAttributes","description":"Full create surface including inline relationship link fields.\n\nExtends ``NoteCreateSchemaAttributes`` with the write-only link fields\naccepted by the ``POST /note`` endpoint but not reflected in the response\nschema (links surface via the relationship sub-resource endpoints)."},"NoteListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/NoteObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"NoteListResponse","description":"Wrapper around a paginated list of ``NoteObjectRecord`` — query."},"NoteObjectAttributes":{"properties":{"id":{"$ref":"#/components/schemas/UuidValue"},"organization_id":{"$ref":"#/components/schemas/UuidValue"},"note_html":{"$ref":"#/components/schemas/RichTextValue"},"title":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"owner_user_id":{"$ref":"#/components/schemas/RecordReferenceValue"},"owner_team_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"is_private":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/TimestampValue"},"updated_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"deleted_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"created_by_user_id":{"$ref":"#/components/schemas/UuidValue"},"updated_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/UuidValue"},{"type":"null"}]},"deleted_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/UuidValue"},{"type":"null"}]},"participant_user_id_list":{"items":{"$ref":"#/components/schemas/RecordReferenceValue"},"type":"array","title":"Participant User Id List"}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["id","organization_id","note_html","owner_user_id","created_at","created_by_user_id"],"title":"NoteObjectAttributes"},"NoteObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"note","title":"Record Type","default":"note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/NoteObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"NoteObjectRecord"},"NotePatchRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/NotePatchRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"NotePatchRequest"},"NotePatchRequestAttributes":{"properties":{"note_html":{"anyOf":[{"$ref":"#/components/schemas/RichTextValue"},{"type":"string"},{"type":"null"}],"title":"Note Html"},"title":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Title"},"is_private":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"boolean"},{"type":"null"}],"title":"Is Private"},"contact_ids":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecordReferenceWrite"},"type":"array"},{"type":"null"}],"title":"Contact Ids"},"account_ids":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecordReferenceWrite"},"type":"array"},{"type":"null"}],"title":"Account Ids"},"opportunity_ids":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecordReferenceWrite"},"type":"array"},{"type":"null"}],"title":"Opportunity Ids"},"meeting_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"NotePatchRequestAttributes","description":"Full patch surface including inline relationship link fields.\n\nA provided association field REPLACES the note's entire set for that\nrelationship (``[]`` or null clears it); an omitted field is left unchanged."},"NoteSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/NoteObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"NoteSingleResponse","description":"Wrapper around a single ``NoteObjectRecord`` — GET / POST / PATCH."},"NumberTypeInfo":{"properties":{"value_type":{"type":"string","const":"number","title":"Value Type","default":"number"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"NumberTypeInfo"},"NumberValue-Input":{"properties":{"value_type":{"type":"string","const":"number","title":"Value Type","default":"number"},"value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"NumberValue"},"NumberValue-Output":{"properties":{"value_type":{"type":"string","const":"number","title":"Value Type","default":"number"},"value":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"NumberValue"},"ObjectSchema":{"properties":{"api_name":{"type":"string","title":"Api Name"},"display_name":{"type":"string","title":"Display Name"},"is_custom":{"type":"boolean","title":"Is Custom"},"is_junction":{"type":"boolean","title":"Is Junction"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"singular_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Singular Label"},"plural_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plural Label"},"article":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Article"},"supports_custom_fields":{"type":"boolean","title":"Supports Custom Fields"},"attributes":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Attributes"},"relationships":{"items":{"$ref":"#/components/schemas/RelationshipSchema"},"type":"array","title":"Relationships"}},"type":"object","required":["api_name","display_name","is_custom","is_junction","supports_custom_fields","attributes","relationships"],"title":"ObjectSchema","description":"Top-level public schema descriptor for one record_type.\n\n``record_type`` is the **public** name (after the cross-record-type\nrename, e.g. internal ``pipeline`` -> public ``opportunity``).\n``object_id`` is set only for custom objects -- standard record_types\nleave it ``None``."},"OpportunityCreateRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/OpportunityCreateRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"OpportunityCreateRequest"},"OpportunityCreateRequestAttributes":{"properties":{"display_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"}],"title":"Display Name"},"next_step_details":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"string"},{"type":"null"}],"title":"Next Step Details"},"amount":{"anyOf":[{"$ref":"#/components/schemas/CurrencyWriteShape"},{"type":"null"}]},"anticipated_closing_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Anticipated Closing At","description":"Forecasted close date for the opportunity."},"stage":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"}],"title":"Stage"},"account_id":{"$ref":"#/components/schemas/RecordReferenceWrite"},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]}},"additionalProperties":{"$ref":"#/components/schemas/CustomFieldAttributeRequestValue"},"type":"object","required":["display_name","stage","account_id"],"title":"OpportunityCreateRequestAttributes","description":"Create standard-field surface.\n\n``owner_user_id`` is excluded from required-on-create and defaults to the\nAPI-key caller in the adapter."},"OpportunityFieldHistoryResponse":{"properties":{"parent":{"$ref":"#/components/schemas/ParentRef"},"api_name":{"type":"string","title":"Api Name"},"items":{"items":{"$ref":"#/components/schemas/FieldHistoryItem_OpportunityStageValue_"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["parent","api_name","items","next_cursor"],"title":"OpportunityFieldHistoryResponse"},"OpportunityListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/OpportunityObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"OpportunityListResponse","description":"Wrapper around a paginated list of ``OpportunityObjectRecord`` — query."},"OpportunityObjectAttributes":{"properties":{"id":{"$ref":"#/components/schemas/UuidValue"},"organization_id":{"$ref":"#/components/schemas/UuidValue"},"created_at":{"$ref":"#/components/schemas/TimestampValue"},"updated_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"display_name":{"$ref":"#/components/schemas/StringValue"},"next_step_details":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"null"}]},"next_step_due_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"next_meeting_date":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"target_go_live_date":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"amount":{"anyOf":[{"$ref":"#/components/schemas/CurrencyValue-Output"},{"type":"null"}]},"forecast_weighted_amount":{"anyOf":[{"$ref":"#/components/schemas/CurrencyValue-Output"},{"type":"null"}]},"anticipated_closing_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"closed_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"archived_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"expires_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_activity_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_voice_call":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_meeting":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_global_thread":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_engaged_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outreached_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_inbound_meeting_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_inbound_voice_call_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_inbound_global_thread_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outbound_meeting_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outbound_voice_call_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"last_outbound_global_thread_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"stage_last_shifted_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"stage":{"$ref":"#/components/schemas/OpportunityStageValue"},"owner_user_id":{"$ref":"#/components/schemas/RecordReferenceValue"},"owner_team_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"account_id":{"$ref":"#/components/schemas/RecordReferenceValue"},"closed_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"primary_contact_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"participant_user_id_list":{"items":{"$ref":"#/components/schemas/RecordReferenceValue"},"type":"array","title":"Participant User Id List"},"created_by_user_id":{"$ref":"#/components/schemas/RecordReferenceValue"},"updated_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"closed_lost_custom_detail":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"null"}]},"closed_won_custom_detail":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"null"}]},"primary_closed_won_reason":{"anyOf":[{"$ref":"#/components/schemas/SelectValue"},{"type":"null"}],"description":"Hydrated select value for the primary closed-won reason; supply on PATCH when moving to a closed-won outcome."},"additional_closed_won_reasons":{"anyOf":[{"items":{"$ref":"#/components/schemas/SelectValue"},"type":"array"},{"type":"null"}],"title":"Additional Closed Won Reasons","description":"Hydrated select values for additional closed-won reasons; supply on PATCH when moving to a closed-won outcome."},"primary_closed_lost_reason":{"anyOf":[{"$ref":"#/components/schemas/SelectValue"},{"type":"null"}],"description":"Hydrated select value for the primary closed-lost reason; supply on PATCH when moving to a closed-lost outcome."},"additional_closed_lost_reasons":{"anyOf":[{"items":{"$ref":"#/components/schemas/SelectValue"},"type":"array"},{"type":"null"}],"title":"Additional Closed Lost Reasons","description":"Hydrated select values for additional closed-lost reasons; supply on PATCH when moving to a closed-lost outcome."},"ai_primary_closed_lost_reason":{"anyOf":[{"$ref":"#/components/schemas/SelectValue"},{"type":"null"}],"description":"Hydrated select value for the AI-generated primary closed-lost reason. Read-only; written by the closed-lost agent, not by API callers."},"ai_additional_closed_lost_reasons":{"anyOf":[{"items":{"$ref":"#/components/schemas/SelectValue"},"type":"array"},{"type":"null"}],"title":"Ai Additional Closed Lost Reasons","description":"Hydrated select values for up to three AI-identified reasons that also contributed to the loss. Read-only; written by the closed-lost agent, not by API callers."},"ai_closed_lost_reason_confidence":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"null"}],"description":"Confidence (LOW / HIGH) of the AI-generated closed-lost reason. Read-only; written by the closed-lost agent, not by API callers."},"ai_primary_closed_lost_reason_dispute":{"anyOf":[{"$ref":"#/components/schemas/SelectValue"},{"type":"null"}],"description":"Hydrated select value for the primary closed-lost reason an admin picked when disputing the AI-generated one, from the same AI closed-lost reason list. Read-only here; admins set it in the Reevo app."},"ai_primary_closed_lost_reason_dispute_note":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"null"}],"description":"An admin's note on why they disputed the AI-generated primary closed-lost reason. Read-only here; admins set it in the Reevo app."},"primary_competitor":{"anyOf":[{"$ref":"#/components/schemas/SelectValue"},{"type":"null"}],"description":"Hydrated select value returned for the primary competitor."},"competitors_mentioned":{"anyOf":[{"items":{"$ref":"#/components/schemas/SelectValue"},"type":"array"},{"type":"null"}],"title":"Competitors Mentioned","description":"Hydrated select values returned for mentioned competitors."},"competitors_mentioned_other":{"anyOf":[{"items":{"$ref":"#/components/schemas/StringValue"},"type":"array"},{"type":"null"}],"title":"Competitors Mentioned Other"},"primary_competitor_other":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"type":{"anyOf":[{"$ref":"#/components/schemas/SelectValue"},{"type":"null"}]}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["id","organization_id","created_at","display_name","stage","owner_user_id","account_id","participant_user_id_list","created_by_user_id"],"title":"OpportunityObjectAttributes"},"OpportunityObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"opportunity","title":"Record Type","default":"opportunity"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/OpportunityObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"OpportunityObjectRecord"},"OpportunityPatchRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/OpportunityPatchRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"OpportunityPatchRequest","description":"PATCH /api/v2/opportunity/{id} request envelope.\n\n``attributes`` is required (inherited from ``BaseRequest``); an\n``attributes`` block present but carrying zero set fields (``{}``) is\nrejected here with a ``422`` — a PATCH must name at least one field."},"OpportunityPatchRequestAttributes":{"properties":{"display_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Display Name"},"next_step_details":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"string"},{"type":"null"}],"title":"Next Step Details"},"amount":{"anyOf":[{"$ref":"#/components/schemas/CurrencyWriteShape"},{"type":"null"}]},"anticipated_closing_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Anticipated Closing At","description":"Forecasted close date for the opportunity."},"stage":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"},{"type":"null"}],"title":"Stage"},"primary_closed_won_reason":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"},{"type":"null"}],"title":"Primary Closed Won Reason"},"additional_closed_won_reasons":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"}]},"type":"array"},{"type":"null"}],"title":"Additional Closed Won Reasons"},"primary_closed_lost_reason":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"},{"type":"null"}],"title":"Primary Closed Lost Reason"},"additional_closed_lost_reasons":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/SelectValueWrite"},{"type":"string"}]},"type":"array"},{"type":"null"}],"title":"Additional Closed Lost Reasons"},"closed_won_custom_detail":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"string"},{"type":"null"}],"title":"Closed Won Custom Detail"},"closed_lost_custom_detail":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"string"},{"type":"null"}],"title":"Closed Lost Custom Detail"},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]}},"additionalProperties":{"$ref":"#/components/schemas/CustomFieldAttributeRequestValue"},"type":"object","title":"OpportunityPatchRequestAttributes","description":"All standard fields optional on patch.\n\n``stage`` changes update lifecycle fields: moving to a terminal stage sets\n``closed_at`` and ``closed_by_user_id``; moving back to an open stage clears\nthem. ``stage_last_shifted_at`` advances on every effective stage change.\nTerminal-stage moves can include the matching closed-reason fields.\n``account_id`` is NOT on the patch surface — an opportunity's parent account\nis immutable post-create."},"OpportunitySingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/OpportunityObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"OpportunitySingleResponse","description":"Wrapper around a single ``OpportunityObjectRecord`` — GET / POST / PATCH."},"OpportunityStageOption":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"api_name":{"type":"string","title":"Api Name"},"opportunity_stage_select_list_id":{"type":"string","title":"Opportunity Stage Select List Id"},"display_name":{"type":"string","title":"Display Name"},"closing_probability":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Closing Probability"},"outcome_state":{"type":"string","enum":["Open","Closed won","Closed lost"],"title":"Outcome State"},"expected_days_in_stage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Days In Stage"},"index":{"type":"integer","title":"Index"}},"type":"object","required":["id","api_name","opportunity_stage_select_list_id","display_name","outcome_state","index"],"title":"OpportunityStageOption"},"OpportunityStageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"select_list_id":{"type":"string","format":"uuid","title":"Select List Id"},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name"},"display_name":{"type":"string","title":"Display Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"closing_probability":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Closing Probability"},"outcome_state":{"anyOf":[{"type":"string","enum":["OPEN","CLOSED_WON","CLOSED_LOST"]},{"type":"null"}],"title":"Outcome State"},"expected_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Days"}},"additionalProperties":false,"type":"object","required":["id","select_list_id","display_name"],"title":"OpportunityStageRead","description":"Read payload for the `stage` value type (pipeline stage)."},"OpportunityStageSelectList":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"stages":{"items":{"$ref":"#/components/schemas/OpportunityStageOption"},"type":"array","title":"Stages"},"closed_won_reasons":{"anyOf":[{"$ref":"#/components/schemas/SelectList"},{"type":"null"}]},"closed_lost_reasons":{"anyOf":[{"$ref":"#/components/schemas/SelectList"},{"type":"null"}]}},"type":"object","required":["id","display_name","stages"],"title":"OpportunityStageSelectList"},"OpportunityStageTypeInfo":{"properties":{"value_type":{"type":"string","const":"opportunity_stage","title":"Value Type","default":"opportunity_stage"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"},"default_opportunity_stage_select_list":{"$ref":"#/components/schemas/OpportunityStageSelectList"},"other_opportunity_stage_select_lists":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpportunityStageSelectList"},"type":"array"},{"type":"null"}],"title":"Other Opportunity Stage Select Lists"}},"type":"object","required":["is_array","default_opportunity_stage_select_list"],"title":"OpportunityStageTypeInfo"},"OpportunityStageValue":{"properties":{"value_type":{"type":"string","const":"opportunity_stage","title":"Value Type","default":"opportunity_stage"},"value":{"$ref":"#/components/schemas/OpportunityStageRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"OpportunityStageValue"},"OthersMetadataCreate":{"properties":{"activity_time":{"type":"string","format":"date-time","title":"Activity Time","description":"An ISO 8601 date-time with a UTC offset, on or after 1900-01-01T00:00:00Z and before 2100-01-01T00:00:00Z. A number, or a string that is only a number, is refused."},"subject":{"type":"string","minLength":1,"title":"Subject","description":"Must not be blank; leading and trailing whitespace is removed."},"description":{"type":"string","title":"Description"},"category":{"$ref":"#/components/schemas/ManualActivityCategoryWire","default":"OTHER"}},"additionalProperties":false,"type":"object","required":["activity_time","subject","description"],"title":"OthersMetadataCreate"},"PaginationBlock":{"properties":{"current_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Cursor"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"prev_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prev Cursor"},"total_count":{"type":"integer","title":"Total Count"}},"additionalProperties":false,"type":"object","required":["current_cursor","next_cursor","prev_cursor","total_count"],"title":"PaginationBlock","description":"Pagination metadata block.\n\nThe three cursor fields are emitted as JSON ``null`` when absent.\n``total_count`` is always present: the number of records matching the\nquery when the store reports one, else the number of records on this page."},"ParentRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","title":"Record Type"}},"additionalProperties":false,"type":"object","required":["id","record_type"],"title":"ParentRef","description":"Reference back to the parent record on a sub-resource response."},"PatchAccountContactRelationshipBody":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"is_primary":{"type":"boolean","title":"Is Primary"}},"additionalProperties":false,"type":"object","title":"UnsetTypeAware","description":"PATCH body for ``/relationship/contacts/{contact_id}`` — attributes only.\n\nEach field distinguishes absent (``UNSET`` → untouched) from explicit\n``null`` (clears) from a value (sets)."},"PatchContactAccountRelationshipBody":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"is_primary":{"type":"boolean","title":"Is Primary"}},"additionalProperties":false,"type":"object","title":"UnsetTypeAware","description":"PATCH body for ``/relationship/accounts/{target_id}`` — attributes only.\n\nEach field distinguishes absent (``UNSET`` → untouched) from explicit\n``null`` (clears) from a value (sets)."},"PatchContactOpportunityRelationshipBody":{"properties":{"is_primary":{"type":"boolean","title":"Is Primary"}},"additionalProperties":false,"type":"object","title":"UnsetTypeAware","description":"PATCH body for ``/relationship/opportunities/{target_id}`` — is_primary only.\n\n``is_primary`` distinguishes absent (``UNSET`` → untouched) from a value."},"PatchOpportunityContactRelationshipBody":{"properties":{"is_primary":{"type":"boolean","title":"Is Primary"}},"additionalProperties":false,"type":"object","title":"UnsetTypeAware","description":"PATCH body for ``/relationship/contacts/{contact_id}`` — is_primary only.\n\n``is_primary`` distinguishes absent (``UNSET`` → untouched) from a value."},"PathTooDeepDetail":{"properties":{"code":{"type":"string","const":"path_too_deep","title":"Code","default":"path_too_deep"},"field":{"type":"string","title":"Field"},"max_hops":{"type":"integer","title":"Max Hops"}},"additionalProperties":false,"type":"object","required":["field","max_hops"],"title":"PathTooDeepDetail"},"PayloadTooLargeDetail":{"properties":{"code":{"type":"string","const":"payload_too_large","title":"Code","default":"payload_too_large"},"max_bytes":{"type":"integer","title":"Max Bytes"}},"additionalProperties":false,"type":"object","required":["max_bytes"],"title":"PayloadTooLargeDetail"},"PercentTypeInfo":{"properties":{"value_type":{"type":"string","const":"percent","title":"Value Type","default":"percent"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"PercentTypeInfo"},"PercentValue-Input":{"properties":{"value_type":{"type":"string","const":"percent","title":"Value Type","default":"percent"},"value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"PercentValue"},"PercentValue-Output":{"properties":{"value_type":{"type":"string","const":"percent","title":"Value Type","default":"percent"},"value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"PercentValue"},"PhoneNumberTypeInfo":{"properties":{"value_type":{"type":"string","const":"phone_number","title":"Value Type","default":"phone_number"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"PhoneNumberTypeInfo"},"PhoneNumberValue":{"properties":{"value_type":{"type":"string","const":"phone_number","title":"Value Type","default":"phone_number"},"value":{"type":"string","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"PhoneNumberValue"},"PublicAPIErrorBody":{"properties":{"status_code":{"type":"integer","title":"Status Code","description":"HTTP status code mirrored in the body"},"error_type":{"type":"string","title":"Error Type","description":"Broad classification (PublicErrorType)"},"code":{"$ref":"#/components/schemas/PublicErrorCode","description":"Specific machine-readable code"},"message":{"type":"string","title":"Message","description":"Human-readable summary"},"details":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/RequestValidationDetail"},{"$ref":"#/components/schemas/UnknownFieldDetail"},{"$ref":"#/components/schemas/FieldRequiredMissingDetail"},{"$ref":"#/components/schemas/FieldValueInvalidDetail"},{"$ref":"#/components/schemas/FieldNotWritableDetail"},{"$ref":"#/components/schemas/FieldNotCreatableDetail"},{"$ref":"#/components/schemas/FieldNotUpdatableDetail"},{"$ref":"#/components/schemas/CannotRemoveLastPrimaryDetail"},{"$ref":"#/components/schemas/SubResourceDetail"},{"$ref":"#/components/schemas/InvalidFilterFieldDetail"},{"$ref":"#/components/schemas/InvalidFilterOperatorDetail"},{"$ref":"#/components/schemas/InvalidFilterValueDetail"},{"$ref":"#/components/schemas/FilterDepthExceededDetail"},{"$ref":"#/components/schemas/PathTooDeepDetail"},{"$ref":"#/components/schemas/SortTooManyFieldsDetail"},{"$ref":"#/components/schemas/UnsortableFieldDetail"},{"$ref":"#/components/schemas/LimitOutOfRangeDetail"},{"$ref":"#/components/schemas/InvalidCursorDetail"},{"$ref":"#/components/schemas/InvalidTargetIdentifierDetail"},{"$ref":"#/components/schemas/MatchingFieldDetail"},{"$ref":"#/components/schemas/MissingMatchKeyDetail"},{"$ref":"#/components/schemas/DescriptorReservedDetail"},{"$ref":"#/components/schemas/StageIdDetail"},{"$ref":"#/components/schemas/StageTransitionDetail"},{"$ref":"#/components/schemas/RecordNotFoundDetail"},{"$ref":"#/components/schemas/TargetRecordNotFoundDetail"},{"$ref":"#/components/schemas/UnknownRecordTypeDetail"},{"$ref":"#/components/schemas/UnknownAttributeDetail"},{"$ref":"#/components/schemas/AmbiguousMatchDetail"},{"$ref":"#/components/schemas/ConcurrentUpsertConflictDetail"},{"$ref":"#/components/schemas/ConflictDetail"},{"$ref":"#/components/schemas/DuplicateRecordDetail"},{"$ref":"#/components/schemas/WriteNotSupportedDetail"},{"$ref":"#/components/schemas/InvalidApiKeyDetail"},{"$ref":"#/components/schemas/PayloadTooLargeDetail"},{"$ref":"#/components/schemas/UnsupportedMediaTypeDetail"},{"$ref":"#/components/schemas/RateLimitDetail"},{"$ref":"#/components/schemas/QuotaExceededDetail"},{"$ref":"#/components/schemas/RestrictionActiveDetail"}],"discriminator":{"propertyName":"code","mapping":{"ambiguous_match":"#/components/schemas/AmbiguousMatchDetail","cannot_remove_last_primary":"#/components/schemas/CannotRemoveLastPrimaryDetail","concurrent_upsert_conflict":"#/components/schemas/ConcurrentUpsertConflictDetail","conflict":"#/components/schemas/ConflictDetail","descriptor_naming_reserved":"#/components/schemas/DescriptorReservedDetail","duplicate_record":"#/components/schemas/DuplicateRecordDetail","field_not_creatable":"#/components/schemas/FieldNotCreatableDetail","field_not_updatable":"#/components/schemas/FieldNotUpdatableDetail","field_not_writable":"#/components/schemas/FieldNotWritableDetail","field_required_missing":"#/components/schemas/FieldRequiredMissingDetail","field_value_invalid":"#/components/schemas/FieldValueInvalidDetail","filter_depth_exceeded":"#/components/schemas/FilterDepthExceededDetail","invalid_api_key":"#/components/schemas/InvalidApiKeyDetail","invalid_cursor":"#/components/schemas/InvalidCursorDetail","invalid_filter_field":"#/components/schemas/InvalidFilterFieldDetail","invalid_filter_operator":"#/components/schemas/InvalidFilterOperatorDetail","invalid_filter_value":"#/components/schemas/InvalidFilterValueDetail","invalid_matching_field":"#/components/schemas/MatchingFieldDetail","invalid_target_identifier":"#/components/schemas/InvalidTargetIdentifierDetail","limit_out_of_range":"#/components/schemas/LimitOutOfRangeDetail","missing_match_key":"#/components/schemas/MissingMatchKeyDetail","path_too_deep":"#/components/schemas/PathTooDeepDetail","payload_too_large":"#/components/schemas/PayloadTooLargeDetail","quota_exceeded":"#/components/schemas/QuotaExceededDetail","rate_limit_exceeded":"#/components/schemas/RateLimitDetail","record_not_found":"#/components/schemas/RecordNotFoundDetail","request_validation_failed":"#/components/schemas/RequestValidationDetail","restriction_active":"#/components/schemas/RestrictionActiveDetail","sort_too_many_fields":"#/components/schemas/SortTooManyFieldsDetail","stage_entrance_criteria_not_met":"#/components/schemas/StageIdDetail","stage_transition_not_allowed":"#/components/schemas/StageTransitionDetail","sub_resource_not_supported":"#/components/schemas/SubResourceDetail","target_record_not_found":"#/components/schemas/TargetRecordNotFoundDetail","unknown_attribute":"#/components/schemas/UnknownAttributeDetail","unknown_field":"#/components/schemas/UnknownFieldDetail","unknown_record_type":"#/components/schemas/UnknownRecordTypeDetail","unsortable_field":"#/components/schemas/UnsortableFieldDetail","unsupported_media_type":"#/components/schemas/UnsupportedMediaTypeDetail","write_not_supported":"#/components/schemas/WriteNotSupportedDetail"}}},{"type":"null"}],"title":"Details","description":"Optional structured context (varies by code)"}},"type":"object","required":["status_code","error_type","code","message"],"title":"PublicAPIErrorBody","description":"Wire envelope for every public-API error response.\n\nThe four scalar fields (`status_code`, `error_type`, `code`, `message`)\nare always present. `details` carries optional structured context that\ncallers can branch on programmatically (e.g., the offending field name\nfor an `unknown_field` error)."},"PublicAccountCreateRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/AccountCreateRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"PublicAccountCreateRequest"},"PublicAccountDomainStatus":{"type":"string","enum":["active","historical"],"title":"PublicAccountDomainStatus","description":"Public wire counterpart of the internal ``AccountDomainStatus``.\n\nMembers mirror the internal ``AccountDomainStatus`` 1:1 (same value set):\nan account-domain link is ``active`` while it represents the account, or\n``historical`` once it has been superseded."},"PublicChannelLabel":{"type":"string","enum":["PERSONAL","WORK","MOBILE"],"title":"PublicChannelLabel","description":"Public wire counterpart of the internal ``ContactChannelLabel``.\n\nMembers mirror ``ContactChannelLabel`` 1:1 (same value set). A unit test\n(``test_contact_public_adapter.py``) asserts the two member-value sets stay\nidentical so divergence fails CI. Typing the request/response ``labels``\nfields as this enum lets Pydantic reject unknown labels at the boundary\ninstead of the adapter raising on an invalid string."},"PublicDuplicateCheck":{"properties":{"status":{"$ref":"#/components/schemas/DuplicateCheckStatus"},"matches":{"items":{"$ref":"#/components/schemas/PublicDuplicateMatch"},"type":"array","title":"Matches"},"redacted_count":{"type":"integer","title":"Redacted Count","default":0},"redacted_owners":{"items":{"$ref":"#/components/schemas/PublicDuplicateOwner"},"type":"array","title":"Redacted Owners"},"verification_ran":{"type":"boolean","title":"Verification Ran","default":false}},"additionalProperties":false,"type":"object","required":["status"],"title":"PublicDuplicateCheck","description":"Public duplicate warning projection shared by create responses."},"PublicDuplicateFieldMatch":{"properties":{"field":{"type":"string","title":"Field"},"candidate_value":{"type":"string","title":"Candidate Value"},"match_value":{"type":"string","title":"Match Value"},"match_type":{"$ref":"#/components/schemas/MatchType"}},"additionalProperties":false,"type":"object","required":["field","candidate_value","match_value","match_type"],"title":"PublicDuplicateFieldMatch"},"PublicDuplicateMatch":{"properties":{"record_id":{"type":"string","format":"uuid","title":"Record Id"},"display_name":{"type":"string","title":"Display Name"},"confidence":{"type":"number","title":"Confidence"},"matched_fields":{"items":{"$ref":"#/components/schemas/PublicDuplicateFieldMatch"},"type":"array","title":"Matched Fields"}},"additionalProperties":false,"type":"object","required":["record_id","display_name","confidence"],"title":"PublicDuplicateMatch"},"PublicDuplicateOwner":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"additionalProperties":false,"type":"object","required":["user_id","name"],"title":"PublicDuplicateOwner"},"PublicErrorCode":{"type":"string","enum":["validation_error","request_validation_failed","unknown_field","field_required_missing","field_value_invalid","field_not_writable","field_not_creatable","field_not_updatable","cannot_remove_last_primary","relationship_loop_rejected","sub_resource_not_supported","invalid_filter_field","invalid_filter_operator","invalid_filter_value","filter_depth_exceeded","path_too_deep","sort_too_many_fields","unsortable_field","limit_out_of_range","invalid_cursor","filters_not_supported_on_get","invalid_target_identifier","invalid_matching_field","missing_match_key","descriptor_naming_reserved","unprocessable","record_not_writable","stage_entrance_criteria_not_met","not_found","record_not_found","target_record_not_found","unknown_record_type","unknown_relationship","unknown_attribute","unknown_history_field","conflict","duplicate_record","ambiguous_match","concurrent_upsert_conflict","method_not_allowed","write_not_supported","unauthorized","missing_api_key","invalid_api_key","forbidden","insufficient_scope","stage_transition_not_allowed","not_acceptable","payload_too_large","unsupported_media_type","rate_limit_exceeded","quota_exceeded","restriction_active","payment_required","trial_ended","internal_error"],"title":"PublicErrorCode"},"PublicFilterAndSchema":{"properties":{"and":{"items":{"$ref":"#/components/schemas/PublicFilterNodeSchema"},"type":"array","title":"And"}},"additionalProperties":false,"type":"object","required":["and"],"title":"PublicFilterAndSchema","description":"Logical AND branch: ``{\"and\": [<node>, ...]}``."},"PublicFilterNodeSchema":{"anyOf":[{"$ref":"#/components/schemas/PublicFilterPredicateSchema"},{"$ref":"#/components/schemas/PublicFilterAndSchema"},{"$ref":"#/components/schemas/PublicFilterOrSchema"},{"$ref":"#/components/schemas/PublicFilterNotSchema"}]},"PublicFilterNotSchema":{"properties":{"not":{"$ref":"#/components/schemas/PublicFilterNodeSchema"}},"additionalProperties":false,"type":"object","required":["not"],"title":"PublicFilterNotSchema","description":"Logical NOT branch: ``{\"not\": <node>}``."},"PublicFilterOperator":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","between","in","not_in","exists","not_exists","contains","starts_with","ends_with","contains_any","contains_none"],"title":"PublicFilterOperator","description":"The operator vocabulary surfaced on the public filter body.\n\nWire values are lower_snake_case strings."},"PublicFilterOrSchema":{"properties":{"or":{"items":{"$ref":"#/components/schemas/PublicFilterNodeSchema"},"type":"array","title":"Or"}},"additionalProperties":false,"type":"object","required":["or"],"title":"PublicFilterOrSchema","description":"Logical OR branch: ``{\"or\": [<node>, ...]}``."},"PublicFilterPredicateSchema":{"properties":{"field":{"type":"string","title":"Field"},"operator":{"$ref":"#/components/schemas/PublicFilterOperator"},"value":{"anyOf":[{"$ref":"#/components/schemas/pydantic__types__JsonValue"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["field","operator"],"title":"PublicFilterPredicateSchema","description":"Leaf predicate ``{field, operator, value}``.\n\n``value`` carries arbitrary wire JSON whose concrete shape is\noperator/field-dependent and validated downstream by `FilterTranslator`\nagainst the organization's field descriptor."},"PublicFiscalYearLabelConvention":{"type":"string","enum":["start_year","end_year"],"title":"PublicFiscalYearLabelConvention"},"PublicMe":{"properties":{"api_key":{"$ref":"#/components/schemas/PublicMeApiKey","description":"The API key that made this request."},"user":{"$ref":"#/components/schemas/PublicMeUser","description":"The user who owns the API key."},"organization":{"$ref":"#/components/schemas/PublicMeOrganization","description":"The organization the API key belongs to."},"scopes":{"items":{"$ref":"#/components/schemas/ApiPermission"},"type":"array","title":"Scopes","description":"The permissions the API key holds, sorted ascending: its granted permissions, plus the read permission that goes with each write permission it holds, where there is one."},"request_limits":{"$ref":"#/components/schemas/PublicRequestLimits","description":"The limits on the organization's API requests and where it stands against them."}},"additionalProperties":false,"type":"object","required":["api_key","user","organization","scopes","request_limits"],"title":"PublicMe"},"PublicMeApiKey":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The API key that made this request."},"name":{"type":"string","title":"Name","description":"The name the API key was created with."}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"PublicMeApiKey"},"PublicMeOrganization":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The organization the API key belongs to."},"display_name":{"type":"string","title":"Display Name","description":"The organization's name as shown in Reevo."}},"additionalProperties":false,"type":"object","required":["id","display_name"],"title":"PublicMeOrganization"},"PublicMeUser":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The user who owns the API key; requests made with the key act as this user."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"The owner's email address. null when the owner's membership is not one the user resource serves (a placeholder user)."},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name","description":"The owner's name as shown in Reevo. null when the owner's membership is not one the user resource serves (a placeholder user), or when the owner has no name."}},"additionalProperties":false,"type":"object","required":["id","email","display_name"],"title":"PublicMeUser"},"PublicOrganization":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"timezone":{"type":"string","title":"Timezone"},"fiscal_year_start_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Fiscal Year Start Month"},"fiscal_year_label_convention":{"$ref":"#/components/schemas/PublicFiscalYearLabelConvention"}},"additionalProperties":false,"type":"object","required":["id","display_name","timezone","fiscal_year_start_month","fiscal_year_label_convention"],"title":"PublicOrganization"},"PublicOrganizationObjectSummary":{"properties":{"api_name":{"type":"string","title":"Api Name"},"display_name":{"type":"string","title":"Display Name"},"is_custom":{"type":"boolean","title":"Is Custom"},"is_junction":{"type":"boolean","title":"Is Junction"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"singular_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Singular Label"},"plural_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plural Label"},"article":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Article"},"supports_custom_fields":{"type":"boolean","title":"Supports Custom Fields"}},"type":"object","required":["api_name","display_name","is_custom","is_junction","supports_custom_fields"],"title":"PublicOrganizationObjectSummary","description":"Intentionally not a subclass of ``ObjectSchemaSummary`` so public contracts evolve independently."},"PublicOrganizationSchemaSummary":{"properties":{"objects":{"items":{"$ref":"#/components/schemas/PublicOrganizationObjectSummary"},"type":"array","title":"Objects"}},"type":"object","required":["objects"],"title":"PublicOrganizationSchemaSummary"},"PublicQueryBodySchema":{"properties":{"filters":{"anyOf":[{"items":{"$ref":"#/components/schemas/PublicFilterNodeSchema"},"type":"array"},{"type":"null"}],"title":"Filters","description":"Filter tree. Each entry is a predicate leaf `{field, operator, value}` — or a logical branch `{and: [...]}` / `{or: [...]}` / `{not: {...}}`. To filter on an array-valued field (multi-select, or an array-compound subfield via a dotted path such as `contact_emails.email`), use a regular predicate leaf; it matches when ANY element satisfies the operator. Multiple dotted predicates on subfields of the same array-compound parent must be satisfied by the same element. Multiple top-level entries are AND-combined."},"sort":{"anyOf":[{"items":{"$ref":"#/components/schemas/PublicSortClause"},"type":"array"},{"type":"null"}],"title":"Sort","description":"Sort clauses. Each clause is `{field, direction: \"asc\" | \"desc\"}`, applied in order."},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor","description":"Opaque cursor string from a prior response's next_cursor."},"limit":{"type":"integer","title":"Limit","description":"Page size in [1, 100]. Defaults to 50. An out-of-range value is rejected with the dedicated `limit_out_of_range` 400, not the generic schema-validation error.","default":50}},"additionalProperties":false,"type":"object","title":"PublicQueryBodySchema","description":"Strongly typed request body for all `_query` endpoints.\n\nAll fields are optional; sensible defaults apply (filters=None, sort=None,\ncursor=None, limit=50). Structural validation of filter/sort nodes happens\nhere at the boundary; descriptor-aware validation (field names, operator\napplicability, depth limits) happens downstream in the pipeline\ntranslators."},"PublicRequestLimit":{"properties":{"period":{"$ref":"#/components/schemas/ApiRequestLimitPeriod","description":"The span of time over which requests are counted."},"period_length":{"type":"integer","title":"Period Length","description":"How many hours or days one period spans; 1 for billing_period."},"used":{"type":"integer","title":"Used","description":"Requests counted in the current period so far."},"limit":{"type":"integer","title":"Limit","description":"Requests the organization may make in one period."},"resets_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resets At","description":"When the count starts over. null when the period has no end, as for a billing_period of an organization with no current billing period."},"when_reached":{"$ref":"#/components/schemas/ApiRequestLimitReaction","description":"What happens to requests past the limit. warn: they are served with a warning; block: they are refused."}},"additionalProperties":false,"type":"object","required":["period","period_length","used","limit","resets_at","when_reached"],"title":"PublicRequestLimit"},"PublicRequestLimits":{"properties":{"speed_limit_per_second":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Speed Limit Per Second","description":"Requests per second the organization can sustain across all its API keys; requests past it are refused with HTTP 429. null when the API sets no speed limit."},"limits":{"items":{"$ref":"#/components/schemas/PublicRequestLimit"},"type":"array","title":"Limits","description":"Only the limits the organization is held to, shortest period first. Empty when it is held to none."},"prepaid":{"$ref":"#/components/schemas/PublicRequestPrepaid","description":"The prepaid request balance requests draw down, if any."},"pause":{"anyOf":[{"$ref":"#/components/schemas/PublicRequestPause"},{"type":"null"}],"description":"The pause now holding requests: the organization's, or the key owner's own, never another user's. When both apply, the one that refuses is reported, the organization's on a tie. null when no pause applies."}},"additionalProperties":false,"type":"object","required":["speed_limit_per_second","limits","prepaid","pause"],"title":"PublicRequestLimits"},"PublicRequestPause":{"properties":{"until":{"type":"string","format":"date-time","title":"Until","description":"When the pause ends."},"applies_to":{"$ref":"#/components/schemas/ApiRequestPauseScope","description":"Whose requests the pause holds. organization: every request in the organization; you: only requests made with the key owner's API keys."},"period":{"$ref":"#/components/schemas/ApiRequestLimitPeriod","description":"The period whose limit started the pause."},"when_reached":{"$ref":"#/components/schemas/ApiRequestLimitReaction","description":"What happens to requests during the pause. warn: they are served with a warning; block: they are refused."}},"additionalProperties":false,"type":"object","required":["until","applies_to","period","when_reached"],"title":"PublicRequestPause"},"PublicRequestPrepaid":{"properties":{"unlimited":{"type":"boolean","title":"Unlimited","description":"true when no prepaid balance holds requests back; remaining and granted are then null. false when requests draw down a prepaid balance."},"remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining","description":"Prepaid requests left to spend. null when unlimited is true."},"granted":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Granted","description":"Prepaid requests the organization has been granted in total. null when unlimited is true."}},"additionalProperties":false,"type":"object","required":["unlimited","remaining","granted"],"title":"PublicRequestPrepaid"},"PublicSortClause":{"properties":{"field":{"type":"string","title":"Field"},"direction":{"$ref":"#/components/schemas/PublicSortDirection"}},"additionalProperties":false,"type":"object","required":["field","direction"],"title":"PublicSortClause","description":"One entry in the public-API sort body.\n\nWire shape: ``{\"field\": \"<api_name>\", \"direction\": \"asc\" | \"desc\"}``.\nPinned with ``extra=\"forbid\"`` so stray client fields surface as\nvalidation errors rather than being silently ignored."},"PublicSortDirection":{"type":"string","enum":["asc","desc"],"title":"PublicSortDirection","description":"Wire-format sort direction for the public-API sort body.\n\nLowercase string values. ``NameValueStrEnum`` enforces\n``name == value`` so the wire form matches the Python member."},"PublicV2ContactAccountRoleAttributes":{"properties":{"role":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"is_primary":{"$ref":"#/components/schemas/BooleanValue"}},"additionalProperties":false,"type":"object","required":["role","is_primary"],"title":"PublicV2ContactAccountRoleAttributes","description":"Per-edge attributes of the contact-account junction."},"PublicV2HealthStatus":{"properties":{"status":{"type":"string","title":"Status"}},"additionalProperties":false,"type":"object","required":["status"],"title":"PublicV2HealthStatus","description":"Inner payload for the health response envelope."},"QuotaExceededDetail":{"properties":{"code":{"type":"string","const":"quota_exceeded","title":"Code","default":"quota_exceeded"},"limit":{"type":"integer","title":"Limit"},"resets_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resets At"}},"additionalProperties":false,"type":"object","required":["limit","resets_at"],"title":"QuotaExceededDetail"},"RateLimitDetail":{"properties":{"code":{"type":"string","const":"rate_limit_exceeded","title":"Code","default":"rate_limit_exceeded"},"blocking_tier":{"type":"string","title":"Blocking Tier"},"retry_after_seconds":{"type":"integer","title":"Retry After Seconds"}},"additionalProperties":false,"type":"object","required":["blocking_tier","retry_after_seconds"],"title":"RateLimitDetail"},"RecordMatch":{"properties":{"field":{"type":"string","title":"Field"},"value":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Value"}},"additionalProperties":false,"type":"object","required":["field","value"],"title":"RecordMatch","description":"Match envelope where ``attribute`` is a dot-notation public schema path."},"RecordNotFoundDetail":{"properties":{"code":{"type":"string","const":"record_not_found","title":"Code","default":"record_not_found"},"record_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name"},"domain_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Name"}},"additionalProperties":false,"type":"object","title":"RecordNotFoundDetail"},"RecordReferenceRead":{"properties":{"related_record_id":{"type":"string","format":"uuid","title":"Related Record Id"},"related_record_type":{"type":"string","title":"Related Record Type"}},"additionalProperties":false,"type":"object","required":["related_record_id","related_record_type"],"title":"RecordReferenceRead","description":"Read payload for the `record_reference` value type."},"RecordReferenceTypeInfo":{"properties":{"value_type":{"type":"string","const":"record_reference","title":"Value Type","default":"record_reference"},"is_array":{"type":"boolean","title":"Is Array"},"related_object_api_name":{"type":"string","title":"Related Object Api Name"}},"type":"object","required":["is_array","related_object_api_name"],"title":"RecordReferenceTypeInfo"},"RecordReferenceValue":{"properties":{"value_type":{"type":"string","const":"record_reference","title":"Value Type","default":"record_reference"},"value":{"$ref":"#/components/schemas/RecordReferenceRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"RecordReferenceValue"},"RecordReferenceWrite":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"string","format":"uuid"},{"$ref":"#/components/schemas/RecordMatch"}]},"RelatedRecordIdObject":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"}},"additionalProperties":false,"type":"object","required":["id"],"title":"RelatedRecordIdObject","description":"Wrapped id form: ``{\"id\": \"<uuid>\"}`` nested under ``related_record_id``."},"RelationshipItem":{"properties":{"related_record_id":{"type":"string","format":"uuid","title":"Related Record Id"},"related_record_type":{"type":"string","title":"Related Record Type"},"through":{"anyOf":[{"$ref":"#/components/schemas/JunctionThrough_BaseModel_"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["related_record_id","related_record_type"],"title":"RelationshipItem","description":"One related-record entry inside a `RelationshipEnvelope`."},"RelationshipSchema":{"properties":{"api_name":{"type":"string","title":"Api Name"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"related_object_relationship_api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Object Relationship Api Name"},"related_object_api_name":{"type":"string","title":"Related Object Api Name"},"type":{"type":"string","enum":["direct","junction"],"title":"Type"},"junction_object_api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Junction Object Api Name"},"is_custom":{"type":"boolean","title":"Is Custom","default":false},"is_array":{"type":"boolean","title":"Is Array","default":true},"is_creatable":{"type":"boolean","title":"Is Creatable"},"is_updatable":{"type":"boolean","title":"Is Updatable"}},"type":"object","required":["api_name","display_name","related_object_api_name","type","is_creatable","is_updatable"],"title":"RelationshipSchema","description":"Public-API descriptor for a single relationship on a record_type.\n\n`kind` discriminates the\nthree relationship shapes the public API exposes:\n\n  - ``direct``: a FK or DCA outbound from this record_type.\n  - ``junction``: a many-to-many mediated by a junction object that\n    itself carries per-edge attributes.\n\nPer-edge attributes are only surfaced on junction relationships;\n``has_per_edge_attributes`` is True iff ``kind == \"junction\"``."},"RequestValidationDetail":{"properties":{"code":{"type":"string","const":"request_validation_failed","title":"Code","default":"request_validation_failed"},"loc":{"items":{"$ref":"#/components/schemas/JsonValue-Output"},"type":"array","title":"Loc"},"type":{"type":"string","title":"Type"},"all_errors":{"items":{"$ref":"#/components/schemas/JsonValue-Output"},"type":"array","title":"All Errors"}},"additionalProperties":false,"type":"object","required":["loc","type","all_errors"],"title":"RequestValidationDetail"},"RestrictionActiveDetail":{"properties":{"code":{"type":"string","const":"restriction_active","title":"Code","default":"restriction_active"},"until":{"type":"string","format":"date-time","title":"Until"}},"additionalProperties":false,"type":"object","required":["until"],"title":"RestrictionActiveDetail"},"RichTextTypeInfo":{"properties":{"value_type":{"type":"string","const":"rich_text","title":"Value Type","default":"rich_text"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"RichTextTypeInfo"},"RichTextValue":{"properties":{"value_type":{"type":"string","const":"rich_text","title":"Value Type","default":"rich_text"},"value":{"type":"string","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"RichTextValue"},"SelectList":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"options":{"items":{"$ref":"#/components/schemas/SelectOption"},"type":"array","title":"Options"}},"type":"object","required":["id","display_name","options"],"title":"SelectList"},"SelectOption":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"api_name":{"type":"string","title":"Api Name"},"select_list_id":{"type":"string","format":"uuid","title":"Select List Id"},"display_name":{"type":"string","title":"Display Name"},"index":{"type":"integer","title":"Index"}},"type":"object","required":["id","api_name","select_list_id","display_name","index"],"title":"SelectOption","description":"A single option inside a public-API select-list payload.\n\nThe stage-only optional fields (closing probability, outcome state, expected\ndays in stage) are populated only for stage select lists, which carry them on\ntheir own stage option types; plain selects emit none of them."},"SelectOptionByApiName":{"properties":{"select_list_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Select List Id"},"api_name":{"type":"string","title":"Api Name"}},"type":"object","required":["api_name"],"title":"SelectOptionByApiName"},"SelectOptionByDisplayName":{"properties":{"select_list_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Select List Id"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["display_name"],"title":"SelectOptionByDisplayName"},"SelectOptionById":{"properties":{"select_list_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Select List Id"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["id"],"title":"SelectOptionById"},"SelectOptionRef":{"anyOf":[{"$ref":"#/components/schemas/SelectOptionById"},{"$ref":"#/components/schemas/SelectOptionByApiName"},{"$ref":"#/components/schemas/SelectOptionByDisplayName"}]},"SelectRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"select_list_id":{"type":"string","format":"uuid","title":"Select List Id"},"api_name":{"type":"string","title":"Api Name"},"display_name":{"type":"string","title":"Display Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"additionalProperties":false,"type":"object","required":["id","select_list_id","api_name","display_name"],"title":"SelectRead","description":"Read payload for `select` and `multi_select` value types."},"SelectTypeInfo":{"properties":{"value_type":{"type":"string","const":"select","title":"Value Type","default":"select"},"is_array":{"type":"boolean","title":"Is Array"},"subfields":{"items":{"$ref":"#/components/schemas/FieldSchema"},"type":"array","title":"Subfields"},"select_list":{"$ref":"#/components/schemas/SelectList"}},"type":"object","required":["is_array","select_list"],"title":"SelectTypeInfo"},"SelectValue":{"properties":{"value_type":{"type":"string","const":"select","title":"Value Type","default":"select"},"value":{"$ref":"#/components/schemas/SelectRead"}},"additionalProperties":false,"type":"object","required":["value"],"title":"SelectValue"},"SelectValueWrite":{"properties":{"value_type":{"type":"string","const":"select","title":"Value Type","default":"select"},"value":{"$ref":"#/components/schemas/SelectOptionRef"}},"additionalProperties":false,"type":"object","required":["value"],"title":"SelectValueWrite"},"SetAccountDomainPrimaryBody":{"properties":{"is_primary":{"type":"boolean","title":"Is Primary"}},"additionalProperties":false,"type":"object","required":["is_primary"],"title":"SetAccountDomainPrimaryBody","description":"PATCH ``/account/{id}/attribute/domains/{domain_name}`` body.\n\n``is_primary`` maps to the service ``is_primary_for_account`` flag; promoting\none domain demotes the account's prior primary."},"SingleMeta":{"properties":{"duplicate_check":{"anyOf":[{"$ref":"#/components/schemas/PublicDuplicateCheck"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"SingleMeta","description":"Optional metadata attached to a successful create response."},"SingleRelationshipEdgeResponse":{"properties":{"parent":{"$ref":"#/components/schemas/ParentRef"},"api_name":{"type":"string","title":"Api Name"},"item":{"$ref":"#/components/schemas/RelationshipItem"}},"additionalProperties":false,"type":"object","required":["parent","api_name","item"],"title":"SingleRelationshipEdgeResponse","description":"Response for POST / PATCH on one relationship edge.\n\nCarries the single affected `RelationshipItem` (the write produced exactly\none edge), unlike the paginated `SingleRelationshipResponse` which carries\na list."},"SingleRelationshipResponse":{"properties":{"count":{"type":"integer","title":"Count"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"parent":{"$ref":"#/components/schemas/ParentRef"},"api_name":{"type":"string","title":"Api Name"},"items":{"items":{"$ref":"#/components/schemas/RelationshipItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["count","next_cursor","parent","api_name","items"],"title":"SingleRelationshipResponse","description":"Backward-compatible response name for generic relationship reads."},"SortTooManyFieldsDetail":{"properties":{"code":{"type":"string","const":"sort_too_many_fields","title":"Code","default":"sort_too_many_fields"},"count":{"type":"integer","title":"Count"},"max":{"type":"integer","title":"Max"}},"additionalProperties":false,"type":"object","required":["count","max"],"title":"SortTooManyFieldsDetail"},"StageIdDetail":{"properties":{"code":{"type":"string","const":"stage_entrance_criteria_not_met","title":"Code","default":"stage_entrance_criteria_not_met"},"stage_id":{"type":"string","title":"Stage Id"}},"additionalProperties":false,"type":"object","required":["stage_id"],"title":"StageIdDetail"},"StageTransitionDetail":{"properties":{"code":{"type":"string","const":"stage_transition_not_allowed","title":"Code","default":"stage_transition_not_allowed"},"from":{"type":"string","title":"From"},"to":{"type":"string","title":"To"},"reason":{"type":"string","enum":["approval_required","invalid_transition","missing_required_field"],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["from","to","reason"],"title":"StageTransitionDetail"},"StringTypeInfo":{"properties":{"value_type":{"type":"string","const":"string","title":"Value Type","default":"string"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"StringTypeInfo"},"StringValue":{"properties":{"value_type":{"type":"string","const":"string","title":"Value Type","default":"string"},"value":{"type":"string","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"StringValue"},"SubResourceDetail":{"properties":{"code":{"type":"string","const":"sub_resource_not_supported","title":"Code","default":"sub_resource_not_supported"},"record_type":{"type":"string","title":"Record Type"},"api_name":{"type":"string","title":"Api Name"}},"additionalProperties":false,"type":"object","required":["record_type","api_name"],"title":"SubResourceDetail"},"SubResourceItemData":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"envelope":{"$ref":"#/components/schemas/SubResourceItemEnvelope"}},"additionalProperties":false,"type":"object","required":["id","envelope"],"title":"SubResourceItemData","description":"Sub-resource item: the item's id plus the raw compound payload."},"SubResourceItemEnvelope":{"anyOf":[{"$ref":"#/components/schemas/ContactEmailRead"},{"$ref":"#/components/schemas/ContactPhoneNumberRead"}]},"SubResourceItemResponse":{"properties":{"data":{"$ref":"#/components/schemas/SubResourceItemData"}},"additionalProperties":false,"type":"object","required":["data"],"title":"SubResourceItemResponse","description":"Wrapper around a single `SubResourceItemData`."},"TargetRecordNotFoundDetail":{"properties":{"code":{"type":"string","const":"target_record_not_found","title":"Code","default":"target_record_not_found"},"record_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Type"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"},"related_record_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Record Id"},"match_field_api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Field Api Name"}},"additionalProperties":false,"type":"object","title":"TargetRecordNotFoundDetail"},"TaskActivityMetadata":{"properties":{"kind":{"type":"string","const":"task","title":"Kind","default":"task"},"title":{"type":"string","title":"Title"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"task_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Status"},"assignee":{"anyOf":[{"$ref":"#/components/schemas/ActivityTaskAssignee"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["title"],"title":"TaskActivityMetadata"},"TaskCreateRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/TaskCreateRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"TaskCreateRequest"},"TaskCreateRequestAttributes":{"properties":{"title":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"}],"title":"Title"},"note":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"string"},{"type":"null"}],"title":"Status"},"priority":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"string"},{"type":"null"}],"title":"Priority"},"due_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Due At"},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["title"],"title":"TaskCreateRequestAttributes","description":"Create writable-field surface.\n\nOnly the writable task scalars are declared. ``title`` is the sole\nrequired-on-create attribute on the public wire; ``owner_user_id`` is\nexcluded from required-on-create and defaults to the API-key caller in the\nadapter. ``status`` / ``priority`` / ``type`` are server-defaulted by the\nadapter (the internal ``CreateTaskRequest`` requires them, but the public\nsurface does not). Non-writable fields (read-only render fields,\n``disposition`` which core drops on create, and the account / pipeline\nrelationships) are NOT declared here. ``extra=\"forbid\"`` rejects those keys\nat the Pydantic boundary with a ``422`` before request attributes reach the\nwrite service. In particular ``owner_team_id`` is read-only — it has no CRUD\nwrite path, so it is omitted here and an explicit value is rejected. Account\n/ pipeline linkage is written via the task relationship endpoints."},"TaskListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TaskObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"TaskListResponse","description":"Wrapper around a paginated list of ``TaskObjectRecord`` — query."},"TaskObjectAttributes":{"properties":{"id":{"$ref":"#/components/schemas/UuidValue"},"organization_id":{"$ref":"#/components/schemas/UuidValue"},"title":{"$ref":"#/components/schemas/StringValue"},"note":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/EnumValue"},"priority":{"$ref":"#/components/schemas/EnumValue"},"due_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"disposition":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"owner_user_id":{"$ref":"#/components/schemas/RecordReferenceValue"},"owner_team_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"type":{"$ref":"#/components/schemas/EnumValue"},"source_type":{"$ref":"#/components/schemas/EnumValue"},"is_private":{"anyOf":[{"$ref":"#/components/schemas/BooleanValue"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/TimestampValue"},"updated_at":{"$ref":"#/components/schemas/TimestampValue"},"archived_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"completed_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"created_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"updated_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"archived_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"completed_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceValue"},{"type":"null"}]},"participant_user_id_list":{"items":{"$ref":"#/components/schemas/RecordReferenceValue"},"type":"array","title":"Participant User Id List"}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["id","organization_id","title","status","priority","owner_user_id","type","source_type","created_at","updated_at","participant_user_id_list"],"title":"TaskObjectAttributes"},"TaskObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"task","title":"Record Type","default":"task"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/TaskObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"TaskObjectRecord"},"TaskPatchRequest":{"properties":{"attributes":{"$ref":"#/components/schemas/TaskPatchRequestAttributes"}},"additionalProperties":false,"type":"object","required":["attributes"],"title":"TaskPatchRequest","description":"PATCH /api/v2/task/{id} request envelope.\n\n``attributes`` is required (inherited from ``BaseRequest``); an\n``attributes`` block present but carrying zero set fields (``{}``) is\nrejected here with a ``422`` — a PATCH must name at least one field."},"TaskPatchRequestAttributes":{"properties":{"title":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Title"},"note":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"string"},{"type":"null"}],"title":"Status"},"priority":{"anyOf":[{"$ref":"#/components/schemas/EnumValue"},{"type":"string"},{"type":"null"}],"title":"Priority"},"due_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Due At"},"disposition":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"string"},{"type":"null"}],"title":"Disposition"},"owner_user_id":{"anyOf":[{"$ref":"#/components/schemas/RecordReferenceWrite"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"TaskPatchRequestAttributes","description":"All writable task fields optional on patch.\n\nThe account / pipeline relationships are NOT on the patch surface — they\nare written via the task relationship endpoints. ``disposition`` stays\npatchable (core ``update_entity`` persists it) though it is not creatable."},"TaskSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/TaskObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"TaskSingleResponse","description":"Wrapper around a single ``TaskObjectRecord`` — GET / POST / PATCH."},"TeamListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TeamObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"TeamListResponse","description":"Wrapper around a paginated list of ``TeamObjectRecord`` — query."},"TeamMembershipAttributes":{"properties":{"is_primary_team":{"$ref":"#/components/schemas/BooleanValue"}},"additionalProperties":false,"type":"object","required":["is_primary_team"],"title":"TeamMembershipAttributes","description":"Per-edge attributes of the team-user membership junction."},"TeamObjectAttributes":{"properties":{"id":{"$ref":"#/components/schemas/UuidValue"},"organization_id":{"$ref":"#/components/schemas/UuidValue"},"name":{"$ref":"#/components/schemas/StringValue"},"description":{"anyOf":[{"$ref":"#/components/schemas/LongTextValue"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/TimestampValue"},"created_by_user_id":{"$ref":"#/components/schemas/UuidValue"},"updated_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"updated_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/UuidValue"},{"type":"null"}]},"archived_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"archived_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/UuidValue"},{"type":"null"}]}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["id","organization_id","name","created_at","created_by_user_id"],"title":"TeamObjectAttributes"},"TeamObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"team","title":"Record Type","default":"team"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/TeamObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"TeamObjectRecord"},"TeamSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/TeamObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"TeamSingleResponse","description":"Wrapper around a single ``TeamObjectRecord`` — GET."},"TimeTypeInfo":{"properties":{"value_type":{"type":"string","const":"time","title":"Value Type","default":"time"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"TimeTypeInfo"},"TimeValue":{"properties":{"value_type":{"type":"string","const":"time","title":"Value Type","default":"time"},"value":{"type":"string","format":"time","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"TimeValue"},"TimestampTypeInfo":{"properties":{"value_type":{"type":"string","const":"timestamp","title":"Value Type","default":"timestamp"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"TimestampTypeInfo"},"TimestampValue":{"properties":{"value_type":{"type":"string","const":"timestamp","title":"Value Type","default":"timestamp"},"value":{"type":"string","format":"date-time","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"TimestampValue"},"TranscriptSegmentCreate":{"properties":{"speaker":{"type":"string","minLength":1,"title":"Speaker","description":"The speaker as the transcript labels them, such as a participant's name. Must not be blank; leading and trailing whitespace is removed."},"text":{"type":"string","minLength":1,"title":"Text","description":"Must not be blank; leading and trailing whitespace is removed."},"start_offset_seconds":{"type":"number","maximum":86400.0,"minimum":0.0,"title":"Start Offset Seconds","description":"Seconds from the start of the meeting."},"end_offset_seconds":{"type":"number","maximum":86400.0,"minimum":0.0,"title":"End Offset Seconds","description":"Seconds from the start of the meeting; not before start_offset_seconds."}},"additionalProperties":false,"type":"object","required":["speaker","text","start_offset_seconds","end_offset_seconds"],"title":"TranscriptSegmentCreate"},"UnknownAttributeDetail":{"properties":{"code":{"type":"string","const":"unknown_attribute","title":"Code","default":"unknown_attribute"},"record_type":{"type":"string","title":"Record Type"},"api_name":{"type":"string","title":"Api Name"}},"additionalProperties":false,"type":"object","required":["record_type","api_name"],"title":"UnknownAttributeDetail"},"UnknownFieldDetail":{"properties":{"code":{"type":"string","const":"unknown_field","title":"Code","default":"unknown_field"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"},"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Fields"},"nested_object_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nested Object Identifier"}},"additionalProperties":false,"type":"object","title":"UnknownFieldDetail"},"UnknownRecordTypeDetail":{"properties":{"code":{"type":"string","const":"unknown_record_type","title":"Code","default":"unknown_record_type"},"record_type":{"type":"string","title":"Record Type"},"custom_record_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Record Type"}},"additionalProperties":false,"type":"object","required":["record_type"],"title":"UnknownRecordTypeDetail"},"UnsortableFieldDetail":{"properties":{"code":{"type":"string","const":"unsortable_field","title":"Code","default":"unsortable_field"},"field":{"type":"string","title":"Field"},"reason":{"anyOf":[{"type":"string","enum":["not_sortable","unsupported_path"]},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["field"],"title":"UnsortableFieldDetail"},"UnsupportedMediaTypeDetail":{"properties":{"code":{"type":"string","const":"unsupported_media_type","title":"Code","default":"unsupported_media_type"},"content_type":{"type":"string","title":"Content Type"}},"additionalProperties":false,"type":"object","required":["content_type"],"title":"UnsupportedMediaTypeDetail"},"UpsertMeta":{"properties":{"action":{"type":"string","enum":["created","updated"],"title":"Action"},"matched_on":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"},{"type":"string","format":"uuid"}]},"type":"object","title":"Matched On"}},"additionalProperties":false,"type":"object","required":["action","matched_on"],"title":"UpsertMeta","description":"Metadata describing the outcome of an upsert call."},"UrlTypeInfo":{"properties":{"value_type":{"type":"string","const":"url","title":"Value Type","default":"url"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"UrlTypeInfo"},"UrlValue":{"properties":{"value_type":{"type":"string","const":"url","title":"Value Type","default":"url"},"value":{"type":"string","title":"Value","description":"\n        Represents a URL with an optional http / https scheme\n        and required registered domain.\n\n        Examples:\n        - \"example.com\"\n        - \"https://example.com\"\n        "}},"additionalProperties":false,"type":"object","required":["value"],"title":"UrlValue"},"UserListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/UserObjectRecord"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationBlock"}},"additionalProperties":false,"type":"object","required":["data","pagination"],"title":"UserListResponse","description":"Wrapper around a paginated list of ``UserObjectRecord`` — query."},"UserObjectAttributes":{"properties":{"id":{"$ref":"#/components/schemas/UuidValue"},"organization_id":{"$ref":"#/components/schemas/UuidValue"},"first_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"last_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"display_name":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"email":{"$ref":"#/components/schemas/EmailValue"},"phone_number":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumberValue"},{"type":"null"}]},"linkedin_url":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"scheduler_link":{"anyOf":[{"$ref":"#/components/schemas/UrlValue"},{"type":"null"}]},"timezone":{"anyOf":[{"$ref":"#/components/schemas/StringValue"},{"type":"null"}]},"organization_association_status":{"$ref":"#/components/schemas/EnumValue"},"organization_association_deactivated_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/TimestampValue"},"created_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/UuidValue"},{"type":"null"}]},"updated_at":{"anyOf":[{"$ref":"#/components/schemas/TimestampValue"},{"type":"null"}]},"updated_by_user_id":{"anyOf":[{"$ref":"#/components/schemas/UuidValue"},{"type":"null"}]}},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CommonValueEnvelope"},{"$ref":"#/components/schemas/CommonValueEnvelopeList"},{"type":"null"}]},"type":"object","required":["id","organization_id","email","organization_association_status","created_at"],"title":"UserObjectAttributes"},"UserObjectRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record_type":{"type":"string","const":"user","title":"Record Type","default":"user"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attributes":{"$ref":"#/components/schemas/UserObjectAttributes"}},"additionalProperties":false,"type":"object","required":["id","created_at","updated_at","attributes"],"title":"UserObjectRecord"},"UserSingleResponse":{"properties":{"data":{"$ref":"#/components/schemas/UserObjectRecord"}},"additionalProperties":false,"type":"object","required":["data"],"title":"UserSingleResponse","description":"Wrapper around a single ``UserObjectRecord`` — GET."},"UuidTypeInfo":{"properties":{"value_type":{"type":"string","const":"uuid","title":"Value Type","default":"uuid"},"is_array":{"type":"boolean","title":"Is Array"}},"type":"object","required":["is_array"],"title":"UuidTypeInfo"},"UuidValue":{"properties":{"value_type":{"type":"string","const":"uuid","title":"Value Type","default":"uuid"},"value":{"type":"string","format":"uuid","title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"UuidValue"},"ValueTypeInfo":{"oneOf":[{"$ref":"#/components/schemas/StringTypeInfo"},{"$ref":"#/components/schemas/LongTextTypeInfo"},{"$ref":"#/components/schemas/RichTextTypeInfo"},{"$ref":"#/components/schemas/NumberTypeInfo"},{"$ref":"#/components/schemas/PercentTypeInfo"},{"$ref":"#/components/schemas/CurrencyTypeInfo"},{"$ref":"#/components/schemas/BooleanTypeInfo"},{"$ref":"#/components/schemas/TimestampTypeInfo"},{"$ref":"#/components/schemas/DateTypeInfo"},{"$ref":"#/components/schemas/TimeTypeInfo"},{"$ref":"#/components/schemas/EmailTypeInfo"},{"$ref":"#/components/schemas/PhoneNumberTypeInfo"},{"$ref":"#/components/schemas/UrlTypeInfo"},{"$ref":"#/components/schemas/UuidTypeInfo"},{"$ref":"#/components/schemas/EnumTypeInfo"},{"$ref":"#/components/schemas/SelectTypeInfo"},{"$ref":"#/components/schemas/ContactStageTypeInfo"},{"$ref":"#/components/schemas/AccountStageTypeInfo"},{"$ref":"#/components/schemas/OpportunityStageTypeInfo"},{"$ref":"#/components/schemas/RecordReferenceTypeInfo"},{"$ref":"#/components/schemas/ContactEmailTypeInfo"},{"$ref":"#/components/schemas/ContactPhoneNumberTypeInfo"},{"$ref":"#/components/schemas/AddressTypeInfo"},{"$ref":"#/components/schemas/AccountDomainTypeInfo"},{"$ref":"#/components/schemas/CreatedSourceFormSubmissionDetailsTypeInfo"},{"$ref":"#/components/schemas/MeetingParticipantTypeInfo"},{"$ref":"#/components/schemas/EmailParticipantTypeInfo"}],"discriminator":{"propertyName":"value_type","mapping":{"account_domain":"#/components/schemas/AccountDomainTypeInfo","account_stage":"#/components/schemas/AccountStageTypeInfo","address":"#/components/schemas/AddressTypeInfo","boolean":"#/components/schemas/BooleanTypeInfo","contact_email":"#/components/schemas/ContactEmailTypeInfo","contact_phone_number":"#/components/schemas/ContactPhoneNumberTypeInfo","contact_stage":"#/components/schemas/ContactStageTypeInfo","created_source_form_submission_details":"#/components/schemas/CreatedSourceFormSubmissionDetailsTypeInfo","currency":"#/components/schemas/CurrencyTypeInfo","date":"#/components/schemas/DateTypeInfo","email":"#/components/schemas/EmailTypeInfo","email_participant":"#/components/schemas/EmailParticipantTypeInfo","enum":"#/components/schemas/EnumTypeInfo","long_text":"#/components/schemas/LongTextTypeInfo","meeting_participant":"#/components/schemas/MeetingParticipantTypeInfo","number":"#/components/schemas/NumberTypeInfo","opportunity_stage":"#/components/schemas/OpportunityStageTypeInfo","percent":"#/components/schemas/PercentTypeInfo","phone_number":"#/components/schemas/PhoneNumberTypeInfo","record_reference":"#/components/schemas/RecordReferenceTypeInfo","rich_text":"#/components/schemas/RichTextTypeInfo","select":"#/components/schemas/SelectTypeInfo","string":"#/components/schemas/StringTypeInfo","time":"#/components/schemas/TimeTypeInfo","timestamp":"#/components/schemas/TimestampTypeInfo","url":"#/components/schemas/UrlTypeInfo","uuid":"#/components/schemas/UuidTypeInfo"}}},"WriteNotSupportedDetail":{"properties":{"code":{"type":"string","const":"write_not_supported","title":"Code","default":"write_not_supported"},"record_type":{"type":"string","title":"Record Type"},"reason":{"anyOf":[{"type":"string","enum":["read_only_record_type","canonical_junction"]},{"type":"null"}],"title":"Reason"},"operation":{"anyOf":[{"type":"string","enum":["create","patch","archive"]},{"type":"null"}],"title":"Operation"}},"additionalProperties":false,"type":"object","required":["record_type"],"title":"WriteNotSupportedDetail"},"_Unset":{"properties":{},"additionalProperties":false,"type":"object","title":"_Unset"},"pydantic__types__JsonValue":{},"salestech_be__public_api__pipeline__types__JsonValue":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"type":"array"},{"additionalProperties":{"$ref":"#/components/schemas/salestech_be__public_api__pipeline__types__JsonValue"},"type":"object"},{"type":"null"}]}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key"}}}}