{"openapi":"3.1.1","info":{"title":"Cognis Public API — Domains and brand launch","version":"1.0.0","description":"Custom domains (create, verify, brand link), domain search, brand-launch domain helpers. Authenticate with `Authorization: Bearer cogn_…`. Base: https://api.cognissuite.com/api/v1. Max 30 operations for ChatGPT Custom GPT Actions."},"servers":[{"url":"https://api.cognissuite.com/api/v1","description":"Production"},{"url":"http://localhost:3013/api/v1","description":"Local"}],"tags":[{"name":"Commerce Brand Launch","description":"Commerce Brand Launch API"},{"name":"Commerce Domains","description":"Commerce Domains API"}],"paths":{"/ecom/domain/domainsearch":{"get":{"operationId":"searchByDomain","summary":"Search By Domain","description":"Public API endpoint: ecomDomain.searchByDomain","tags":["Commerce Domains"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"domain","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"brandId":"123","orgId":"456"},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}}},"/org/{orgId}/ecom/automation/brand-launch/porkbun-domains":{"get":{"operationId":"getPorkbunDomains","summary":"Get Porkbun Domains","description":"Public API endpoint: ecomBrandLaunch.getPorkbunDomains\n\n**Required scopes:** `org:ecom:read`","tags":["Commerce Brand Launch"],"x-scopes":["org:ecom:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"porkbunIntegrationId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"domains":[{"apex":"unused-porkbun-asset.com","expireDate":"2027-01-15T00:00:00.000Z","autoRenew":false}]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}}},"/org/{orgId}/ecom/automation/brand-launch/prerequisites":{"get":{"operationId":"getPrerequisites","summary":"Get Prerequisites","description":"Public API endpoint: ecomBrandLaunch.getPrerequisites\n\n**Required scopes:** `org:ecom:read`","tags":["Commerce Brand Launch"],"x-scopes":["org:ecom:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"domainSource","in":"query","required":false,"schema":{"type":"string","enum":["reuse_existing","purchase_new","porkbun_existing"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"ready":false,"wizardReady":false,"items":[{"id":"porkbun_connected","met":false,"detailKey":"ecom.automation.brandLaunch.prerequisites.porkbunConnected.detail"},{"id":"porkbun_default","met":false,"detailKey":"ecom.automation.brandLaunch.prerequisites.porkbunDefault.detail"},{"id":"cloudflare_connected","met":false,"detailKey":"ecom.automation.brandLaunch.prerequisites.cloudflareConnected.detail"},{"id":"stripe_checkout","met":false,"detailKey":"ecom.automation.brandLaunch.prerequisites.stripeCheckout.detail"},{"id":"airwallex_checkout","met":false,"detailKey":"ecom.automation.brandLaunch.prerequisites.airwallexCheckout.detail"},{"id":"org_languages","met":false,"detailKey":"ecom.automation.brandLaunch.prerequisites.orgLanguages.detail"},{"id":"mailgun_ready","met":false,"detailKey":"ecom.automation.brandLaunch.prerequisites.mailgunReady.detail"},{"id":"experimental_access","met":false,"detailKey":"ecom.automation.brandLaunch.prerequisites.experimentalAccess.detail"}]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}}},"/org/{orgId}/ecom/automation/brand-launch/reuse-domains":{"get":{"operationId":"getReuseDomains","summary":"Get Reuse Domains","description":"Public API endpoint: ecomBrandLaunch.getReuseDomains\n\n**Required scopes:** `org:ecom:read`","tags":["Commerce Brand Launch"],"x-scopes":["org:ecom:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"launchMode","in":"query","required":false,"schema":{"type":"string","enum":["create_new","extend_existing"]}},{"name":"existingBrandId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"domains":[{"id":"dom_example123","domain":"example.com","verified":true,"brandId":null,"brandName":null}]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}}},"/org/{orgId}/ecom/domain/{domainId}":{"get":{"operationId":"getById","summary":"Get By Id","description":"Public API endpoint: ecomDomain.getById\n\n**Required scopes:** `org:ecom:domain:read`","tags":["Commerce Domains"],"x-scopes":["org:ecom:domain:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"id":"1","domain":"acme.com","verified":true,"serviceTarget":"webshop","createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-02T10:15:00.000Z","orgId":"1","brandId":"10","createdBy":null,"edgeProvisioningId":null,"edgeProvisioningStatus":null,"records":[{"type":"A","value":"192.168.1.1"},{"type":"CNAME","value":"edge.example.com","name":"www"}]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}},"patch":{"operationId":"patchBrandLink","summary":"Patch Brand Link","description":"Public API endpoint: ecomDomain.patchBrandLink\n\n**Required scopes:** `org:ecom:domain:write`","tags":["Commerce Domains"],"x-scopes":["org:ecom:domain:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"id":"1","domain":"acme.com","verified":true,"serviceTarget":"webshop","createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-02T10:15:00.000Z","orgId":"1","brandId":"10","createdBy":null,"edgeProvisioningId":null,"edgeProvisioningStatus":null,"records":[{"type":"A","value":"192.168.1.1"},{"type":"CNAME","value":"edge.example.com","name":"www"}]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandId":{"anyOf":[{"type":"string","minLength":1},{"enum":["null"],"nullable":true}]}},"required":["brandId"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/domains":{"get":{"operationId":"list","summary":"List","description":"List org e-commerce domains (admin tables need org:ecom:domain:read). Reference-mode callers skip only that primary scope check for domain pickers (e.g. LAP hosted site bind) — payload is unchanged; confirm org-wide domain visibility is acceptable.\n\n**Required scopes:** `org:ecom:domain:read`","tags":["Commerce Domains"],"x-scopes":["org:ecom:domain:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"fromDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"toDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"dateBy","in":"query","required":false,"schema":{"type":"string","default":"createdAt"}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["id","domain","verified","serviceTarget","records","createdAt","updatedAt","orgId","brandId","createdBy","edgeProvisioningId","edgeProvisioningStatus","launchReadiness"]},"order":{"type":"string","enum":["asc","desc"],"default":"desc"}},"required":["field"],"additionalProperties":false},"default":[{"field":"createdAt","order":"desc"}]}},{"name":"fields","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["id","domain","verified","serviceTarget","records","createdAt","updatedAt","orgId","brandId","createdBy","edgeProvisioningId","edgeProvisioningStatus","launchReadiness"]},"default":["id"]}},{"name":"filters","in":"query","required":false,"schema":{"type":"object","properties":{"type":{"type":"string","enum":["group"]},"op":{"type":"string","enum":["and","or"]},"children":{"type":"array","items":{"anyOf":[{},{"type":"object","properties":{"type":{"type":"string","enum":["rule"]},"field":{"type":"string","enum":["id","domain","verified","serviceTarget","records","createdAt","updatedAt","orgId","brandId","createdBy","edgeProvisioningId","edgeProvisioningStatus","launchReadiness"]},"operator":{"type":"string","enum":["eq","neq","in","not_in","is_set","is_not_set","gt","gte","lt","lte","between","contains","not_contains","starts_with","ends_with"]},"value":{}},"required":["type","field","operator"],"additionalProperties":false}]},"minItems":1}},"required":["type","op","children"],"additionalProperties":false}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object"}},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":[{"id":"1","domain":"acme.com","verified":true,"serviceTarget":"webshop","createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-02T10:15:00.000Z","orgId":"1","brandId":"10","createdBy":null,"edgeProvisioningId":null,"edgeProvisioningStatus":null,"records":[{"type":"A","value":"192.168.1.1"},{"type":"CNAME","value":"edge.example.com","name":"www"}]}],"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}}},"post":{"operationId":"create","summary":"Create","description":"Public API endpoint: ecomDomain.create\n\n**Required scopes:** `org:ecom:domain:create`","tags":["Commerce Domains"],"x-scopes":["org:ecom:domain:create"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"id":"1","domain":"acme.com","verified":true,"serviceTarget":"webshop","createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-02T10:15:00.000Z","orgId":"1","brandId":"10","createdBy":null,"edgeProvisioningId":null,"edgeProvisioningStatus":null,"records":[{"type":"A","value":"192.168.1.1"},{"type":"CNAME","value":"edge.example.com","name":"www"}]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"serviceTarget":{"type":"string","enum":["webshop","design_proposals"],"default":"webshop"},"brandId":{"type":"string","minLength":1}},"required":["domain"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/domain/{domainId}/purchase-policy":{"patch":{"operationId":"patchPurchasePolicy","summary":"Patch Purchase Policy","description":"Update Cognis-purchased domain renewal policy (Keep domain toggle, auto-cancel before renewal). Org admin tier only.\n\n**Required scopes:** `org:ecom:domain:write`","tags":["Commerce Domains"],"x-scopes":["org:ecom:domain:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"id":"1","domain":"acme.com","verified":true,"serviceTarget":"webshop","createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-02T10:15:00.000Z","orgId":"1","brandId":"10","createdBy":null,"edgeProvisioningId":null,"edgeProvisioningStatus":null,"records":[{"type":"A","value":"192.168.1.1"},{"type":"CNAME","value":"edge.example.com","name":"www"}]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keepDomain":{"type":"boolean"},"renewalPolicy":{"type":"string","enum":["auto_cancel_before_renewal","leave_registrar_unchanged"]}},"additionalProperties":false}}}}}},"/org/{orgId}/ecom/automation/brand-launch/domain-search":{"post":{"operationId":"postDomainSearch","summary":"Post Domain Search","description":"Public API endpoint: ecomBrandLaunch.postDomainSearch\n\n**Required scopes:** `org:ecom:read`","tags":["Commerce Brand Launch"],"x-scopes":["org:ecom:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"results":[{"domain":"freshbrand","tld":"com","fqdn":"freshbrand.com","available":true,"price":9.68,"currency":"USD"}],"partialFailures":[{"tld":"store","code":"PORKBUN_API_ERROR","message":"Rate limit exceeded"}]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":253},"tlds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":63},"maxItems":8},"porkbunIntegrationId":{"type":"string","minLength":1}},"required":["query"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/automation/brand-launch/preview-collections":{"post":{"operationId":"postPreviewCollections","summary":"Post Preview Collections","description":"Public API endpoint: ecomBrandLaunch.postPreviewCollections\n\n**Required scopes:** `org:ecom:read`","tags":["Commerce Brand Launch"],"x-scopes":["org:ecom:read"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"collections":[{"id":"ecoll_example","name":"Outdoor gear","score":120,"rationale":"name keywords: outdoor","suggested":true}]},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandName":{"type":"string","minLength":1,"maxLength":256},"brandDescription":{"type":"string","maxLength":4000},"brandSlug":{"type":"string","maxLength":64},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["brandName"],"additionalProperties":false}}}}}},"/org/{orgId}/ecom/domain/{domainId}/service-target":{"patch":{"operationId":"setServiceTargetDeprecatedGone","summary":"Set Service Target Deprecated Gone","description":"Public API endpoint: ecomDomain.setServiceTargetDeprecatedGone\n\n**Required scopes:** `org:ecom:domain:write`","tags":["Commerce Domains"],"x-scopes":["org:ecom:domain:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"ok":true},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"/org/{orgId}/ecom/domain/{domainId}/verify":{"post":{"operationId":"verify","summary":"Verify","description":"Public API endpoint: ecomDomain.verify\n\n**Required scopes:** `org:ecom:domain:write`","tags":["Commerce Domains"],"x-scopes":["org:ecom:domain:write"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string","description":"Organization ID (prefix: org_)"}},{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":true},"message":{"type":"string"},"traceId":{"type":"string"},"meta":{"type":"object","properties":{"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"totalItems":{"type":"integer"}}}}}}},"example":{"success":true,"data":{"verified":true,"domain":{"id":"1","domain":"acme.com","verified":true,"serviceTarget":"webshop","createdAt":"2025-01-01T19:42:28.687Z","updatedAt":"2025-01-02T10:15:00.000Z","orgId":"1","brandId":"10","createdBy":null,"edgeProvisioningId":null,"edgeProvisioningStatus":null,"records":[{"type":"A","value":"192.168.1.1"},{"type":"CNAME","value":"edge.example.com","name":"www"}]}},"message":"Success","traceId":"req_abc123"}}}},"400":{"description":"Bad request — validation error or invalid payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Invalid data","errors":[{"code":400,"message":"Invalid data"}],"traceId":"req_xxx"}}}},"401":{"description":"Unauthorized — invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unauthorized","errors":[{"code":401,"message":"Unauthorized"}],"traceId":"req_xxx"}}}},"403":{"description":"Forbidden — insufficient permissions or api_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Forbidden","errors":[{"code":403,"message":"Forbidden"}],"traceId":"req_xxx"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Not found","errors":[{"code":404,"message":"Not found"}],"traceId":"req_xxx"}}}},"409":{"description":"Conflict — e.g. unique violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Conflict","errors":[{"code":409,"message":"Conflict"}],"traceId":"req_xxx"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests — rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Rate limit exceeded","errors":[],"traceId":"req_xxx"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"message":"Unexpected error","errors":[{"code":500,"message":"Unexpected error"}],"traceId":"req_xxx"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key (prefix: cogn_) from Account → Developer"}},"schemas":{"ErrorResponse":{"type":"object","required":["success","message","errors"],"properties":{"success":{"type":"boolean","enum":[false]},"message":{"type":"string","description":"Human-readable error message"},"errors":{"type":"array","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"number","description":"Error code"},"message":{"type":"string"},"details":{"type":"object"}}}},"traceId":{"type":"string","description":"Request ID for tracing"},"params":{"type":"object","description":"Validation params for interpolation"},"readableMessage":{"type":"string","description":"Human-readable validation message"}}}}},"security":[{"bearerAuth":[]}]}