{"openapi":"3.1.0","info":{"title":"Quik Agent Gateway","version":"2026-08-30","summary":"Turn service openings, customer inquiries and follow-ups into Quik action pages.","description":"Create private, structured offer drafts from verified business context; review before publishing. Project-scoped pricing, quality assurance, lifecycle, wallet and analytics. Start with capabilities for connection.projectId. Publishing does not authorize messaging. Arbitrary HTML is never accepted. Setup: https://quik.page/agents"},"servers":[{"url":"https://quik.page"}],"security":[{"agentBearer":[]}],"paths":{"/v1/capabilities":{"get":{"operationId":"describe_capabilities","summary":"Describe supported Quik agent capabilities","security":[{"agentBearer":[]}],"parameters":[],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/pricing":{"get":{"operationId":"get_pricing","summary":"Read current page products and durations","security":[{"agentBearer":[]}],"parameters":[],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/context":{"get":{"operationId":"get_workspace_context","summary":"Read bounded verified business context","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}}],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/library":{"get":{"operationId":"get_workspace_library","summary":"Read reusable business sections and media","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}}],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/ingestions":{"post":{"operationId":"ingest_source","summary":"Refresh an approved business source","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/media-requirements":{"get":{"operationId":"get_media_requirements","summary":"Describe bounded image slots and crop requirements","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"query","required":false,"schema":{"type":"string","maxLength":160}}],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/media-uploads":{"post":{"operationId":"create_media_upload","summary":"Create a short-lived direct image upload","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/media-imports":{"post":{"operationId":"import_media","summary":"Import a public HTTPS image into governed storage","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/media/{assetId}":{"post":{"operationId":"delete_media","summary":"Soft-delete an unused agent media asset","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"assetId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages":{"get":{"operationId":"list_pages","summary":"List project-scoped Quik Pages","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}}],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"operationId":"create_page","summary":"Create a private agent page job","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/page-quotes":{"post":{"operationId":"quote_page","summary":"Quote a page duration without spending credits","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}":{"get":{"operationId":"get_page","summary":"Read one project-scoped page","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}}],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/media":{"post":{"operationId":"place_media","summary":"Place a governed asset in one declared page slot","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/messages":{"post":{"operationId":"prepare_message","summary":"Prepare a private, repeatable sharing session","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/messages/{sessionId}/recipient":{"post":{"operationId":"resolve_recipient","summary":"Resolve an opaque saved recipient or request customer selection","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/messages/{sessionId}/quote":{"post":{"operationId":"quote_message","summary":"Quote personal or hosted delivery without sending","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"enum":["personal","hosted_sms"]}}}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/messages/{sessionId}/send":{"post":{"operationId":"send_message","summary":"Prepare a personal handoff or execute an authorized hosted delivery","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"const":"personal"},"channel":{"enum":["share","sms","email","copy"]}}},{"type":"object","additionalProperties":false,"required":["mode","quoteId","requestFingerprint"],"properties":{"mode":{"const":"hosted_sms"},"quoteId":{"type":"string","maxLength":160},"requestFingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}]}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/messages/{sessionId}/analytics":{"get":{"operationId":"get_message_analytics","summary":"Read safe sharing and delivery outcomes","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","maxLength":160}}],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/preview":{"post":{"operationId":"preview_page","summary":"Create or retrieve a private quality-checked preview","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/publish":{"post":{"operationId":"publish_page","summary":"Publish only with a current passed quality fingerprint","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/extend":{"post":{"operationId":"extend_page","summary":"Quote and apply a new page lifespan","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/archive":{"post":{"operationId":"archive_page","summary":"Archive a page and preserve its safe parent fallback","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/workspaces/{projectId}/pages/{pageId}/analytics":{"get":{"operationId":"get_page_analytics","summary":"Read first-party page outcomes","security":[{"agentBearer":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","maxLength":160}},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","maxLength":160}}],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/jobs/{jobId}":{"get":{"operationId":"get_job","summary":"Read durable agent job progress","security":[{"agentBearer":[]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string","maxLength":160}}],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/wallet":{"get":{"operationId":"get_credit_balance","summary":"Read the prepaid Quik Credit balance","security":[{"agentBearer":[]}],"parameters":[],"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/wallet/topups/checkout":{"post":{"operationId":"request_top_up","summary":"Create a Stripe-hosted Quik Credit checkout","security":[{"agentBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A stable key for one logical mutation. Reuse it for identical transport retries and the accepted job; after a terminal failed job, use a new key for the replacement attempt.","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:/-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"maxProperties":100}}}},"responses":{"200":{"description":"Versioned Quik result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Scope or workspace denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflict or stale state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}},"components":{"securitySchemes":{"agentBearer":{"type":"http","scheme":"bearer","bearerFormat":"Quik project grant or OAuth access token"}},"schemas":{"SuccessEnvelope":{"type":"object","required":["request_id","schema_version","server_version","data","plain_language","next_actions"],"properties":{"request_id":{"type":"string"},"schema_version":{"const":1},"server_version":{"type":"string"},"data":{},"plain_language":{"type":"string"},"next_actions":{"type":"array","maxItems":10,"items":{"type":"object"}}}},"ErrorEnvelope":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"},"retryable":{"type":"boolean"},"details":{"type":"object"},"next_actions":{"type":"array","items":{"type":"object"}}}}}}}}}