Creates a single policy without a file upload. Only policyNumber and riskStateCode are required. Everything else is optional and can be added later with Update Policy.
A policy record in Turris represents bound business. The available currentStatus values (bound, active, expired, cancelled, non renewed) are all lifecycle states after binding, so there is no quote or pre-bind state. policyNumber is required because it is the grouping key that ties transactions together, not because Turris re-checks that the policy is bound.
Descriptive fields and association ids
Most fields on this endpoint are descriptive: the raw values your system already holds, stored verbatim on the policy record. Two fields are different. downstreamEntityAssociationId and productId are association ids, meaning Turris record ids that create a hard link between the policy and an entity you already have in Turris.The distinction matters because compliance work runs on the links, not on the strings. Turris can only check whether an agency was licensed and appointed in the risk state on the effective date once the policy is linked to a specific downstream entity association. An agency name on its own is text.You can supply either kind, or both. They do different jobs.
Identifying the agency
Field
Kind
What it does
downstreamEntityAssociationId
Association id
Links the policy directly to that agency and stamps entityMatchStatus = user confirmed. No matching runs, and a later matching pass leaves confirmed policies alone unless an operator explicitly resets them.
agencyName
Descriptive
Stored on the record, shown in the Turris UI, used by name filters, and the primary matcher signal when no association id was supplied
Additional matcher signals, each stronger than the name alone
Get the downstreamEntityAssociationId from List Associations. It resolves internally to the downstream entity and the upstream/downstream association pair.Send the id when you have it. It is exact, immediate, and immune to spelling drift. If your system stores a Turris association id against each agency, send it on every create.Send the descriptive fields when you do not. A policy created without an association id is stored with entityMatchStatus = unmatched, and a later matching run resolves it against your downstream entity roster in this order:
A previously confirmed mapping for that normalized agency name
producerCode
agencyNpn, then the generic npn
agencyFein
agencyLicenseNumber combined with agencyLicensedStateCode
Exact agency name against legal name or DBA
Normalized agency name, ignoring suffixes such as Inc, LLC, Ltd, Corp
Anything the deterministic layers cannot settle goes to AI matching against your agency roster. Anything still unresolved is flagged for manual review in the Turris app.Send both when you can. They do not conflict. The association id governs the link; the descriptive fields are still stored, and they are what a reviewer reads on the policy, what name-based filters query, and what the matcher falls back to if the association is ever cleared. Sending the name alongside the id costs nothing and makes the record legible.
Identifying the product
The same split applies.
Field
Kind
What it does
productId
Association id
Links the product and stamps productMatchStatus = user confirmed
productName, productCode
Descriptive
Stored on the record, and the signals AI product matching uses against your product catalogue
Get productId from List Products. If your upstream entity has exactly one product, matching assigns it automatically after the agency match and no product matching is needed.
Carrier and agent fields
carrierName, agentName, agentNpn, agentLicenseNumber, agentLicensedState, producerName, lineOfBusiness, insuredEntityName, filingNumber, slaNumber and externalBillingId are all descriptive. There is no carrier association id on this endpoint. Agent fields feed agent matching during a matching run but are never required at create time.
Creating a policy before you have every detail
No descriptive field is required, so a partial create is a supported flow rather than a workaround. A common pattern is to create the policy as soon as the policy number and risk state are known, then PATCH in premium, coverage limits, product and agency details as they land.Get policyNumber and riskStateCode right at create time. They are the two required fields, and they are also the two Update Policy does not accept, so neither can be changed afterwards. createInitialTransaction is likewise create-only; attach later transactions with Create Transaction instead.Every other field on this endpoint can be set later through PATCH, and passing null for an association id clears it and resets that match status to unmatched.
Creating a policy through this endpoint does not by itself queue a matching run. Policies created with entityMatchStatus = unmatched stay unmatched until matching is started from the Turris app, or until you attach the association explicitly with Update Policy. If your integration cannot supply downstreamEntityAssociationId, expect an operator to run matching on the unmatched queue.
currentStatus defaults to bound and is recomputed from transactions once any are attached. See Create Transaction.
Creating the initial transaction
By default the policy is created transaction-less (transactionCount = 0). Set createInitialTransaction to true to atomically create the policy’s first transaction alongside it in one operation. The transaction is inferred, not supplied:
Field
Inferred value
policyTransactionType
new
policyTransactionDate
effectiveDate when supplied, otherwise today
descriptive fields
inherited from the policy body
agency match
mirrors the policy’s confirmed agency when present, otherwise unmatched
agents
none
When the flag is true, transactionCount becomes 1, latestTransactionId points at the new transaction, and currentStatus is derived from that transaction rather than the request body. Both writes commit together; either one failing rolls back the whole request. Defaults to false when omitted, leaving the create behavior unchanged.
Returned when the body fails validation (missing policyNumber or riskStateCode, invalid enum value, or malformed association id).
{ "statusCode": 400, "errorType": "validation_error", "errorMessage": ["riskStateCode should not be empty"], "requestId": "dev-abc123", "timestamp": "2025-01-15T10:30:00.000Z"}
Association Not Found (404)
Returned when a supplied productId or downstreamEntityAssociationId does not exist for your upstream entity.
Returned when a policy with the same policyNumber already exists for your upstream entity.
{ "statusCode": 409, "errorType": "conflict", "errorMessage": ["A policy with this policy number already exists"], "requestId": "dev-abc123", "timestamp": "2025-01-15T10:30:00.000Z"}
Unauthorized (401)
Missing or invalid authentication token. See Authentication.
Idempotency
This endpoint supports idempotency. If you include an idempotency-key header, duplicate requests within 1 hour return the original response without creating a second policy. See Idempotency.
Authorizations
bearerrestricted-access-token
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
idempotency-key
string
UUID to ensure idempotent request processing
Example:
"550e8400-e29b-41d4-a716-446655440000"
x-idempotency-key
string
Alternative UUID header for idempotent request processing
Example:
"550e8400-e29b-41d4-a716-446655440000"
Body
application/json
policyNumber
string
required
Policy number that groups transactions into a single policy
Example:
"POL-2025-001"
riskStateCode
string
required
US state code where the risk is located
Example:
"CA"
currentStatus
enum<string>
Initial lifecycle status. Recomputed from transactions once any are attached; defaults to "bound".
Available options:
bound,
active,
expired,
cancelled,
non renewed
Example:
"bound"
insuredEntityName
string
Name of the insured party
Example:
"Example Corp"
agencyName
string
Agency name as your system holds it. Stored verbatim and used as the primary matching signal when downstreamEntityAssociationId is not supplied. Send both when you have the association id: the id creates the link, this field stays the human-readable label.
Example:
"Premier Insurance Agency"
carrierName
string
Insurance carrier name
Example:
"National Insurance Co"
effectiveDate
string
Policy effective date (ISO 8601)
Example:
"2025-01-15T00:00:00.000Z"
expiryDate
string
Policy expiration date (ISO 8601)
Example:
"2026-01-15T00:00:00.000Z"
premiumAmountInUSD
number
Premium amount in USD
Example:
5000
aggregateCoverageInUSD
number
Aggregate coverage limit in USD
Example:
1000000
coveragePerClaimInUSD
number
Per-claim coverage limit in USD
Example:
500000
lineOfBusiness
string
Line of business
Example:
"Commercial Lines"
licenseNumber
string
License number
Example:
"LIC-001"
npn
string
National Producer Number
Example:
"11223344"
producerName
string
Producing agent name
Example:
"Jon Doe"
producerCode
string
Producer identifier code
Example:
"PROD-001"
productName
string
Product name as your system holds it. Stored verbatim and used as a matching signal against your product catalogue when productId is not supplied.
Example:
"General Liability"
productCode
string
Product code
Example:
"GL-100"
filingNumber
string
Filing number
Example:
"FIL-2025-001"
slaNumber
string
SLA number
Example:
"SLA-2025-001"
externalBillingId
string
External billing identifier
Example:
"BILL-2025-001"
agencyNpn
string
Agency National Producer Number
Example:
"12345678"
agencyFein
string
Agency Federal Employer Identification Number
Example:
"12-3456789"
agencyLicenseNumber
string
Agency state license number
Example:
"ABC-123456"
agencyLicensedStateCode
string
State where the agency license was issued
Example:
"CA"
agentName
string
Individual agent name
Example:
"John Smith"
agentNpn
string
Agent National Producer Number
Example:
"87654321"
agentLicenseNumber
string
Agent state license number
Example:
"LIC-789012"
agentLicensedState
string
State where the agent license was issued
Example:
"TX"
productId
string
Product association. Stamps productMatchStatus = "user confirmed" when supplied.
Example:
"6650a1b2c3d4e5f6a7b8c9d0"
downstreamEntityAssociationId
string
Agency association - the downstreamEntityAssociationId from GET /downstream-entity-associations. Resolved to upstreamDownstreamAssociationId + downstreamEntityId; stamps entityMatchStatus = "user confirmed".
Example:
"6650a1b2c3d4e5f6a7b8c9d0"
createInitialTransaction
boolean
When true, atomically create the policy first transaction alongside the policy. The initial transaction is inferred as type "new", dated effectiveDate (or today when absent), and inherits the policy descriptive and confirmed-agency fields. transactionCount becomes 1 and currentStatus is derived from that transaction. Defaults to false.
Example:
true
Response
Policy created
data
object
required
Show child attributes
requestId
string
required
Unique request identifier
Example:
"dev-2c5e7cf2-9acf-4c8c-ab2f-b81f39d775a8"
timestamp
string
required
Response timestamp
Example:
"2025-11-12T20:49:03.293Z"
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Turris Public API","description":"API documentation for the Turris Public API - programmatic access to compliance data for carrier and agency customers.","colors":{"primary":"#006cff","light":"#3389ff","dark":"#0a58c2"},"favicon":"https://mintcdn.com/turris/IfRLPQPmyFYwsFZX/favicon.png?fit=max\u0026auto=format\u0026n=IfRLPQPmyFYwsFZX\u0026q=85\u0026s=21d205b6e3e2b8abe477c8c7aed40817","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python"],"prefill":true}},"navbar":{"links":[{"href":"mailto:support@turrisfi.com","label":"Support"}],"primary":{"type":"button","label":"Web App (Live)","href":"https://www.app.live.turrisfi.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/turrisfi"},"links":[{"header":"Resources","items":[{"label":"Website","href":"https://www.turrisfi.com"},{"label":"Web App (Live)","href":"https://www.app.live.turrisfi.com"},{"label":"Web App (Sandbox)","href":"https://www.app.sandbox.turrisfi.com"},{"label":"Support Articles","href":"https://help.turrisfi.com"}]}]},"contextual":{"options":["mcp","cursor","vscode","copy","claude","chatgpt"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"turris","hasAudioNarration":false,"actualSubdomain":"turris","customDomains":["docs.turrisfi.com"],"gitSource":{"type":"github","owner":"turrisfi","repo":"compliance","deployBranch":"prod","contentDirectory":"apps/public-api/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af746a0116b25a832ec7361","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"default","tag":"Carrier \u0026 MGA API","count":146},{"language":"default","tag":"Agency API","count":56},{"language":"default","tag":"Surplus Lines","count":24},{"language":"default","tag":"Webhooks","count":23},{"language":"default","tag":"Webhook Events","count":18},{"language":"default","tag":"Policy Ingestion","count":14},{"language":"default","tag":"Agencies You Appoint","count":13},{"language":"default","tag":"Licenses","count":13},{"language":"default","tag":"Documentation","count":13},{"language":"default","tag":"Filings","count":12}],"searchSettings":{"isFiltersEnabled":true,"showContentSnippets":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@turrisfi.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"698de0cb27f1502f3265ea3b","deploymentId":"697d034dc7078c59853e519b","questionText":"How can I get my agencies' and agents' compliance status?","status":"active","generatedBy":"manual","createdAt":"2026-02-12T14:16:43.973Z","updatedAt":"2026-02-12T14:16:43.973Z","__v":0},{"_id":"698de0b027f1502f3265ea0c","deploymentId":"697d034dc7078c59853e519b","questionText":"How can I retrieve all my agencies and agents?","status":"active","generatedBy":"manual","createdAt":"2026-02-12T14:16:16.437Z","updatedAt":"2026-02-12T14:16:16.437Z","__v":0},{"_id":"698de08d27f1502f3265e9c4","deploymentId":"697d034dc7078c59853e519b","questionText":"How do I get authenticated?","status":"active","generatedBy":"manual","createdAt":"2026-02-12T14:15:41.708Z","updatedAt":"2026-02-12T14:15:41.708Z","__v":0}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/v2/policies/create-policy","slug":"/api-reference/v2/policies/create-policy","pageMetadata":{"title":"Create Policy","description":"Create a single policy declaratively","openapi":"openapi/v2.json POST /v2/upstream/policies","href":"/api-reference/v2/policies/create-policy"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a single policy declaratively\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a single policy without a file upload. Only `,_jsx(_components.code,{children:`policyNumber`}),` and `,_jsx(_components.code,{children:`riskStateCode`}),` are required. Everything else is optional and can be added later with `,_jsx(_components.a,{href:`/api-reference/v2/policies/update-policy`,children:`Update Policy`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A policy record in Turris represents bound business. The available `,_jsx(_components.code,{children:`currentStatus`}),` values (`,_jsx(_components.code,{children:`bound`}),`, `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`expired`}),`, `,_jsx(_components.code,{children:`cancelled`}),`, `,_jsx(_components.code,{children:`non renewed`}),`) are all lifecycle states after binding, so there is no quote or pre-bind state. `,_jsx(_components.code,{children:`policyNumber`}),` is required because it is the grouping key that ties transactions together, not because Turris re-checks that the policy is bound.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`descriptive-fields-and-association-ids`,children:`Descriptive fields and association ids`}),`\n`,_jsxs(_components.p,{children:[`Most fields on this endpoint are `,_jsx(_components.strong,{children:`descriptive`}),`: the raw values your system already holds, stored verbatim on the policy record. Two fields are different. `,_jsx(_components.code,{children:`downstreamEntityAssociationId`}),` and `,_jsx(_components.code,{children:`productId`}),` are `,_jsx(_components.strong,{children:`association ids`}),`, meaning Turris record ids that create a hard link between the policy and an entity you already have in Turris.`]}),`\n`,_jsx(_components.p,{children:`The distinction matters because compliance work runs on the links, not on the strings. Turris can only check whether an agency was licensed and appointed in the risk state on the effective date once the policy is linked to a specific downstream entity association. An agency name on its own is text.`}),`\n`,_jsx(_components.p,{children:`You can supply either kind, or both. They do different jobs.`}),`\n`,_jsx(Heading,{level:`3`,id:`identifying-the-agency`,children:`Identifying the agency`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Kind`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`downstreamEntityAssociationId`})}),_jsx(_components.td,{children:`Association id`}),_jsxs(_components.td,{children:[`Links the policy directly to that agency and stamps `,_jsx(_components.code,{children:`entityMatchStatus`}),` = `,_jsx(_components.code,{children:`user confirmed`}),`. No matching runs, and a later matching pass leaves confirmed policies alone unless an operator explicitly resets them.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agencyName`})}),_jsx(_components.td,{children:`Descriptive`}),_jsx(_components.td,{children:`Stored on the record, shown in the Turris UI, used by name filters, and the primary matcher signal when no association id was supplied`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`agencyNpn`}),`, `,_jsx(_components.code,{children:`agencyFein`}),`, `,_jsx(_components.code,{children:`agencyLicenseNumber`}),` + `,_jsx(_components.code,{children:`agencyLicensedStateCode`}),`, `,_jsx(_components.code,{children:`producerCode`}),`, `,_jsx(_components.code,{children:`npn`})]}),_jsx(_components.td,{children:`Descriptive`}),_jsx(_components.td,{children:`Additional matcher signals, each stronger than the name alone`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Get the `,_jsx(_components.code,{children:`downstreamEntityAssociationId`}),` from `,_jsx(_components.a,{href:`/api-reference/v2/downstream-entity-associations/list-associations`,children:`List Associations`}),`. It resolves internally to the downstream entity and the upstream/downstream association pair.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Send the id when you have it.`}),` It is exact, immediate, and immune to spelling drift. If your system stores a Turris association id against each agency, send it on every create.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Send the descriptive fields when you do not.`}),` A policy created without an association id is stored with `,_jsx(_components.code,{children:`entityMatchStatus`}),` = `,_jsx(_components.code,{children:`unmatched`}),`, and a later matching run resolves it against your downstream entity roster in this order:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`A previously confirmed mapping for that normalized agency name`}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`producerCode`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`agencyNpn`}),`, then the generic `,_jsx(_components.code,{children:`npn`})]}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`agencyFein`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`agencyLicenseNumber`}),` combined with `,_jsx(_components.code,{children:`agencyLicensedStateCode`})]}),`\n`,_jsx(_components.li,{children:`Exact agency name against legal name or DBA`}),`\n`,_jsx(_components.li,{children:`Normalized agency name, ignoring suffixes such as Inc, LLC, Ltd, Corp`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Anything the deterministic layers cannot settle goes to AI matching against your agency roster. Anything still unresolved is flagged for manual review in the Turris app.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Send both when you can.`}),` They do not conflict. The association id governs the link; the descriptive fields are still stored, and they are what a reviewer reads on the policy, what name-based filters query, and what the matcher falls back to if the association is ever cleared. Sending the name alongside the id costs nothing and makes the record legible.`]}),`\n`,_jsx(Heading,{level:`3`,id:`identifying-the-product`,children:`Identifying the product`}),`\n`,_jsx(_components.p,{children:`The same split applies.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Kind`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`productId`})}),_jsx(_components.td,{children:`Association id`}),_jsxs(_components.td,{children:[`Links the product and stamps `,_jsx(_components.code,{children:`productMatchStatus`}),` = `,_jsx(_components.code,{children:`user confirmed`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`productName`}),`, `,_jsx(_components.code,{children:`productCode`})]}),_jsx(_components.td,{children:`Descriptive`}),_jsx(_components.td,{children:`Stored on the record, and the signals AI product matching uses against your product catalogue`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Get `,_jsx(_components.code,{children:`productId`}),` from `,_jsx(_components.a,{href:`/api-reference/v2/products/list-products`,children:`List Products`}),`. If your upstream entity has exactly one product, matching assigns it automatically after the agency match and no product matching is needed.`]}),`\n`,_jsx(Heading,{level:`3`,id:`carrier-and-agent-fields`,children:`Carrier and agent fields`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`carrierName`}),`, `,_jsx(_components.code,{children:`agentName`}),`, `,_jsx(_components.code,{children:`agentNpn`}),`, `,_jsx(_components.code,{children:`agentLicenseNumber`}),`, `,_jsx(_components.code,{children:`agentLicensedState`}),`, `,_jsx(_components.code,{children:`producerName`}),`, `,_jsx(_components.code,{children:`lineOfBusiness`}),`, `,_jsx(_components.code,{children:`insuredEntityName`}),`, `,_jsx(_components.code,{children:`filingNumber`}),`, `,_jsx(_components.code,{children:`slaNumber`}),` and `,_jsx(_components.code,{children:`externalBillingId`}),` are all descriptive. There is no carrier association id on this endpoint. Agent fields feed agent matching during a matching run but are never required at create time.`]}),`\n`,_jsx(Heading,{level:`2`,id:`creating-a-policy-before-you-have-every-detail`,children:`Creating a policy before you have every detail`}),`\n`,_jsx(_components.p,{children:`No descriptive field is required, so a partial create is a supported flow rather than a workaround. A common pattern is to create the policy as soon as the policy number and risk state are known, then PATCH in premium, coverage limits, product and agency details as they land.`}),`\n`,_jsxs(_components.p,{children:[`Get `,_jsx(_components.code,{children:`policyNumber`}),` and `,_jsx(_components.code,{children:`riskStateCode`}),` right at create time. They are the two required fields, and they are also the two `,_jsx(_components.a,{href:`/api-reference/v2/policies/update-policy`,children:`Update Policy`}),` does not accept, so neither can be changed afterwards. `,_jsx(_components.code,{children:`createInitialTransaction`}),` is likewise create-only; attach later transactions with `,_jsx(_components.a,{href:`/api-reference/v2/policy-transactions/create-transaction`,children:`Create Transaction`}),` instead.`]}),`\n`,_jsxs(_components.p,{children:[`Every other field on this endpoint can be set later through PATCH, and passing `,_jsx(_components.code,{children:`null`}),` for an association id clears it and resets that match status to `,_jsx(_components.code,{children:`unmatched`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Creating a policy through this endpoint does not by itself queue a matching run. Policies created with `,_jsx(_components.code,{children:`entityMatchStatus`}),` = `,_jsx(_components.code,{children:`unmatched`}),` stay unmatched until matching is started from the Turris app, or until you attach the association explicitly with `,_jsx(_components.a,{href:`/api-reference/v2/policies/update-policy`,children:`Update Policy`}),`. If your integration cannot supply `,_jsx(_components.code,{children:`downstreamEntityAssociationId`}),`, expect an operator to run matching on the unmatched queue.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`currentStatus`}),` defaults to `,_jsx(_components.code,{children:`bound`}),` and is recomputed from transactions once any are attached. See `,_jsx(_components.a,{href:`/api-reference/v2/policy-transactions/create-transaction`,children:`Create Transaction`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`creating-the-initial-transaction`,children:`Creating the initial transaction`}),`\n`,_jsxs(_components.p,{children:[`By default the policy is created transaction-less (`,_jsx(_components.code,{children:`transactionCount`}),` = 0). Set `,_jsx(_components.code,{children:`createInitialTransaction`}),` to `,_jsx(_components.code,{children:`true`}),` to atomically create the policy’s first transaction alongside it in one operation. The transaction is inferred, not supplied:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Inferred value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`policyTransactionType`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`new`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`policyTransactionDate`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`effectiveDate`}),` when supplied, otherwise today`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`descriptive fields`}),_jsx(_components.td,{children:`inherited from the policy body`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`agency match`}),_jsxs(_components.td,{children:[`mirrors the policy’s confirmed agency when present, otherwise `,_jsx(_components.code,{children:`unmatched`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`agents`}),_jsx(_components.td,{children:`none`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`When the flag is `,_jsx(_components.code,{children:`true`}),`, `,_jsx(_components.code,{children:`transactionCount`}),` becomes 1, `,_jsx(_components.code,{children:`latestTransactionId`}),` points at the new transaction, and `,_jsx(_components.code,{children:`currentStatus`}),` is derived from that transaction rather than the request body. Both writes commit together; either one failing rolls back the whole request. Defaults to `,_jsx(_components.code,{children:`false`}),` when omitted, leaving the create behavior unchanged.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response-shape`,children:`Response Shape`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`All successful responses are wrapped in the standard response envelope. See `,_jsx(_components.a,{href:`/guides/request-response`,children:`Request/Response Conventions`}),`.`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`201`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6650a1b2c3d4e5f6a7b8c9d0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"policyNumber\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POL-2025-001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currentStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bound\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"riskStateCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CA\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"entityMatchStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unmatched\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productMatchStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unmatched\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"matchedDownstreamEntities\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transactionCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-15T10:30:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-15T10:30:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-15T10:30:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`error-scenarios`,children:`Error Scenarios`}),`\n`,_jsx(Heading,{level:`3`,id:`bad-request-400`,children:`Bad Request (400)`}),`\n`,_jsxs(_components.p,{children:[`Returned when the body fails validation (missing `,_jsx(_components.code,{children:`policyNumber`}),` or `,_jsx(_components.code,{children:`riskStateCode`}),`, invalid enum value, or malformed association id).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"validation_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorMessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"riskStateCode should not be empty\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dev-abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-15T10:30:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`association-not-found-404`,children:`Association Not Found (404)`}),`\n`,_jsxs(_components.p,{children:[`Returned when a supplied `,_jsx(_components.code,{children:`productId`}),` or `,_jsx(_components.code,{children:`downstreamEntityAssociationId`}),` does not exist for your upstream entity.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`404`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"not_found\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorMessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Product not found\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dev-abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-15T10:30:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`duplicate-policy-409`,children:`Duplicate Policy (409)`}),`\n`,_jsxs(_components.p,{children:[`Returned when a policy with the same `,_jsx(_components.code,{children:`policyNumber`}),` already exists for your upstream entity.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`409`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"conflict\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorMessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A policy with this policy number already exists\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dev-abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-15T10:30:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`unauthorized-401`,children:`Unauthorized (401)`}),`\n`,_jsxs(_components.p,{children:[`Missing or invalid authentication token. See `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`idempotency`,children:`Idempotency`}),`\n`,_jsxs(_components.p,{children:[`This endpoint supports idempotency. If you include an `,_jsx(_components.code,{children:`idempotency-key`}),` header, duplicate requests within `,_jsx(_components.strong,{children:`1 hour`}),` return the original response without creating a second policy. See `,_jsx(_components.a,{href:`/guides/idempotency`,children:`Idempotency`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Policy","description":"Create a single policy declaratively","openapi":"openapi/v2.json POST /v2/upstream/policies","href":"/api-reference/v2/policies/create-policy"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Descriptive fields and association ids","slug":"descriptive-fields-and-association-ids","depth":2,"children":[{"title":"Identifying the agency","slug":"identifying-the-agency","depth":3,"children":[]},{"title":"Identifying the product","slug":"identifying-the-product","depth":3,"children":[]},{"title":"Carrier and agent fields","slug":"carrier-and-agent-fields","depth":3,"children":[]}]},{"title":"Creating a policy before you have every detail","slug":"creating-a-policy-before-you-have-every-detail","depth":2,"children":[]},{"title":"Creating the initial transaction","slug":"creating-the-initial-transaction","depth":2,"children":[]},{"title":"Response Shape","slug":"response-shape","depth":2,"children":[]},{"title":"Error Scenarios","slug":"error-scenarios","depth":2,"children":[{"title":"Bad Request (400)","slug":"bad-request-400","depth":3,"children":[]},{"title":"Association Not Found (404)","slug":"association-not-found-404","depth":3,"children":[]},{"title":"Duplicate Policy (409)","slug":"duplicate-policy-409","depth":3,"children":[]},{"title":"Unauthorized (401)","slug":"unauthorized-401","depth":3,"children":[]}]},{"title":"Idempotency","slug":"idempotency","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/turris/0c051c093ff073c0/scripts/filter-openapi.js"],"openApiReferenceData":{"operation":{"operationId":"PoliciesV2Controller_createPolicy_v2","parameters":["85653a6f-a32e-4c9c-863e-7aeef54ed633","73052b52-fb96-43d6-a0dc-194b1ddbd026"],"requestBody":"cf055190-cf7e-454a-88e3-314695396247","responses":{"201":"ed3a865e-dea7-4f9c-9bfe-434036300338","400":"74ef723b-1d68-4cbf-8b01-905f77cbd282","401":"de084827-e46a-4965-bf6d-d03b43419b6f","403":"ea43f4d1-ec4d-485e-a5cb-07d1e69d55a0","404":"e50765cd-f404-4564-8b65-67fa1ead6628","409":"89f5488a-5d67-4023-af46-32e35533485f","429":"e70f1c85-6610-4738-92e0-49eecea139ab"},"tags":["upstream/policies"],"method":"post","type":"path","servers":["a33906df-e90b-4f98-81da-a83fb62cf412","42b23b4d-da36-433a-b913-09118b1aa0c5"],"security":["04537f3b-6a17-4501-8e05-0cec15cbdb33","44169bb9-f377-4ba1-b6a8-1bfdfe9c846a"],"path":"/v2/upstream/policies","baseUrlOptions":["https://public.api.live.turrisfi.com","https://public.api.sandbox.turrisfi.com"],"title":"","description":"Create a single policy declaratively","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.policyNumber":"POL-2025-001","body.riskStateCode":"CA","body.currentStatus":"bound","body.insuredEntityName":"Example Corp","body.agencyName":"Premier Insurance Agency","body.carrierName":"National Insurance Co","body.effectiveDate":"2025-01-15T00:00:00.000Z","body.expiryDate":"2026-01-15T00:00:00.000Z","body.premiumAmountInUSD":5000,"body.aggregateCoverageInUSD":1000000,"body.coveragePerClaimInUSD":500000,"body.lineOfBusiness":"Commercial Lines","body.licenseNumber":"LIC-001","body.npn":"11223344","body.producerName":"Jon Doe","body.producerCode":"PROD-001","body.productName":"General Liability","body.productCode":"GL-100","body.filingNumber":"FIL-2025-001","body.slaNumber":"SLA-2025-001","body.externalBillingId":"BILL-2025-001","body.agencyNpn":"12345678","body.agencyFein":"12-3456789","body.agencyLicenseNumber":"ABC-123456","body.agencyLicensedStateCode":"CA","body.agentName":"John Smith","body.agentNpn":"87654321","body.agentLicenseNumber":"LIC-789012","body.agentLicensedState":"TX","body.productId":"6650a1b2c3d4e5f6a7b8c9d0","body.downstreamEntityAssociationId":"6650a1b2c3d4e5f6a7b8c9d0","body.createInitialTransaction":true}]},"dependencies":{"parameters":{"85653a6f-a32e-4c9c-863e-7aeef54ed633":{"name":"idempotency-key","in":"header","description":"UUID to ensure idempotent request processing","required":false,"schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000","isRequired":false,"description":"UUID to ensure idempotent request processing","uniqueKey":"","typeLabel":"string"}},"73052b52-fb96-43d6-a0dc-194b1ddbd026":{"name":"x-idempotency-key","in":"header","description":"Alternative UUID header for idempotent request processing","required":false,"schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000","isRequired":false,"description":"Alternative UUID header for idempotent request processing","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"policyNumber":{"type":"string","description":"Policy number that groups transactions into a single policy","example":"POL-2025-001","isRequired":true,"uniqueKey":"policyNumber","typeLabel":"string"},"riskStateCode":{"type":"string","description":"US state code where the risk is located","example":"CA","isRequired":true,"uniqueKey":"riskStateCode","typeLabel":"string"},"currentStatus":{"type":"string","description":"Initial lifecycle status. Recomputed from transactions once any are attached; defaults to \"bound\".","example":"bound","enum":["bound","active","expired","cancelled","non renewed"],"uniqueKey":"currentStatus","typeLabel":"enum\u003cstring>"},"insuredEntityName":{"type":"string","description":"Name of the insured party","example":"Example Corp","uniqueKey":"insuredEntityName","typeLabel":"string"},"agencyName":{"type":"string","description":"Agency name as your system holds it. Stored verbatim and used as the primary matching signal when downstreamEntityAssociationId is not supplied. Send both when you have the association id: the id creates the link, this field stays the human-readable label.","example":"Premier Insurance Agency","uniqueKey":"agencyName","typeLabel":"string"},"carrierName":{"type":"string","description":"Insurance carrier name","example":"National Insurance Co","uniqueKey":"carrierName","typeLabel":"string"},"effectiveDate":{"type":"string","description":"Policy effective date (ISO 8601)","example":"2025-01-15T00:00:00.000Z","uniqueKey":"effectiveDate","typeLabel":"string"},"expiryDate":{"type":"string","description":"Policy expiration date (ISO 8601)","example":"2026-01-15T00:00:00.000Z","uniqueKey":"expiryDate","typeLabel":"string"},"premiumAmountInUSD":{"type":"number","description":"Premium amount in USD","example":5000,"uniqueKey":"premiumAmountInUSD","typeLabel":"number"},"aggregateCoverageInUSD":{"type":"number","description":"Aggregate coverage limit in USD","example":1000000,"uniqueKey":"aggregateCoverageInUSD","typeLabel":"number"},"coveragePerClaimInUSD":{"type":"number","description":"Per-claim coverage limit in USD","example":500000,"uniqueKey":"coveragePerClaimInUSD","typeLabel":"number"},"lineOfBusiness":{"type":"string","description":"Line of business","example":"Commercial Lines","uniqueKey":"lineOfBusiness","typeLabel":"string"},"licenseNumber":{"type":"string","description":"License number","example":"LIC-001","uniqueKey":"licenseNumber","typeLabel":"string"},"npn":{"type":"string","description":"National Producer Number","example":"11223344","uniqueKey":"npn","typeLabel":"string"},"producerName":{"type":"string","description":"Producing agent name","example":"Jon Doe","uniqueKey":"producerName","typeLabel":"string"},"producerCode":{"type":"string","description":"Producer identifier code","example":"PROD-001","uniqueKey":"producerCode","typeLabel":"string"},"productName":{"type":"string","description":"Product name as your system holds it. Stored verbatim and used as a matching signal against your product catalogue when productId is not supplied.","example":"General Liability","uniqueKey":"productName","typeLabel":"string"},"productCode":{"type":"string","description":"Product code","example":"GL-100","uniqueKey":"productCode","typeLabel":"string"},"filingNumber":{"type":"string","description":"Filing number","example":"FIL-2025-001","uniqueKey":"filingNumber","typeLabel":"string"},"slaNumber":{"type":"string","description":"SLA number","example":"SLA-2025-001","uniqueKey":"slaNumber","typeLabel":"string"},"externalBillingId":{"type":"string","description":"External billing identifier","example":"BILL-2025-001","uniqueKey":"externalBillingId","typeLabel":"string"},"agencyNpn":{"type":"string","description":"Agency National Producer Number","example":"12345678","uniqueKey":"agencyNpn","typeLabel":"string"},"agencyFein":{"type":"string","description":"Agency Federal Employer Identification Number","example":"12-3456789","uniqueKey":"agencyFein","typeLabel":"string"},"agencyLicenseNumber":{"type":"string","description":"Agency state license number","example":"ABC-123456","uniqueKey":"agencyLicenseNumber","typeLabel":"string"},"agencyLicensedStateCode":{"type":"string","description":"State where the agency license was issued","example":"CA","uniqueKey":"agencyLicensedStateCode","typeLabel":"string"},"agentName":{"type":"string","description":"Individual agent name","example":"John Smith","uniqueKey":"agentName","typeLabel":"string"},"agentNpn":{"type":"string","description":"Agent National Producer Number","example":"87654321","uniqueKey":"agentNpn","typeLabel":"string"},"agentLicenseNumber":{"type":"string","description":"Agent state license number","example":"LIC-789012","uniqueKey":"agentLicenseNumber","typeLabel":"string"},"agentLicensedState":{"type":"string","description":"State where the agent license was issued","example":"TX","uniqueKey":"agentLicensedState","typeLabel":"string"},"productId":{"type":"string","description":"Product association. Stamps productMatchStatus = \"user confirmed\" when supplied.","example":"6650a1b2c3d4e5f6a7b8c9d0","uniqueKey":"productId","typeLabel":"string"},"downstreamEntityAssociationId":{"type":"string","description":"Agency association - the downstreamEntityAssociationId from GET /downstream-entity-associations. Resolved to upstreamDownstreamAssociationId + downstreamEntityId; stamps entityMatchStatus = \"user confirmed\".","example":"6650a1b2c3d4e5f6a7b8c9d0","uniqueKey":"downstreamEntityAssociationId","typeLabel":"string"},"createInitialTransaction":{"type":"boolean","description":"When true, atomically create the policy first transaction alongside the policy. The initial transaction is inferred as type \"new\", dated effectiveDate (or today when absent), and inherits the policy descriptive and confirmed-agency fields. transactionCount becomes 1 and currentStatus is derived from that transaction. Defaults to false.","example":true,"uniqueKey":"createInitialTransaction","typeLabel":"boolean"}},"required":["policyNumber","riskStateCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"policyNumber":"POL-2025-001","riskStateCode":"CA","currentStatus":"bound","insuredEntityName":"Example Corp","agencyName":"Premier Insurance Agency","carrierName":"National Insurance Co","effectiveDate":"2025-01-15T00:00:00.000Z","expiryDate":"2026-01-15T00:00:00.000Z","premiumAmountInUSD":5000,"aggregateCoverageInUSD":1000000,"coveragePerClaimInUSD":500000,"lineOfBusiness":"Commercial Lines","licenseNumber":"LIC-001","npn":"11223344","producerName":"Jon Doe","producerCode":"PROD-001","productName":"General Liability","productCode":"GL-100","filingNumber":"FIL-2025-001","slaNumber":"SLA-2025-001","externalBillingId":"BILL-2025-001","agencyNpn":"12345678","agencyFein":"12-3456789","agencyLicenseNumber":"ABC-123456","agencyLicensedStateCode":"CA","agentName":"John Smith","agentNpn":"87654321","agentLicenseNumber":"LIC-789012","agentLicensedState":"TX","productId":"6650a1b2c3d4e5f6a7b8c9d0","downstreamEntityAssociationId":"6650a1b2c3d4e5f6a7b8c9d0","createInitialTransaction":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"ed3a865e-dea7-4f9c-9bfe-434036300338":{"description":"Policy created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"_id":{"type":"string","description":"Unique policy identifier","example":"6650a1b2c3d4e5f6a7b8c9d0","isRequired":true,"uniqueKey":"data._id","typeLabel":"string"},"upstreamEntityId":{"type":"string","description":"Owning upstream entity id","example":"6650a1b2c3d4e5f6a7b8c9d0","isRequired":true,"uniqueKey":"data.upstreamEntityId","typeLabel":"string"},"policyNumber":{"type":"string","description":"Policy number","example":"POL-2025-001","isRequired":true,"uniqueKey":"data.policyNumber","typeLabel":"string"},"currentStatus":{"type":"string","description":"Current lifecycle status","example":"bound","enum":["bound","active","expired","cancelled","non renewed"],"isRequired":true,"uniqueKey":"data.currentStatus","typeLabel":"enum\u003cstring>"},"riskStateCode":{"type":"string","description":"US state code where the risk is located","example":"CA","isRequired":true,"uniqueKey":"data.riskStateCode","typeLabel":"string"},"entityMatchStatus":{"type":"string","description":"Agency/entity matching status","example":"user confirmed","enum":["auto matched","user confirmed","manual review","unmatched"],"isRequired":true,"uniqueKey":"data.entityMatchStatus","typeLabel":"enum\u003cstring>"},"productMatchStatus":{"type":"string","description":"Product matching status","example":"unmatched","enum":["auto matched","user confirmed","needs clarification","unmatched"],"isRequired":true,"uniqueKey":"data.productMatchStatus","typeLabel":"enum\u003cstring>"},"matchedDownstreamEntities":{"description":"Confirmed matched downstream entities","type":"array","items":{"type":"object","properties":{"downstreamEntityId":{"type":"string","description":"Matched downstream entity (agency) id","example":"6650a1b2c3d4e5f6a7b8c9d0","isRequired":true,"uniqueKey":"data.matchedDownstreamEntities.items.[INDEX].downstreamEntityId","typeLabel":"string"},"upstreamDownstreamAssociationId":{"type":"string","description":"Upstream-downstream association id backing the match","example":"6650a1b2c3d4e5f6a7b8c9d1","isRequired":true,"uniqueKey":"data.matchedDownstreamEntities.items.[INDEX].upstreamDownstreamAssociationId","typeLabel":"string"},"matchSource":{"type":"string","description":"Origin of the match","example":"user","enum":["ai","user"],"isRequired":true,"uniqueKey":"data.matchedDownstreamEntities.items.[INDEX].matchSource","typeLabel":"enum\u003cstring>"},"matchConfidence":{"type":"number","description":"Match confidence (0-1)","example":1,"uniqueKey":"data.matchedDownstreamEntities.items.[INDEX].matchConfidence","typeLabel":"number"},"matchedAt":{"type":"string","description":"ISO 8601 timestamp when the match was recorded","example":"2025-01-15T10:30:00.000Z","uniqueKey":"data.matchedDownstreamEntities.items.[INDEX].matchedAt","typeLabel":"string"}},"required":["downstreamEntityId","upstreamDownstreamAssociationId","matchSource"],"uniqueKey":"data.matchedDownstreamEntities.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.matchedDownstreamEntities","typeLabel":"object[]"},"transactionCount":{"type":"number","description":"Number of transactions linked to this policy","example":3,"isRequired":true,"uniqueKey":"data.transactionCount","typeLabel":"number"},"columnMappingId":{"type":"string","description":"Column-mapping sentinel id","example":"6650a1b2c3d4e5f6a7b8c9d0","isRequired":true,"uniqueKey":"data.columnMappingId","typeLabel":"string"},"entityId":{"type":"string","description":"Owner entity id","example":"6650a1b2c3d4e5f6a7b8c9d0","isRequired":true,"uniqueKey":"data.entityId","typeLabel":"string"},"entityModel":{"type":"string","description":"Owner entity model","example":"UpstreamEntity","enum":["UpstreamEntity","DownstreamEntity","EnterpriseUpstreamEntity","EnterpriseDownstreamEntity","Agent","Admin","turris_ops"],"isRequired":true,"uniqueKey":"data.entityModel","typeLabel":"enum\u003cstring>"},"isDeleted":{"type":"boolean","description":"Soft-delete flag","example":false,"isRequired":true,"uniqueKey":"data.isDeleted","typeLabel":"boolean"},"createdAt":{"type":"string","description":"ISO 8601 timestamp when the policy was created","example":"2025-01-15T10:30:00.000Z","isRequired":true,"uniqueKey":"data.createdAt","typeLabel":"string"},"updatedAt":{"type":"string","description":"ISO 8601 timestamp of the last update","example":"2025-01-15T10:31:45.000Z","isRequired":true,"uniqueKey":"data.updatedAt","typeLabel":"string"},"insuredEntityName":{"type":"string","description":"Name of the insured party","example":"Example Corp","uniqueKey":"data.insuredEntityName","typeLabel":"string"},"agencyName":{"type":"string","description":"Agency name","example":"Premier Insurance Agency","uniqueKey":"data.agencyName","typeLabel":"string"},"carrierName":{"type":"string","description":"Insurance carrier name","example":"National Insurance Co","uniqueKey":"data.carrierName","typeLabel":"string"},"effectiveDate":{"type":"string","description":"Policy effective date (ISO 8601)","example":"2025-01-15T00:00:00.000Z","uniqueKey":"data.effectiveDate","typeLabel":"string"},"expiryDate":{"type":"string","description":"Policy expiration date (ISO 8601)","example":"2026-01-15T00:00:00.000Z","uniqueKey":"data.expiryDate","typeLabel":"string"},"premiumAmountInUSD":{"type":"number","description":"Premium amount in USD","example":5000,"uniqueKey":"data.premiumAmountInUSD","typeLabel":"number"},"aggregateCoverageInUSD":{"type":"number","description":"Aggregate coverage limit in USD","example":1000000,"uniqueKey":"data.aggregateCoverageInUSD","typeLabel":"number"},"coveragePerClaimInUSD":{"type":"number","description":"Per-claim coverage limit in USD","example":500000,"uniqueKey":"data.coveragePerClaimInUSD","typeLabel":"number"},"lineOfBusiness":{"type":"string","description":"Line of business","example":"Commercial Lines","uniqueKey":"data.lineOfBusiness","typeLabel":"string"},"licenseNumber":{"type":"string","description":"License number","example":"LIC-001","uniqueKey":"data.licenseNumber","typeLabel":"string"},"npn":{"type":"string","description":"National Producer Number","example":"11223344","uniqueKey":"data.npn","typeLabel":"string"},"producerName":{"type":"string","description":"Producing agent name","example":"Jon Doe","uniqueKey":"data.producerName","typeLabel":"string"},"producerCode":{"type":"string","description":"Producer identifier code","example":"PROD-001","uniqueKey":"data.producerCode","typeLabel":"string"},"productName":{"type":"string","description":"Product name","example":"General Liability","uniqueKey":"data.productName","typeLabel":"string"},"productCode":{"type":"string","description":"Product code","example":"GL-100","uniqueKey":"data.productCode","typeLabel":"string"},"filingNumber":{"type":"string","description":"Filing number","example":"FIL-2025-001","uniqueKey":"data.filingNumber","typeLabel":"string"},"slaNumber":{"type":"string","description":"SLA number","example":"SLA-2025-001","uniqueKey":"data.slaNumber","typeLabel":"string"},"externalBillingId":{"type":"string","description":"External billing identifier","example":"BILL-2025-001","uniqueKey":"data.externalBillingId","typeLabel":"string"},"agencyNpn":{"type":"string","description":"Agency National Producer Number","example":"12345678","uniqueKey":"data.agencyNpn","typeLabel":"string"},"agencyFein":{"type":"string","description":"Agency Federal Employer Identification Number","example":"12-3456789","uniqueKey":"data.agencyFein","typeLabel":"string"},"agencyLicenseNumber":{"type":"string","description":"Agency state license number","example":"ABC-123456","uniqueKey":"data.agencyLicenseNumber","typeLabel":"string"},"agencyLicensedStateCode":{"type":"string","description":"State where the agency license was issued","example":"CA","uniqueKey":"data.agencyLicensedStateCode","typeLabel":"string"},"agentName":{"type":"string","description":"Individual agent name","example":"John Smith","uniqueKey":"data.agentName","typeLabel":"string"},"agentNpn":{"type":"string","description":"Agent National Producer Number","example":"87654321","uniqueKey":"data.agentNpn","typeLabel":"string"},"agentLicenseNumber":{"type":"string","description":"Agent state license number","example":"LIC-789012","uniqueKey":"data.agentLicenseNumber","typeLabel":"string"},"agentLicensedState":{"type":"string","description":"State where the agent license was issued","example":"TX","uniqueKey":"data.agentLicensedState","typeLabel":"string"},"downstreamEntityId":{"type":"string","description":"Resolved matched downstream entity (agency) id","example":"6650a1b2c3d4e5f6a7b8c9d0","uniqueKey":"data.downstreamEntityId","typeLabel":"string"},"upstreamDownstreamAssociationId":{"type":"string","description":"Resolved agency association id","example":"6650a1b2c3d4e5f6a7b8c9d1","uniqueKey":"data.upstreamDownstreamAssociationId","typeLabel":"string"},"entityMatchConfidence":{"type":"number","description":"Entity match confidence (0-1)","example":1,"uniqueKey":"data.entityMatchConfidence","typeLabel":"number"},"productId":{"type":"string","description":"Matched product id","example":"6650a1b2c3d4e5f6a7b8c9d0","uniqueKey":"data.productId","typeLabel":"string"},"productMatchConfidence":{"type":"number","description":"Product match confidence (0-1)","example":1,"uniqueKey":"data.productMatchConfidence","typeLabel":"number"},"latestTransactionId":{"type":"string","description":"Id of the most recent transaction","example":"6650a1b2c3d4e5f6a7b8c9d0","uniqueKey":"data.latestTransactionId","typeLabel":"string"},"uploadSource":{"type":"string","description":"Origin channel of the policy","example":"public api","enum":["upstream entity","enterprise","public api","downstream entity"],"uniqueKey":"data.uploadSource","typeLabel":"enum\u003cstring>"}},"required":["_id","upstreamEntityId","policyNumber","currentStatus","riskStateCode","entityMatchStatus","productMatchStatus","matchedDownstreamEntities","transactionCount","columnMappingId","entityId","entityModel","isDeleted","createdAt","updatedAt"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"requestId":{"type":"string","description":"Unique request identifier","example":"dev-2c5e7cf2-9acf-4c8c-ab2f-b81f39d775a8","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"timestamp":{"type":"string","description":"Response timestamp","example":"2025-11-12T20:49:03.293Z","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"}},"required":["data","requestId","timestamp"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"_id":"6650a1b2c3d4e5f6a7b8c9d0","upstreamEntityId":"6650a1b2c3d4e5f6a7b8c9d0","policyNumber":"POL-2025-001","currentStatus":"bound","riskStateCode":"CA","entityMatchStatus":"user confirmed","productMatchStatus":"unmatched","matchedDownstreamEntities":[{"downstreamEntityId":"6650a1b2c3d4e5f6a7b8c9d0","upstreamDownstreamAssociationId":"6650a1b2c3d4e5f6a7b8c9d1","matchSource":"user","matchConfidence":1,"matchedAt":"2025-01-15T10:30:00.000Z"}],"transactionCount":3,"columnMappingId":"6650a1b2c3d4e5f6a7b8c9d0","entityId":"6650a1b2c3d4e5f6a7b8c9d0","entityModel":"UpstreamEntity","isDeleted":false,"createdAt":"2025-01-15T10:30:00.000Z","updatedAt":"2025-01-15T10:31:45.000Z","insuredEntityName":"Example Corp","agencyName":"Premier Insurance Agency","carrierName":"National Insurance Co","effectiveDate":"2025-01-15T00:00:00.000Z","expiryDate":"2026-01-15T00:00:00.000Z","premiumAmountInUSD":5000,"aggregateCoverageInUSD":1000000,"coveragePerClaimInUSD":500000,"lineOfBusiness":"Commercial Lines","licenseNumber":"LIC-001","npn":"11223344","producerName":"Jon Doe","producerCode":"PROD-001","productName":"General Liability","productCode":"GL-100","filingNumber":"FIL-2025-001","slaNumber":"SLA-2025-001","externalBillingId":"BILL-2025-001","agencyNpn":"12345678","agencyFein":"12-3456789","agencyLicenseNumber":"ABC-123456","agencyLicensedStateCode":"CA","agentName":"John Smith","agentNpn":"87654321","agentLicenseNumber":"LIC-789012","agentLicensedState":"TX","downstreamEntityId":"6650a1b2c3d4e5f6a7b8c9d0","upstreamDownstreamAssociationId":"6650a1b2c3d4e5f6a7b8c9d1","entityMatchConfidence":1,"productId":"6650a1b2c3d4e5f6a7b8c9d0","productMatchConfidence":1,"latestTransactionId":"6650a1b2c3d4e5f6a7b8c9d0","uploadSource":"public api"},"requestId":"dev-2c5e7cf2-9acf-4c8c-ab2f-b81f39d775a8","timestamp":"2025-11-12T20:49:03.293Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"74ef723b-1d68-4cbf-8b01-905f77cbd282":{"description":"Invalid request body","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code","isRequired":true,"uniqueKey":"statusCode","typeLabel":"number"},"requestId":{"type":"string","description":"Unique request identifier for debugging","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"errorType":{"type":"string","description":"Machine-readable error classification. Branch on this rather than on `errorMessage`, which is prose and may change. Authentication failures returned by our identity provider are forwarded verbatim, so a 401 can carry a code outside this list; treat an unrecognised value as a generic failure of its HTTP status.","enum":["conflict","contact_not_authorized","document_exceeds_page_limit","downstream_entity_member_exists","duplicate_external_id_error","duplicate_member_email","duplicate_producer_code_error","forbidden","gateway_timeout","inactive_email","internal_server_error","invalid_email","invalid_email_for_invites","invalid_organization_category","invalid_organization_slug","invalid_phone_number","invalid_token","invite_limit_reached","jwt_invalid","m2m_client_not_found","not_found","organization_already_exists","organization_slug_already_used","payment_required","producer_agreement_required","product_feature_subscription_required","service_unavailable","session_authorization_error","some_custom_error_string","throttled","too_many_requests","unauthorized","unauthorized_client","unexpected_400_stytch_error","unexpected_403_stytch_error","unexpected_404_stytch_error","unexpected_error","unexpected_stytch_error","unprocessable_entity","validation_error"],"example":"validation_error","isRequired":true,"uniqueKey":"errorType","typeLabel":"enum\u003cstring>"},"errorMessage":{"description":"Array of error messages","type":"array","items":{"type":"string","uniqueKey":"errorMessage.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"errorMessage","typeLabel":"string[]"},"timestamp":{"type":"string","description":"ISO timestamp when the error occurred","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional error context","uniqueKey":"details","typeLabel":"object"}},"required":["statusCode","requestId","errorType","errorMessage","timestamp"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"requestId":"\u003cstring>","errorType":"validation_error","errorMessage":["\u003cstring>"],"timestamp":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"de084827-e46a-4965-bf6d-d03b43419b6f":{"description":"Invalid or missing auth token","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code","isRequired":true,"uniqueKey":"statusCode","typeLabel":"number"},"requestId":{"type":"string","description":"Unique request identifier for debugging","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"errorType":{"type":"string","description":"Machine-readable error classification. Branch on this rather than on `errorMessage`, which is prose and may change. Authentication failures returned by our identity provider are forwarded verbatim, so a 401 can carry a code outside this list; treat an unrecognised value as a generic failure of its HTTP status.","enum":["conflict","contact_not_authorized","document_exceeds_page_limit","downstream_entity_member_exists","duplicate_external_id_error","duplicate_member_email","duplicate_producer_code_error","forbidden","gateway_timeout","inactive_email","internal_server_error","invalid_email","invalid_email_for_invites","invalid_organization_category","invalid_organization_slug","invalid_phone_number","invalid_token","invite_limit_reached","jwt_invalid","m2m_client_not_found","not_found","organization_already_exists","organization_slug_already_used","payment_required","producer_agreement_required","product_feature_subscription_required","service_unavailable","session_authorization_error","some_custom_error_string","throttled","too_many_requests","unauthorized","unauthorized_client","unexpected_400_stytch_error","unexpected_403_stytch_error","unexpected_404_stytch_error","unexpected_error","unexpected_stytch_error","unprocessable_entity","validation_error"],"example":"validation_error","isRequired":true,"uniqueKey":"errorType","typeLabel":"enum\u003cstring>"},"errorMessage":{"description":"Array of error messages","type":"array","items":{"type":"string","uniqueKey":"errorMessage.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"errorMessage","typeLabel":"string[]"},"timestamp":{"type":"string","description":"ISO timestamp when the error occurred","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional error context","uniqueKey":"details","typeLabel":"object"}},"required":["statusCode","requestId","errorType","errorMessage","timestamp"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"requestId":"\u003cstring>","errorType":"validation_error","errorMessage":["\u003cstring>"],"timestamp":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"ea43f4d1-ec4d-485e-a5cb-07d1e69d55a0":{"description":"Returned with `errorType` `invalid_organization_category` when your credential's organization category does not match the one this endpoint serves; `details` names the expected and actual category. This endpoint can return 403 for other reasons too, so branch on `errorType`; the Error Handling guide lists them.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code","isRequired":true,"uniqueKey":"statusCode","typeLabel":"number"},"requestId":{"type":"string","description":"Unique request identifier for debugging","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"errorType":{"type":"string","description":"Machine-readable error classification. Branch on this rather than on `errorMessage`, which is prose and may change. Authentication failures returned by our identity provider are forwarded verbatim, so a 401 can carry a code outside this list; treat an unrecognised value as a generic failure of its HTTP status.","enum":["conflict","contact_not_authorized","document_exceeds_page_limit","downstream_entity_member_exists","duplicate_external_id_error","duplicate_member_email","duplicate_producer_code_error","forbidden","gateway_timeout","inactive_email","internal_server_error","invalid_email","invalid_email_for_invites","invalid_organization_category","invalid_organization_slug","invalid_phone_number","invalid_token","invite_limit_reached","jwt_invalid","m2m_client_not_found","not_found","organization_already_exists","organization_slug_already_used","payment_required","producer_agreement_required","product_feature_subscription_required","service_unavailable","session_authorization_error","some_custom_error_string","throttled","too_many_requests","unauthorized","unauthorized_client","unexpected_400_stytch_error","unexpected_403_stytch_error","unexpected_404_stytch_error","unexpected_error","unexpected_stytch_error","unprocessable_entity","validation_error"],"example":"validation_error","isRequired":true,"uniqueKey":"errorType","typeLabel":"enum\u003cstring>"},"errorMessage":{"description":"Array of error messages","type":"array","items":{"type":"string","uniqueKey":"errorMessage.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"errorMessage","typeLabel":"string[]"},"timestamp":{"type":"string","description":"ISO timestamp when the error occurred","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional error context","uniqueKey":"details","typeLabel":"object"}},"required":["statusCode","requestId","errorType","errorMessage","timestamp"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"requestId":"\u003cstring>","errorType":"validation_error","errorMessage":["\u003cstring>"],"timestamp":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"e50765cd-f404-4564-8b65-67fa1ead6628":{"description":"Supplied product or agency association not found","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code","isRequired":true,"uniqueKey":"statusCode","typeLabel":"number"},"requestId":{"type":"string","description":"Unique request identifier for debugging","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"errorType":{"type":"string","description":"Machine-readable error classification. Branch on this rather than on `errorMessage`, which is prose and may change. Authentication failures returned by our identity provider are forwarded verbatim, so a 401 can carry a code outside this list; treat an unrecognised value as a generic failure of its HTTP status.","enum":["conflict","contact_not_authorized","document_exceeds_page_limit","downstream_entity_member_exists","duplicate_external_id_error","duplicate_member_email","duplicate_producer_code_error","forbidden","gateway_timeout","inactive_email","internal_server_error","invalid_email","invalid_email_for_invites","invalid_organization_category","invalid_organization_slug","invalid_phone_number","invalid_token","invite_limit_reached","jwt_invalid","m2m_client_not_found","not_found","organization_already_exists","organization_slug_already_used","payment_required","producer_agreement_required","product_feature_subscription_required","service_unavailable","session_authorization_error","some_custom_error_string","throttled","too_many_requests","unauthorized","unauthorized_client","unexpected_400_stytch_error","unexpected_403_stytch_error","unexpected_404_stytch_error","unexpected_error","unexpected_stytch_error","unprocessable_entity","validation_error"],"example":"validation_error","isRequired":true,"uniqueKey":"errorType","typeLabel":"enum\u003cstring>"},"errorMessage":{"description":"Array of error messages","type":"array","items":{"type":"string","uniqueKey":"errorMessage.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"errorMessage","typeLabel":"string[]"},"timestamp":{"type":"string","description":"ISO timestamp when the error occurred","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional error context","uniqueKey":"details","typeLabel":"object"}},"required":["statusCode","requestId","errorType","errorMessage","timestamp"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"requestId":"\u003cstring>","errorType":"validation_error","errorMessage":["\u003cstring>"],"timestamp":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"89f5488a-5d67-4023-af46-32e35533485f":{"description":"A policy with this policy number already exists","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code","isRequired":true,"uniqueKey":"statusCode","typeLabel":"number"},"requestId":{"type":"string","description":"Unique request identifier for debugging","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"errorType":{"type":"string","description":"Machine-readable error classification. Branch on this rather than on `errorMessage`, which is prose and may change. Authentication failures returned by our identity provider are forwarded verbatim, so a 401 can carry a code outside this list; treat an unrecognised value as a generic failure of its HTTP status.","enum":["conflict","contact_not_authorized","document_exceeds_page_limit","downstream_entity_member_exists","duplicate_external_id_error","duplicate_member_email","duplicate_producer_code_error","forbidden","gateway_timeout","inactive_email","internal_server_error","invalid_email","invalid_email_for_invites","invalid_organization_category","invalid_organization_slug","invalid_phone_number","invalid_token","invite_limit_reached","jwt_invalid","m2m_client_not_found","not_found","organization_already_exists","organization_slug_already_used","payment_required","producer_agreement_required","product_feature_subscription_required","service_unavailable","session_authorization_error","some_custom_error_string","throttled","too_many_requests","unauthorized","unauthorized_client","unexpected_400_stytch_error","unexpected_403_stytch_error","unexpected_404_stytch_error","unexpected_error","unexpected_stytch_error","unprocessable_entity","validation_error"],"example":"validation_error","isRequired":true,"uniqueKey":"errorType","typeLabel":"enum\u003cstring>"},"errorMessage":{"description":"Array of error messages","type":"array","items":{"type":"string","uniqueKey":"errorMessage.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"errorMessage","typeLabel":"string[]"},"timestamp":{"type":"string","description":"ISO timestamp when the error occurred","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional error context","uniqueKey":"details","typeLabel":"object"}},"required":["statusCode","requestId","errorType","errorMessage","timestamp"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"requestId":"\u003cstring>","errorType":"validation_error","errorMessage":["\u003cstring>"],"timestamp":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"e70f1c85-6610-4738-92e0-49eecea139ab":{"description":"Too many requests: this credential passed the API-wide limit of 1000 requests per 10 seconds, counted across every endpoint. The request was not processed. Wait the number of seconds in the Retry-After header, then retry.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when a rate limit refused the request.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code","isRequired":true,"uniqueKey":"statusCode","typeLabel":"number"},"requestId":{"type":"string","description":"Unique request identifier for debugging","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"errorType":{"type":"string","description":"Machine-readable error classification. Branch on this rather than on `errorMessage`, which is prose and may change. Authentication failures returned by our identity provider are forwarded verbatim, so a 401 can carry a code outside this list; treat an unrecognised value as a generic failure of its HTTP status.","enum":["conflict","contact_not_authorized","document_exceeds_page_limit","downstream_entity_member_exists","duplicate_external_id_error","duplicate_member_email","duplicate_producer_code_error","forbidden","gateway_timeout","inactive_email","internal_server_error","invalid_email","invalid_email_for_invites","invalid_organization_category","invalid_organization_slug","invalid_phone_number","invalid_token","invite_limit_reached","jwt_invalid","m2m_client_not_found","not_found","organization_already_exists","organization_slug_already_used","payment_required","producer_agreement_required","product_feature_subscription_required","service_unavailable","session_authorization_error","some_custom_error_string","throttled","too_many_requests","unauthorized","unauthorized_client","unexpected_400_stytch_error","unexpected_403_stytch_error","unexpected_404_stytch_error","unexpected_error","unexpected_stytch_error","unprocessable_entity","validation_error"],"example":"validation_error","isRequired":true,"uniqueKey":"errorType","typeLabel":"enum\u003cstring>"},"errorMessage":{"description":"Array of error messages","type":"array","items":{"type":"string","uniqueKey":"errorMessage.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"errorMessage","typeLabel":"string[]"},"timestamp":{"type":"string","description":"ISO timestamp when the error occurred","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional error context","uniqueKey":"details","typeLabel":"object"}},"required":["statusCode","requestId","errorType","errorMessage","timestamp"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"requestId":"\u003cstring>","errorType":"validation_error","errorMessage":["\u003cstring>"],"timestamp":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"04537f3b-6a17-4501-8e05-0cec15cbdb33":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","scopes":[],"schemeName":"bearer"}},"44169bb9-f377-4ba1-b6a8-1bfdfe9c846a":{"restricted-access-token":{"type":"apiKey","in":"header","name":"x-restricted-access-token","description":"Alternative authentication: Restricted access token (if not using Bearer token)","scopes":[],"schemeName":"restricted-access-token"}}},"servers":{"a33906df-e90b-4f98-81da-a83fb62cf412":{"url":"https://public.api.live.turrisfi.com","description":"Production"},"42b23b4d-da36-433a-b913-09118b1aa0c5":{"url":"https://public.api.sandbox.turrisfi.com","description":"Sandbox"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","bearerFormat":"JWT","type":"http","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-restricted-access-token","description":"Alternative authentication: Restricted access token (if not using Bearer token)","scopes":[],"schemeName":"restricted-access-token"},"schema":{"title":"x-restricted-access-token","type":"string","description":"Alternative authentication: Restricted access token (if not using Bearer token)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"restricted-access-token","name":"x-restricted-access-token"}],"title":"restricted-access-token"}]},"originalFileLocation":"openapi/v2.json"},"subdomain":"turris","siteName":"Turris Public API","title":"Create Policy - Turris Public API","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{"v2":{"href":"/api-reference/v2/policies/create-policy","matchLevel":0},"v1":{"href":"/api-reference/v1/policies/create-policy","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T22:37:41.373Z","originalFileLocation":"api-reference/v2/policies/create-policy.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a single policy declaratively\">\u003cmeta data-mint-head name=\"application-name\" content=\"Turris Public API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Policy - Turris Public API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a single policy declaratively\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Turris Public API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://turris.mintlify.site/_mintlify/api/og/v2?division=Policy+Ingestion\u0026amp;title=Create+Policy\u0026amp;description=Create+a+single+policy+declaratively\u0026amp;theme=c46ece167b2fe61e15f5803d\u0026amp;signature=6b2683450bd357ddcd7d367a3ce09f04532d06b0e62c92421ec104f736be902d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Policy - Turris Public API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a single policy declaratively\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://turris.mintlify.site/_mintlify/api/og/v2?division=Policy+Ingestion\u0026amp;title=Create+Policy\u0026amp;description=Create+a+single+policy+declaratively\u0026amp;theme=c46ece167b2fe61e15f5803d\u0026amp;signature=6b2683450bd357ddcd7d367a3ce09f04532d06b0e62c92421ec104f736be902d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/turris/UYm7mYboWneVSCYG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Turris Public API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006cff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v2/policies/create-policy.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.turrisfi.com/#organization\",\"name\":\"Turris Public API\",\"url\":\"https://docs.turrisfi.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.turrisfi.com#website\",\"name\":\"Turris Public API\",\"url\":\"https://docs.turrisfi.com\",\"publisher\":{\"@id\":\"https://docs.turrisfi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy#webpage\",\"url\":\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy\",\"name\":\"Create Policy\",\"description\":\"Create a single policy declaratively\",\"dateModified\":\"2026-11-12T22:37:41.373Z\",\"isPartOf\":{\"@id\":\"https://docs.turrisfi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Policy Ingestion\",\"item\":\"https://docs.turrisfi.com/api-reference/v2/policies/list-policies\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Policy\",\"item\":\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy#apireference\",\"headline\":\"Create Policy\",\"name\":\"Create Policy\",\"description\":\"Create a single policy declaratively\",\"url\":\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy\",\"mainEntityOfPage\":{\"@id\":\"https://docs.turrisfi.com/api-reference/v2/policies/create-policy#webpage\"},\"dateModified\":\"2026-11-12T22:37:41.373Z\",\"publisher\":{\"@id\":\"https://docs.turrisfi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.turrisfi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Turris Public API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Turris Public API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v2/policies/create-policy.md","siteName":"Turris Public API","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Carrier \u0026 MGA API","icon":"building-columns","versions":[{"version":"v2","default":true,"groups":[{"group":"Start Here","icon":"rocket","pages":[{"title":"The Carrier \u0026 MGA API","icon":"building-columns","href":"/guides/carrier-api"},{"title":"Getting Started for Carriers \u0026 MGAs","sidebarTitle":"Getting Started","href":"/guides/getting-started"},{"title":"Entity \u0026 Resource Definitions","href":"/guides/entity-definitions"},{"title":"Migrating from v1 to v2","href":"/guides/migration-v1-to-v2"}]},{"group":"Shared Endpoints","icon":"key","pages":[{"title":"Health Check","openapi":"openapi/v2.json GET /v2/heartbeat","href":"/api-reference/v2/heartbeat/health-check"},{"title":"Get OAuth Token","openapi":"openapi/v2.json POST /v2/auth/jwt","href":"/api-reference/v2/authentication/get-oauth-token"},{"title":"Test OAuth","openapi":"openapi/v2.json GET /v2/auth/test-oauth","href":"/api-reference/v2/authentication/test-oauth"},{"title":"Test Restricted Access Token","openapi":"openapi/v2.json GET /v2/auth/test-restricted-access-token","href":"/api-reference/v2/authentication/test-restricted-access-token"}]},{"group":"Products","icon":"box","pages":[{"title":"List Products","openapi":"openapi/v2.json GET /v2/upstream/products","href":"/api-reference/v2/products/list-products"},{"title":"Get Product","openapi":"openapi/v2.json GET /v2/upstream/products/{productId}","href":"/api-reference/v2/products/get-product"}]},{"group":"Carriers","icon":"list-check","pages":[{"title":"List Carriers","openapi":"openapi/v2.json GET /v2/upstream/carriers","href":"/api-reference/v2/carriers/list-carriers"}]},{"group":"Agencies You Appoint","icon":"building","pages":[{"title":"List Associations","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations","href":"/api-reference/v2/downstream-entity-associations/list-associations"},{"title":"Get Association","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations/{downstreamEntityAssociationId}","href":"/api-reference/v2/downstream-entity-associations/get-association"},{"title":"Update Association","openapi":"openapi/v2.json PATCH /v2/upstream/downstream-entity-associations/{downstreamEntityAssociationId}","href":"/api-reference/v2/downstream-entity-associations/update-association"},{"title":"Get Sign-In URL","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations/{downstreamEntityAssociationId}/sign-in-url","href":"/api-reference/v2/downstream-entity-associations/get-sign-in-url"},{"title":"Invite Downstream Entity","openapi":"openapi/v2.json POST /v2/upstream/downstream-entity-associations/invite","href":"/api-reference/v2/downstream-entity-associations/invite"},{"title":"Add Downstream Entity","openapi":"openapi/v2.json POST /v2/upstream/downstream-entity-associations/add","href":"/api-reference/v2/downstream-entity-associations/add"}]},{"group":"Contract Container Templates","icon":"file-contract","pages":[{"title":"List Contract Container Templates","openapi":"openapi/v2.json GET /v2/upstream/contract-container-templates","href":"/api-reference/v2/contract-container-templates/list"}]},{"group":"Agents","icon":"user","pages":[{"title":"List Agents","openapi":"openapi/v2.json GET /v2/upstream/agents","href":"/api-reference/v2/agents/list-agents"},{"title":"Get Agent","openapi":"openapi/v2.json GET /v2/upstream/agents/{agentId}","href":"/api-reference/v2/agents/get-agent"},{"title":"Create Agent","openapi":"openapi/v2.json POST /v2/upstream/agents","href":"/api-reference/v2/agents/create-agent"}]},{"group":"Contacts","icon":"address-book","pages":[{"title":"List Contacts","openapi":"openapi/v2.json GET /v2/upstream/contacts","href":"/api-reference/v2/contacts/list-contacts"},{"title":"Get Contact","openapi":"openapi/v2.json GET /v2/upstream/contacts/{contactId}","href":"/api-reference/v2/contacts/get-contact"}]},{"group":"Market Contacts","icon":"headset","pages":[{"title":"List Market Contacts","openapi":"openapi/v2.json GET /v2/upstream/market-contacts","href":"/api-reference/v2/market-contacts/list-market-contacts"}]},{"group":"Licenses","icon":"id-card","pages":[{"title":"Get Agent Licenses","openapi":"openapi/v2.json GET /v2/upstream/agents/{agentId}/licenses","href":"/api-reference/v2/licenses/agent-licenses"},{"title":"Get All Agent Licenses","openapi":"openapi/v2.json GET /v2/upstream/agents/licenses","href":"/api-reference/v2/licenses/all-agent-licenses"},{"title":"Get Downstream Entity Licenses","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations/{downstreamEntityAssociationId}/licenses","href":"/api-reference/v2/licenses/downstream-entity-licenses"},{"title":"Get All Downstream Entity Licenses","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations/licenses","href":"/api-reference/v2/licenses/all-downstream-entity-licenses"},{"title":"Get Downstream Entity Surplus Lines Licenses","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations/licenses/surplus-lines","href":"/api-reference/v2/licenses/surplus-lines"}]},{"group":"Appointments","icon":"calendar","pages":[{"title":"Get Agent Appointments","openapi":"openapi/v2.json GET /v2/upstream/agents/{agentId}/appointments","href":"/api-reference/v2/appointments/agent-appointments"},{"title":"Get Downstream Entity Appointments","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations/{downstreamEntityAssociationId}/appointments","href":"/api-reference/v2/appointments/downstream-entity-appointments"},{"title":"List Appointment Requests","openapi":"openapi/v2.json GET /v2/upstream/appointment-requests","href":"/api-reference/v2/appointments/list-appointment-requests"},{"title":"Get an Appointment Request","openapi":"openapi/v2.json GET /v2/upstream/appointment-requests/{appointmentRequestId}","href":"/api-reference/v2/appointments/get-appointment-request"},{"title":"List Termination Requests","openapi":"openapi/v2.json GET /v2/upstream/termination-requests","href":"/api-reference/v2/appointments/list-termination-requests"},{"title":"Get a Termination Request","openapi":"openapi/v2.json GET /v2/upstream/termination-requests/{terminationRequestId}","href":"/api-reference/v2/appointments/get-termination-request"}]},{"group":"Compliance Data Subscriptions","icon":"database","pages":[{"title":"Get Subscription Status","openapi":"openapi/v2.json GET /v2/upstream/compliance-data-subscriptions/{niprDataSubscriptionId}","href":"/api-reference/v2/compliance-data-subscriptions/get-status"},{"title":"Sync Downstream Entity","openapi":"openapi/v2.json POST /v2/upstream/downstream-entity-associations/{downstreamEntityAssociationId}/sync","href":"/api-reference/v2/compliance-data-subscriptions/sync-downstream-entity"},{"title":"Sync Agent","openapi":"openapi/v2.json POST /v2/upstream/agents/{agentId}/sync","href":"/api-reference/v2/compliance-data-subscriptions/sync-agent"}]},{"group":"Compliance Status","icon":"circle-check","pages":[{"title":"Get Agent Compliance Status","openapi":"openapi/v2.json GET /v2/upstream/agents/{agentId}/license-compliance-statuses","href":"/api-reference/v2/compliance-status/agent-compliance"},{"title":"Get Downstream Entity Compliance Status","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations/{downstreamEntityAssociationId}/license-compliance-statuses","href":"/api-reference/v2/compliance-status/downstream-entity-compliance"}]},{"group":"File Documents","icon":"file","pages":[{"title":"List Documents","openapi":"openapi/v2.json GET /v2/upstream/file-documents","href":"/api-reference/v2/file-documents/list-documents"},{"title":"Get Producer Agreement Templates","openapi":"openapi/v2.json GET /v2/upstream/file-documents","href":"/api-reference/v2/file-documents/get-producer-agreement-templates"},{"title":"Upload a Document","openapi":"openapi/v2.json POST /v2/upstream/file-documents","href":"/api-reference/v2/file-documents/upload-document"},{"title":"Get a Download URL for a Document","openapi":"openapi/v2.json GET /v2/upstream/file-documents/{fileDocumentId}/download-url","href":"/api-reference/v2/file-documents/get-download-url"}]},{"group":"Policy Ingestion","icon":"file-lines","pages":[{"title":"Policies","openapi":"openapi/v2.json GET /v2/upstream/policies","href":"/api-reference/v2/policies/list-policies"},{"title":"Policy","description":"Retrieve a single policy by ID","openapi":"openapi/v2.json GET /v2/upstream/policies/{policyId}","href":"/api-reference/v2/policies/get-policy"},{"title":"Create Policy","openapi":"openapi/v2.json POST /v2/upstream/policies","href":"/api-reference/v2/policies/create-policy"},{"title":"Update Policy","description":"Partially update a policy by ID","openapi":"openapi/v2.json PATCH /v2/upstream/policies/{policyId}","href":"/api-reference/v2/policies/update-policy"},{"title":"Delete Policy","openapi":"openapi/v2.json DELETE /v2/upstream/policies/{policyId}","href":"/api-reference/v2/policies/delete-policy"},{"title":"Upload Policy File","openapi":"openapi/v2.json POST /v2/upstream/policies/upload","href":"/api-reference/v2/policies/upload-policy-file"},{"title":"Uploading Status","openapi":"openapi/v2.json GET /v2/upstream/policies/uploads/{uploadId}","href":"/api-reference/v2/policies/get-upload-status"}]},{"group":"Policy Transactions","icon":"arrow-right-arrow-left","pages":[{"title":"Create Transaction","openapi":"openapi/v2.json POST /v2/upstream/policies/{policyId}/transactions","href":"/api-reference/v2/policy-transactions/create-transaction"},{"title":"List Transactions","openapi":"openapi/v2.json GET /v2/upstream/policies/{policyId}/transactions","href":"/api-reference/v2/policy-transactions/list-transactions"},{"title":"Get Transaction","openapi":"openapi/v2.json GET /v2/upstream/policies/{policyId}/transactions/{transactionId}","href":"/api-reference/v2/policy-transactions/get-transaction"},{"title":"Update Transaction","openapi":"openapi/v2.json PATCH /v2/upstream/policies/{policyId}/transactions/{transactionId}","href":"/api-reference/v2/policy-transactions/update-transaction"},{"title":"Delete Transaction","openapi":"openapi/v2.json DELETE /v2/upstream/policies/{policyId}/transactions/{transactionId}","href":"/api-reference/v2/policy-transactions/delete-transaction"}]},{"group":"Surplus Lines","icon":"file-invoice-dollar","pages":[{"group":"Guides","expanded":true,"pages":[{"title":"Open a Surplus Lines Filing from Start to Finish","sidebarTitle":"Filing Walkthrough","href":"/guides/surplus-lines-filing-walkthrough"},{"title":"Files on a Surplus Lines Filing","sidebarTitle":"Files on a Filing","href":"/guides/surplus-lines-files"}]},{"group":"Filings","expanded":true,"pages":[{"title":"Surplus Lines Filings","openapi":"openapi/v2.json GET /v2/upstream/surplus-lines-filings","href":"/api-reference/v2/surplus-lines-filings/list-filings"},{"title":"Surplus Lines Filing","openapi":"openapi/v2.json GET /v2/upstream/surplus-lines-filings/{filingId}","href":"/api-reference/v2/surplus-lines-filings/get-filing"},{"title":"Open a Surplus-Lines Filing","openapi":"openapi/v2.json POST /v2/upstream/surplus-lines-filings","href":"/api-reference/v2/surplus-lines-filings/open-filing"},{"title":"Attach Uploaded Files to a Checklist Item","openapi":"openapi/v2.json POST /v2/upstream/surplus-lines-filings/{filingId}/checklist-item/file-documents","href":"/api-reference/v2/surplus-lines-filings/attach-checklist-item-file-documents"},{"title":"Set the Policy Document","openapi":"openapi/v2.json PUT /v2/upstream/surplus-lines-filings/{filingId}/policy-document","href":"/api-reference/v2/surplus-lines-filings/set-policy-document"},{"title":"Reply to a Checklist Item Escalation","openapi":"openapi/v2.json POST /v2/upstream/surplus-lines-filings/{filingId}/escalation/messages","href":"/api-reference/v2/surplus-lines-filings/reply-to-escalation"}]},{"group":"States","expanded":true,"pages":[{"title":"List Surplus Lines States","openapi":"openapi/v2.json GET /v2/upstream/surplus-lines-states","href":"/api-reference/v2/surplus-lines-states/list-states"},{"title":"Get State Requirements","openapi":"openapi/v2.json GET /v2/upstream/surplus-lines-states/{stateCode}/requirements","href":"/api-reference/v2/surplus-lines-states/get-requirements"},{"title":"Get State Taxes and Fees","openapi":"openapi/v2.json GET /v2/upstream/surplus-lines-states/{stateCode}/tax-and-fees","href":"/api-reference/v2/surplus-lines-states/get-tax-and-fees"},{"title":"Get a Download URL for a State Template File","openapi":"openapi/v2.json GET /v2/upstream/surplus-lines-states/{stateCode}/template-files/{templateFileId}/download-url","href":"/api-reference/v2/surplus-lines-states/get-template-file-download-url"}]}]},{"group":"Diligent Effort","icon":"file-signature","pages":[{"title":"Request a Diligent-Effort Signature","openapi":"openapi/v2.json POST /v2/upstream/diligent-effort-requests","href":"/api-reference/v2/diligent-effort-requests/request-signature"}]},{"group":"Webhooks","icon":"bell","pages":[{"title":"Webhooks Overview","href":"/guides/webhooks"},{"group":"Webhook Events","icon":"bolt","pages":[{"title":"Agent Compliance Status Change","href":"/guides/webhooks/agent-compliance-status-change"},{"title":"Agency Compliance Status Change","href":"/guides/webhooks/downstream-entity-compliance-status-change"},{"title":"Agency Created","href":"/guides/webhooks/downstream-entity-created"},{"title":"Agency Deleted","href":"/guides/webhooks/downstream-entity-deleted"},{"title":"Agency Updated","href":"/guides/webhooks/downstream-entity-updated"},{"title":"Compliance Data Synchronized","href":"/guides/webhooks/compliance-data-synchronized"},{"title":"Producer Agreement Executed","href":"/guides/webhooks/producer-agreement-executed"},{"title":"Surplus Lines Filing Status Change","href":"/guides/webhooks/surplus-lines-filing-status-change"},{"title":"Surplus Lines Filing Action Required","href":"/guides/webhooks/surplus-lines-filing-action-required"},{"title":"Diligent Effort Form Status Change","href":"/guides/webhooks/diligent-effort-form-status-change"},{"title":"Agent Regulatory Action Added","href":"/guides/webhooks/agent-regulatory-action-added"},{"title":"Agency Regulatory Action Added","href":"/guides/webhooks/downstream-entity-regulatory-action-added"},{"title":"Agent Regulatory Action Updated","href":"/guides/webhooks/agent-regulatory-action-updated"},{"title":"Agency Regulatory Action Updated","href":"/guides/webhooks/downstream-entity-regulatory-action-updated"},{"title":"Agent License Expiring","href":"/guides/webhooks/agent-license-expiring"},{"title":"Agency License Expiring","href":"/guides/webhooks/downstream-entity-license-expiring"},{"title":"Agent License Expired","href":"/guides/webhooks/agent-license-expired"},{"title":"Agency License Expired","href":"/guides/webhooks/downstream-entity-license-expired"}]},{"title":"List Webhooks","openapi":"openapi/v2.json GET /v2/upstream/webhooks","href":"/api-reference/v2/webhooks/list-webhooks"},{"title":"Send Test Event","openapi":"openapi/v2.json POST /v2/upstream/webhooks/{webhookId}/test","href":"/api-reference/v2/webhooks/test-webhook"}]},{"group":"E\u0026O/Cyber Compliance","icon":"shield-check","pages":[{"title":"Get E\u0026O/Cyber Compliance","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations/{downstreamEntityAssociationId}/policy-compliance-statuses","href":"/api-reference/v2/eo-cyber-compliance/get-policy-compliance"}]},{"group":"Regulatory Actions","icon":"gavel","pages":[{"title":"Get Agent Regulatory Actions","openapi":"openapi/v2.json GET /v2/upstream/agents/{agentId}/regulatory-actions","href":"/api-reference/v2/regulatory-actions/agent-regulatory-actions"},{"title":"Get Downstream Entity Regulatory Actions","openapi":"openapi/v2.json GET /v2/upstream/downstream-entity-associations/{downstreamEntityAssociationId}/regulatory-actions","href":"/api-reference/v2/regulatory-actions/downstream-entity-regulatory-actions"}]},{"group":"Tools","icon":"wrench","pages":[{"title":"Validate NPNs","openapi":"openapi/v2.json POST /v2/upstream/npn-lookup","href":"/api-reference/v2/tools/validate-npns"}]}]},{"version":"v1","tag":"Legacy","pages":[{"title":"v1","href":"/api-reference/v1/policies/create-policy"}]}]},{"tab":"Agency API","icon":"building-user","pages":[{"title":"Agency API","href":"/guides/agency-api"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Create Policy - Turris Public API","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-NXj-Rqjv.js","utils-m0thOP-_.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D13EKcfm.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema--XTdfsEb.js","snippetPresets-D3s4lmAH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-ChURybxL.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DL8CiXq2.js","shallow-DI2-YB2E.js","getApiPlaygroundDisplay-DxbW7b_y.js","CodeSnippet-CiNYS0pP.js","CodeSnippets-BT87bThu.js","Page-DSpdRuhM.js","getPastedJson-F_g_IrFQ.js","icon-CCIG5BAs.js","MethodPill-DY3E0jwx.js","DuplicateIcon-BN88xnEg.js","createIcon-VCCc5HO5.js","DynamicMarkdown-CaSwclgK.js","SectionHeading-DXV8nWhc.js","axios-vUo_bRtp.js","Markdown-CV32Re6G.js","clsx-5ydLOnhV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-pFDdfjRe.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BUGO5bPJ.js"]}