Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Validates POST /v1/ai/chat per PRD §05-public-api.
Extended from a single-turn message field to a full superset —
messages[] history (same content-block dialect Anthropic-compat uses, so
AnthropicMessagesRequestBuilder is reused verbatim for both), tools, and
the full cross-provider parameter set (top_p/top_k/tool_choice/
metadata/stop_sequences). message (singular) is preserved as shorthand
for a single user-turn request — exactly one of message/messages must
be present.
Either a bare ULID (the pre-existing passthrough tag) or a
conv_-prefixed id naming a server-owned conversation
(ADR-AHK8YT). Validated as a pattern rather than ulid so the
prefixed form is not rejected before the controller can resolve
it; which of the two it is decides whether the call is stateful.
PRD-phi-reidentification-map §8: contextual subject binding for the
audit row fidelity layer. Optional everywhere — when present, both
type and id must be set (rule required_with on each side).
Asserted end-user identity: which user of your application took
this action. Recorded on the audit chain as an assertion made by
your integration — HASP does not verify it, and it is never
shown to the model. Distinct from subject, which names who or
what the action is about. id is your stable identifier for
the person; display is an optional human-readable name shown
to audit reviewers. Supported for API-key credentials only.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"HASP","colors":{"primary":"#0EA5E9","light":"#38BDF8","dark":"#0369A1"},"logo":{"light":"https://mintcdn.com/workapps/0CUJixHMbM2i7Uxm/logo/light.svg?fit=max\u0026auto=format\u0026n=0CUJixHMbM2i7Uxm\u0026q=85\u0026s=ec1dbeb022fb6132da3624b1705c42c1","dark":"https://mintcdn.com/workapps/0CUJixHMbM2i7Uxm/logo/dark.svg?fit=max\u0026auto=format\u0026n=0CUJixHMbM2i7Uxm\u0026q=85\u0026s=1d00328b497b04c805590ee7be1aed39"},"favicon":"https://mintcdn.com/workapps/0CUJixHMbM2i7Uxm/favicon.svg?fit=max\u0026auto=format\u0026n=0CUJixHMbM2i7Uxm\u0026q=85\u0026s=04809a8e26ea35a1e8acb7d9bb2d8e97","integrations":{"fathom":{"siteId":"ZMRUNVZJ"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"workapps","hasAudioNarration":false,"actualSubdomain":"workapps","customDomains":["docs.usehasp.com"],"gitSource":{"type":"github","owner":"charity-wages","repo":"hasp-monorepo","deployBranch":"staging","contentDirectory":"apps/docs-site","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeb30b91ffad441390190e6","collectionId":"367fc5e9-abec-4e40-b446-dfab9c39a114","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb30b91ffad441390190e6"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aedea93af0db5f4a249065f","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"AI API","count":159},{"language":"default","tag":"Endpoints","count":132},{"language":"default","tag":"App Builder SDK","count":22},{"language":"default","tag":"AI Studio","count":18},{"language":"default","tag":"Platform","count":16},{"language":"default","tag":"Data API","count":15},{"language":"default","tag":"Control Plane","count":12},{"language":"default","tag":"Reference","count":12},{"language":"default","tag":"Agents","count":11},{"language":"default","tag":"Concepts","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"llms-txt-v2","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":"vite-origin","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":"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org","slug":"/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org","pageMetadata":{"title":"Run HASP's native chat completion for the caller's org","description":"Streams by default, or returns the assembled response.","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /ai/chat","href":"/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org","autogeneratedByOpenApi":true},"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: \"Streams by default, or returns the assembled response.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run HASP's native chat completion for the caller's org","description":"Streams by default, or returns the assembled response.","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /ai/chat","href":"/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"v1.ai.chat","description":"Streams by default, or returns the assembled response.","summary":"Run HASP's native chat completion for the caller's org","tags":["Chat"],"requestBody":"fd8631c9-cd96-420e-a360-186c206e5919","responses":{"200":"35357b0f-9285-4bc0-a8c6-c1b090418f55","401":"a92d229f-34b9-413f-a84f-5b5cf6f1ef1a","403":"0f20509b-339c-4ddf-8221-6c31a237ca79","404":"97d9afad-86fb-47df-90c1-8ec2d50e74c3","422":"9e9ac2f1-81c6-46d9-9356-3dc99f3fdfae","429":"09410eba-c15b-47ba-9a1a-651797b8e979","500":"c860c389-6e80-4945-9135-5354fd564fc4"},"method":"post","type":"path","servers":["b3c03bbb-59fd-4413-b9f4-297f26f6b9f9"],"security":["079b2cee-06ca-417b-a7e4-999731dd711b"],"path":"/ai/chat","baseUrlOptions":["https://api.usehasp.com/v1"],"title":"Run HASP's native chat completion for the caller's org","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Validates POST /v1/ai/chat per PRD §05-public-api.\n\nExtended from a single-turn `message` field to a full superset —\n`messages[]` history (same content-block dialect Anthropic-compat uses, so\nAnthropicMessagesRequestBuilder is reused verbatim for both), `tools`, and\nthe full cross-provider parameter set (`top_p`/`top_k`/`tool_choice`/\n`metadata`/`stop_sequences`). `message` (singular) is preserved as shorthand\nfor a single user-turn request — exactly one of `message`/`messages` must\nbe present.","properties":{"message":{"type":"string","maxLength":100000,"uniqueKey":"message","typeLabel":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"type":"string","description":"Same content-block dialect as MessagesRequest (Anthropic-compat):\nplain string, or an array of text/tool_use/tool_result blocks.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content","typeLabel":"string"}},"required":["role","content"],"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"messages","typeLabel":"object[]"},"model":{"oneOf":[{"type":"string","maxLength":100,"uniqueKey":"model.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"uniqueKey":"model.oneOf.1","typeLabel":"null"}],"uniqueKey":"model","typeLabel":"string | null"},"conversation_id":{"oneOf":[{"type":"string","description":"Either a bare ULID (the pre-existing passthrough tag) or a\n`conv_`-prefixed id naming a server-owned conversation\n(ADR-AHK8YT). Validated as a pattern rather than `ulid` so the\nprefixed form is not rejected before the controller can resolve\nit; which of the two it is decides whether the call is stateful.","pattern":"^(conv_)?[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$","uniqueKey":"conversation_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Either a bare ULID (the pre-existing passthrough tag) or a\n`conv_`-prefixed id naming a server-owned conversation\n(ADR-AHK8YT). Validated as a pattern rather than `ulid` so the\nprefixed form is not rejected before the controller can resolve\nit; which of the two it is decides whether the call is stateful.","pattern":"^(conv_)?[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$","uniqueKey":"conversation_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"conversation_id","typeLabel":"string | null"},"stream":{"oneOf":[{"type":"boolean","uniqueKey":"stream.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"stream.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream","typeLabel":"boolean | null"},"store":{"oneOf":[{"type":"boolean","uniqueKey":"store.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"store.oneOf.1","typeLabel":"null"}],"uniqueKey":"store","typeLabel":"boolean | null"},"system":{"oneOf":[{"type":"string","maxLength":10000,"uniqueKey":"system.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":10000,"uniqueKey":"system.oneOf.1","typeLabel":"null"}],"uniqueKey":"system","typeLabel":"string | null"},"tools":{"oneOf":[{"type":"array","description":"App-domain tool shape — no wire-format translation needed since\nthis is HASP's own surface, not a compat passthrough.","items":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].description","typeLabel":"string | null"},"input_schema":{"oneOf":[{"type":"object","properties":{"type":{"oneOf":[{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.oneOf.0.type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.oneOf.0.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.oneOf.0.type","typeLabel":"string | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"type":{"oneOf":[{"type":"string"},{"type":"null"}]}},"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema","typeLabel":"object | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"App-domain tool shape — no wire-format translation needed since\nthis is HASP's own surface, not a compat passthrough.","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"oneOf":[{"type":"string"},{"type":"null"}]},"input_schema":{"oneOf":[{"type":"object","properties":{"type":{"oneOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null","properties":{"type":{"oneOf":[{"type":"string"},{"type":"null"}]}}}]}}},"uniqueKey":"tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools","typeLabel":"object[] | null"},"tool_choice":{"oneOf":[{"type":"string","description":"InferenceRequest's canonical vocabulary directly: 'auto'|'any'|\n'none'|\u003ctool name> — no compat-surface wire shape to normalize.","uniqueKey":"tool_choice.oneOf.0","typeLabel":"string"},{"type":"null","description":"InferenceRequest's canonical vocabulary directly: 'auto'|'any'|\n'none'|\u003ctool name> — no compat-surface wire shape to normalize.","uniqueKey":"tool_choice.oneOf.1","typeLabel":"null"}],"uniqueKey":"tool_choice","typeLabel":"string | null"},"top_p":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"uniqueKey":"top_p.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"uniqueKey":"top_p.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_p","typeLabel":"number | null"},"top_k":{"oneOf":[{"type":"integer","minimum":1,"uniqueKey":"top_k.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"uniqueKey":"top_k.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_k","typeLabel":"integer | null"},"stop_sequences":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"stop_sequences.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"stop_sequences.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"stop_sequences.oneOf.1","typeLabel":"null"}],"uniqueKey":"stop_sequences","typeLabel":"string[] | null"},"metadata":{"oneOf":[{"type":"object","properties":{"user_id":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"metadata.oneOf.0.user_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"metadata.oneOf.0.user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata.oneOf.0.user_id","typeLabel":"string | null"}},"uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"user_id":{"oneOf":[{"type":"string","maxLength":255},{"type":"null","maxLength":255}]}},"uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"provider_extensions":{"oneOf":[{"type":"array","description":"Escape hatch for provider-specific wire keys the canonical\nfields above don't (yet) model — see ADR-ZP99PX.","items":{"type":"string","uniqueKey":"provider_extensions.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"provider_extensions.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Escape hatch for provider-specific wire keys the canonical\nfields above don't (yet) model — see ADR-ZP99PX.","items":{"type":"string"},"uniqueKey":"provider_extensions.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider_extensions","typeLabel":"string[] | null"},"subject":{"oneOf":[{"type":"object","description":"PRD-phi-reidentification-map §8: contextual subject binding for the\naudit row fidelity layer. Optional everywhere — when present, both\ntype and id must be set (rule `required_with` on each side).","properties":{"type":{"oneOf":[{"type":"string","maxLength":64,"uniqueKey":"subject.oneOf.0.type.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":64,"uniqueKey":"subject.oneOf.0.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"subject.oneOf.0.type","typeLabel":"string | null"},"id":{"oneOf":[{"type":"string","maxLength":256,"uniqueKey":"subject.oneOf.0.id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":256,"uniqueKey":"subject.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"subject.oneOf.0.id","typeLabel":"string | null"}},"uniqueKey":"subject.oneOf.0","typeLabel":"object"},{"type":"null","description":"PRD-phi-reidentification-map §8: contextual subject binding for the\naudit row fidelity layer. Optional everywhere — when present, both\ntype and id must be set (rule `required_with` on each side).","properties":{"type":{"oneOf":[{"type":"string","maxLength":64},{"type":"null","maxLength":64}]},"id":{"oneOf":[{"type":"string","maxLength":256},{"type":"null","maxLength":256}]}},"uniqueKey":"subject.oneOf.1","typeLabel":"null"}],"uniqueKey":"subject","typeLabel":"object | null"},"on_behalf_of":{"oneOf":[{"type":"object","description":"Asserted end-user identity: which user of your application took\nthis action. Recorded on the audit chain as an assertion made by\nyour integration — HASP does not verify it, and it is never\nshown to the model. Distinct from `subject`, which names who or\nwhat the action is about. `id` is your stable identifier for\nthe person; `display` is an optional human-readable name shown\nto audit reviewers. Supported for API-key credentials only.","properties":{"id":{"type":"string","maxLength":256,"uniqueKey":"on_behalf_of.oneOf.0.id","typeLabel":"string"},"display":{"oneOf":[{"type":"string","maxLength":256,"uniqueKey":"on_behalf_of.oneOf.0.display.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":256,"uniqueKey":"on_behalf_of.oneOf.0.display.oneOf.1","typeLabel":"null"}],"uniqueKey":"on_behalf_of.oneOf.0.display","typeLabel":"string | null"}},"uniqueKey":"on_behalf_of.oneOf.0","typeLabel":"object"},{"type":"null","description":"Asserted end-user identity: which user of your application took\nthis action. Recorded on the audit chain as an assertion made by\nyour integration — HASP does not verify it, and it is never\nshown to the model. Distinct from `subject`, which names who or\nwhat the action is about. `id` is your stable identifier for\nthe person; `display` is an optional human-readable name shown\nto audit reviewers. Supported for API-key credentials only.","properties":{"id":{"type":"string","maxLength":256},"display":{"oneOf":[{"type":"string","maxLength":256},{"type":"null","maxLength":256}]}},"uniqueKey":"on_behalf_of.oneOf.1","typeLabel":"null"}],"uniqueKey":"on_behalf_of","typeLabel":"object | null"}},"title":"ChatRequest","uniqueKey":"","typeLabel":"ChatRequest · object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","messages":[{"content":"\u003cstring>"}],"model":"\u003cstring>","conversation_id":"\u003cstring>","stream":true,"store":true,"system":"\u003cstring>","tools":[{"name":"\u003cstring>","description":"\u003cstring>","input_schema":{"type":"\u003cstring>"}}],"tool_choice":"\u003cstring>","top_p":0.5,"top_k":2,"stop_sequences":["\u003cstring>"],"metadata":{"user_id":"\u003cstring>"},"provider_extensions":["\u003cstring>"],"subject":{"type":"\u003cstring>","id":"\u003cstring>"},"on_behalf_of":{"id":"\u003cstring>","display":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"35357b0f-9285-4bc0-a8c6-c1b090418f55":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["success","data","meta"],"properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"oneOf.0.success","typeLabel":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.data.id","typeLabel":"string"},"model":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.data.model","typeLabel":"string"},"role":{"type":"string","const":"assistant","isRequired":true,"uniqueKey":"oneOf.0.data.role","typeLabel":"string"},"content":{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"oneOf.0.data.content.items.[INDEX].additionalProperties","typeLabel":"any"},"uniqueKey":"oneOf.0.data.content.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.data.content","typeLabel":"object[]"},"stop_reason":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.data.stop_reason","typeLabel":"string"},"usage":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"oneOf.0.data.usage.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"oneOf.0.data.usage","typeLabel":"object"}},"required":["id","model","role","content","stop_reason","usage"],"isRequired":true,"uniqueKey":"oneOf.0.data","typeLabel":"object"},"meta":{"type":"object","properties":{"request_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.meta.request_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.meta.request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.meta.request_id","typeLabel":"string | null"}},"required":["request_id"],"isRequired":true,"uniqueKey":"oneOf.0.meta","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"string","uniqueKey":"oneOf.1","typeLabel":"string"}],"uniqueKey":"","typeLabel":"object | string"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"id":"\u003cstring>","model":"\u003cstring>","role":"assistant","content":[{}],"stop_reason":"\u003cstring>","usage":{}},"meta":{"request_id":"\u003cstring>"}}}},"exampleType":"generated"},"text/event-stream":{"schema":{"type":"string","format":"binary","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"headers":{"Transfer-Encoding":{"schema":{"type":"string","enum":["chunked"]}}},"exampleType":"generated"},"a92d229f-34b9-413f-a84f-5b5cf6f1ef1a":{"description":"Bearer token is missing, malformed, or revoked.","content":{"application/json":{"schema":{"type":"object","examples":[{"success":false,"error":{"type":"authentication","code":"INVALID_API_KEY","message":"Bearer token is missing, malformed, or revoked.","param":null,"details":null,"retryable":false,"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"},"meta":{"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"}}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"type":"authentication","code":"INVALID_API_KEY","message":"Bearer token is missing, malformed, or revoked.","param":null,"details":null,"retryable":false,"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"},"meta":{"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"}}}},"exampleType":"generated"}},"exampleType":"generated"},"0f20509b-339c-4ddf-8221-6c31a237ca79":{"description":"The caller is authenticated but lacks the scope or capability this route requires.","content":{"application/json":{"schema":{"type":"object","examples":[{"success":false,"error":{"type":"permission","code":"MISSING_SCOPE","message":"The caller is authenticated but lacks the scope or capability this route requires.","param":null,"details":null,"retryable":false,"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"},"meta":{"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"}}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"type":"permission","code":"MISSING_SCOPE","message":"The caller is authenticated but lacks the scope or capability this route requires.","param":null,"details":null,"retryable":false,"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"},"meta":{"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"}}}},"exampleType":"generated"}},"exampleType":"generated"},"97d9afad-86fb-47df-90c1-8ec2d50e74c3":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["success","error","meta","errors"],"properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"oneOf.0.success","typeLabel":"boolean"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["authentication","permission","rate_limited","invalid_request","payment_required","not_found","conflict","api_error"],"isRequired":true,"uniqueKey":"oneOf.0.error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["AGENT_CREDENTIAL_NOT_FOUND","AGENT_CREDENTIAL_REVOKED","AGENT_CREDENTIAL_EXPIRED","TOOL_NOT_IN_SCOPE","SCOPE_CONSTRAINT_VIOLATION","AGENT_RATE_LIMIT_EXCEEDED","AGENT_CONCURRENCY_CAP_EXCEEDED","AGENT_CONCURRENT_CREDENTIALS_EXCEEDED","AGENT_DELEGATION_CHAIN_DEPTH_EXCEEDED","DEVELOPER_CREDENTIAL_NOT_FOUND","DEVELOPER_CREDENTIAL_REVOKED","INVALID_API_KEY","MODEL_ACCESS_DENIED","FEATURE_NOT_HIPAA_ELIGIBLE","CONSUMPTION_BLOCKED","BUDGET_EXCEEDED","BAA_REQUIRED","AI_PAUSED","EVALUATION_ACCESS_BLOCKED","FEATURE_NOT_AVAILABLE","UNSUPPORTED_PARAMETER","VALIDATION_FAILED","NOT_FOUND","METHOD_NOT_ALLOWED","INTERNAL_ERROR","IDEMPOTENCY_CONFLICT","INVALID_API_VERSION","MALWARE_DETECTED","ATTACHMENT_TOO_LARGE","ATTACHMENT_STORAGE_LIMIT_EXCEEDED","ORGANIZATION_MISMATCH","RATE_LIMITED","DELEGATING_USER_REQUIRED","RAG_RETRIEVAL_DISABLED","RETRIEVAL_PHI_BLOCKED","ORG_ADMIN_REQUIRED","PHI_DETECTED","PERSONA_NO_DRAFT","PERSONA_ALREADY_DRAFT","PERSONA_NOT_PRIVATE","INTEGRATIONS_DISABLED","SOLVER_SPEC_INVALID","SOLVER_UNAVAILABLE","CONVERSATION_OWNER_REQUIRED","UNAUTHENTICATED","API_KEY_REVOKED","API_KEY_EXPIRED","IP_NOT_ALLOWED","FORBIDDEN","INSUFFICIENT_ROLE","MISSING_APP_ID","BOT_VERIFICATION_REQUIRED","SERVICE_UNAVAILABLE","ORG_FROZEN"],"isRequired":true,"uniqueKey":"oneOf.0.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","const":"Conversation not found.","isRequired":true,"uniqueKey":"oneOf.0.error.message","typeLabel":"string"},"param":{"type":"string","const":"conversation_id","isRequired":true,"uniqueKey":"oneOf.0.error.param","typeLabel":"string"},"details":{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.error.details","typeLabel":"null"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"oneOf.0.error.retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.error.request_id","typeLabel":"string"}},"required":["type","code","message","param","details","retryable","request_id"],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"object"},"meta":{"type":"object","properties":{"request_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.meta.request_id","typeLabel":"string"}},"required":["request_id"],"isRequired":true,"uniqueKey":"oneOf.0.meta","typeLabel":"object"},"errors":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.errors","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"message":{"type":"string","const":"Conversation not found.","isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"type":{"type":"string","enum":["authentication_error","permission_error","invalid_request_error","not_found_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"oneOf.1.error.type","typeLabel":"enum\u003cstring>"},"param":{"type":"string","const":"conversation_id","isRequired":true,"uniqueKey":"oneOf.1.error.param","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"hasp_code":{"type":"string","enum":["AGENT_CREDENTIAL_NOT_FOUND","AGENT_CREDENTIAL_REVOKED","AGENT_CREDENTIAL_EXPIRED","TOOL_NOT_IN_SCOPE","SCOPE_CONSTRAINT_VIOLATION","AGENT_RATE_LIMIT_EXCEEDED","AGENT_CONCURRENCY_CAP_EXCEEDED","AGENT_CONCURRENT_CREDENTIALS_EXCEEDED","AGENT_DELEGATION_CHAIN_DEPTH_EXCEEDED","DEVELOPER_CREDENTIAL_NOT_FOUND","DEVELOPER_CREDENTIAL_REVOKED","INVALID_API_KEY","MODEL_ACCESS_DENIED","FEATURE_NOT_HIPAA_ELIGIBLE","CONSUMPTION_BLOCKED","BUDGET_EXCEEDED","BAA_REQUIRED","AI_PAUSED","EVALUATION_ACCESS_BLOCKED","FEATURE_NOT_AVAILABLE","UNSUPPORTED_PARAMETER","VALIDATION_FAILED","NOT_FOUND","METHOD_NOT_ALLOWED","INTERNAL_ERROR","IDEMPOTENCY_CONFLICT","INVALID_API_VERSION","MALWARE_DETECTED","ATTACHMENT_TOO_LARGE","ATTACHMENT_STORAGE_LIMIT_EXCEEDED","ORGANIZATION_MISMATCH","RATE_LIMITED","DELEGATING_USER_REQUIRED","RAG_RETRIEVAL_DISABLED","RETRIEVAL_PHI_BLOCKED","ORG_ADMIN_REQUIRED","PHI_DETECTED","PERSONA_NO_DRAFT","PERSONA_ALREADY_DRAFT","PERSONA_NOT_PRIVATE","INTEGRATIONS_DISABLED","SOLVER_SPEC_INVALID","SOLVER_UNAVAILABLE","CONVERSATION_OWNER_REQUIRED","UNAUTHENTICATED","API_KEY_REVOKED","API_KEY_EXPIRED","IP_NOT_ALLOWED","FORBIDDEN","INSUFFICIENT_ROLE","MISSING_APP_ID","BOT_VERIFICATION_REQUIRED","SERVICE_UNAVAILABLE","ORG_FROZEN"],"isRequired":true,"uniqueKey":"oneOf.1.error.hasp_code","typeLabel":"enum\u003cstring>"},"hasp_details":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"oneOf.1.error.hasp_details.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"oneOf.1.error.hasp_details","typeLabel":"object"}},"required":["message","type","param","code","hasp_code","hasp_details"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["type","error"],"properties":{"type":{"type":"string","const":"error","isRequired":true,"uniqueKey":"oneOf.2.type","typeLabel":"string"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["authentication_error","permission_error","invalid_request_error","not_found_error","rate_limit_error","api_error","overloaded_error"],"isRequired":true,"uniqueKey":"oneOf.2.error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","const":"Conversation not found.","isRequired":true,"uniqueKey":"oneOf.2.error.message","typeLabel":"string"},"hasp_code":{"type":"string","enum":["AGENT_CREDENTIAL_NOT_FOUND","AGENT_CREDENTIAL_REVOKED","AGENT_CREDENTIAL_EXPIRED","TOOL_NOT_IN_SCOPE","SCOPE_CONSTRAINT_VIOLATION","AGENT_RATE_LIMIT_EXCEEDED","AGENT_CONCURRENCY_CAP_EXCEEDED","AGENT_CONCURRENT_CREDENTIALS_EXCEEDED","AGENT_DELEGATION_CHAIN_DEPTH_EXCEEDED","DEVELOPER_CREDENTIAL_NOT_FOUND","DEVELOPER_CREDENTIAL_REVOKED","INVALID_API_KEY","MODEL_ACCESS_DENIED","FEATURE_NOT_HIPAA_ELIGIBLE","CONSUMPTION_BLOCKED","BUDGET_EXCEEDED","BAA_REQUIRED","AI_PAUSED","EVALUATION_ACCESS_BLOCKED","FEATURE_NOT_AVAILABLE","UNSUPPORTED_PARAMETER","VALIDATION_FAILED","NOT_FOUND","METHOD_NOT_ALLOWED","INTERNAL_ERROR","IDEMPOTENCY_CONFLICT","INVALID_API_VERSION","MALWARE_DETECTED","ATTACHMENT_TOO_LARGE","ATTACHMENT_STORAGE_LIMIT_EXCEEDED","ORGANIZATION_MISMATCH","RATE_LIMITED","DELEGATING_USER_REQUIRED","RAG_RETRIEVAL_DISABLED","RETRIEVAL_PHI_BLOCKED","ORG_ADMIN_REQUIRED","PHI_DETECTED","PERSONA_NO_DRAFT","PERSONA_ALREADY_DRAFT","PERSONA_NOT_PRIVATE","INTEGRATIONS_DISABLED","SOLVER_SPEC_INVALID","SOLVER_UNAVAILABLE","CONVERSATION_OWNER_REQUIRED","UNAUTHENTICATED","API_KEY_REVOKED","API_KEY_EXPIRED","IP_NOT_ALLOWED","FORBIDDEN","INSUFFICIENT_ROLE","MISSING_APP_ID","BOT_VERIFICATION_REQUIRED","SERVICE_UNAVAILABLE","ORG_FROZEN"],"isRequired":true,"uniqueKey":"oneOf.2.error.hasp_code","typeLabel":"enum\u003cstring>"},"hasp_request_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.error.hasp_request_id","typeLabel":"string"},"hasp_details":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"oneOf.2.error.hasp_details.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"oneOf.2.error.hasp_details","typeLabel":"object"}},"required":["type","message","hasp_code","hasp_request_id","hasp_details"],"isRequired":true,"uniqueKey":"oneOf.2.error","typeLabel":"object"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"error":{"type":"authentication","code":"AGENT_CREDENTIAL_NOT_FOUND","message":"Conversation not found.","param":"conversation_id","details":null,"retryable":true,"request_id":"\u003cstring>"},"meta":{"request_id":"\u003cstring>"},"errors":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"9e9ac2f1-81c6-46d9-9356-3dc99f3fdfae":{"description":"Validation error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Errors overview.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"errors":{"type":"object","description":"A detailed description of each field that failed validation.","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"errors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"errors.additionalProperties","typeLabel":"string[]"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object"}},"required":["message","errors"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","errors":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"09410eba-c15b-47ba-9a1a-651797b8e979":{"description":"Rate limit exceeded. Retry after the window indicated by `Retry-After`.","content":{"application/json":{"schema":{"type":"object","examples":[{"success":false,"error":{"type":"rate_limited","code":"RATE_LIMITED","message":"Rate limit exceeded (per-key, per-org, or daily cap, depending on which limiter tripped).","param":null,"details":null,"retryable":true,"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"},"meta":{"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"}}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"type":"rate_limited","code":"RATE_LIMITED","message":"Rate limit exceeded (per-key, per-org, or daily cap, depending on which limiter tripped).","param":null,"details":null,"retryable":true,"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"},"meta":{"request_id":"01JQREQ7XZQK5N6PZ1VVXHYB8T"}}}},"exampleType":"generated"}},"headers":{"Retry-After":{"description":"Seconds until the rate-limit window resets.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"The request cap for the current window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests remaining in the current window (0 on a 429).","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix timestamp when the window resets.","schema":{"type":"integer"}}},"exampleType":"generated"},"c860c389-6e80-4945-9135-5354fd564fc4":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","const":"INFERENCE_UPSTREAM_FAILURE","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","const":"Inference stream failed.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"error":{"code":"INFERENCE_UPSTREAM_FAILURE","message":"Inference stream failed."}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"079b2cee-06ca-417b-a7e4-999731dd711b":{"http":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"http"}}},"servers":{"b3c03bbb-59fd-4413-b9f4-297f26f6b9f9":{"url":"https://api.usehasp.com/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"http"},"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":"http","name":"Authorization"}],"title":"http"}]},"originalFileLocation":"openapi/v1.json"},"subdomain":"workapps","siteName":"HASP","title":"Run HASP's native chat completion for the caller's org - HASP","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T13:19:02.396Z","originalFileLocation":"ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org.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=\"Streams by default, or returns the assembled response.\">\u003cmeta data-mint-head name=\"application-name\" content=\"HASP\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/workapps/kP-rXhixNqC1D8jR/_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/workapps/kP-rXhixNqC1D8jR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/workapps/kP-rXhixNqC1D8jR/_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/workapps/kP-rXhixNqC1D8jR/_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/workapps/kP-rXhixNqC1D8jR/_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/workapps/kP-rXhixNqC1D8jR/_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/workapps/kP-rXhixNqC1D8jR/_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/workapps/kP-rXhixNqC1D8jR/_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/workapps/kP-rXhixNqC1D8jR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run HASP\u0026#x27;s native chat completion for the caller\u0026#x27;s org - HASP\">\u003cmeta data-mint-head property=\"og:description\" content=\"Streams by default, or returns the assembled response.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HASP\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://workapps.mintlify.site/_mintlify/api/og/v2?division=Chat\u0026amp;title=Run+HASP%27s+native+chat+completion+for+the+caller%27s+org\u0026amp;description=Streams+by+default%2C+or+returns+the+assembled+response.\u0026amp;theme=262f935bc2f41b10b1c70bfe\u0026amp;signature=9bf716459f43f74f8ae926796821e79b55ecd1ea7a533932c5a5caa19908e95a\">\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=\"Run HASP\u0026#x27;s native chat completion for the caller\u0026#x27;s org - HASP\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Streams by default, or returns the assembled response.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://workapps.mintlify.site/_mintlify/api/og/v2?division=Chat\u0026amp;title=Run+HASP%27s+native+chat+completion+for+the+caller%27s+org\u0026amp;description=Streams+by+default%2C+or+returns+the+assembled+response.\u0026amp;theme=262f935bc2f41b10b1c70bfe\u0026amp;signature=9bf716459f43f74f8ae926796821e79b55ecd1ea7a533932c5a5caa19908e95a\">\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/workapps/kP-rXhixNqC1D8jR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"HASP\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0EA5E9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.usehasp.com/#organization\",\"name\":\"HASP\",\"url\":\"https://docs.usehasp.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/workapps/0CUJixHMbM2i7Uxm/logo/light.svg?fit=max\u0026auto=format\u0026n=0CUJixHMbM2i7Uxm\u0026q=85\u0026s=ec1dbeb022fb6132da3624b1705c42c1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.usehasp.com#website\",\"name\":\"HASP\",\"url\":\"https://docs.usehasp.com\",\"publisher\":{\"@id\":\"https://docs.usehasp.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org#webpage\",\"url\":\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org\",\"name\":\"Run HASP's native chat completion for the caller's org\",\"description\":\"Streams by default, or returns the assembled response.\",\"dateModified\":\"2026-11-04T13:19:02.396Z\",\"isPartOf\":{\"@id\":\"https://docs.usehasp.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AI API\",\"item\":\"https://docs.usehasp.com/ai-api/quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Endpoints\",\"item\":\"https://docs.usehasp.com/ai-api/endpoints/agentversions/list-all-versions-for-an-agent-draft-+-published-newest-first-cursor-paginated\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Run HASP's native chat completion for the caller's org\",\"item\":\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org#apireference\",\"headline\":\"Run HASP's native chat completion for the caller's org\",\"name\":\"Run HASP's native chat completion for the caller's org\",\"description\":\"Streams by default, or returns the assembled response.\",\"url\":\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org\",\"mainEntityOfPage\":{\"@id\":\"https://docs.usehasp.com/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org#webpage\"},\"dateModified\":\"2026-11-04T13:19:02.396Z\",\"publisher\":{\"@id\":\"https://docs.usehasp.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.usehasp.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"HASP\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"HASP","nav":{"global":null,"groups":[{"group":"AI Studio","pages":[{"title":"Getting Started with AI Studio","href":"/studio/quickstart"},{"title":"Project Model","href":"/studio/projects"},{"title":"Apps Authoring","href":"/studio/apps"},{"title":"Workflow Authoring","href":"/studio/workflows"},{"title":"Entities","href":"/studio/entities"},{"title":"Integrations","href":"/studio/integrations"},{"title":"Webhooks","href":"/studio/webhooks"},{"title":"Trace \u0026 Replay","href":"/studio/trace-replay"},{"title":"Release \u0026 Sandbox","href":"/studio/release-sandbox"},{"title":"Dashboards","href":"/studio/dashboards"},{"title":"Settings","href":"/studio/settings"},{"title":"Compliance \u0026 Audit","href":"/studio/compliance-audit"},{"title":"A2A Protocol","href":"/studio/a2a-protocol"},{"title":"API Reference","href":"/studio/api-reference"},{"group":"Examples","pages":[{"title":"Example: Patient Intake \u0026 Triage","href":"/studio/examples/patient-intake"},{"title":"Example: Multi-Agent Care Coordination","href":"/studio/examples/care-coordination"},{"title":"Example: Scheduled Compliance Scan","href":"/studio/examples/compliance-scan"},{"title":"Example: Referral Routing \u0026 Follow-Up","href":"/studio/examples/referral-routing"}]}]},{"group":"Platform","pages":[{"title":"Platform Overview","href":"/platform/overview"},{"title":"Assistant","href":"/platform/assistant"},{"title":"Compliance Posture","href":"/platform/compliance-posture"},{"title":"BAA Structure","href":"/platform/baa-structure"},{"title":"Audit Chain","href":"/platform/audit-chain"},{"title":"Error Handling","href":"/platform/error-handling"},{"title":"Rate Limits","href":"/platform/rate-limits"},{"title":"Setting up alert destinations","href":"/platform/alert-destinations"},{"title":"Knowledge Base \u0026 RAG","href":"/platform/knowledge-base"},{"group":"OAuth \u0026 Applications","pages":[{"title":"OAuth 2.1 Quickstart","href":"/platform/oauth/quickstart"},{"title":"PKCE (Proof Key for Code Exchange)","href":"/platform/oauth/pkce"},{"title":"Consent Screen","href":"/platform/oauth/consent-screen"},{"title":"Token Introspection","href":"/platform/oauth/introspection"},{"title":"Discovery \u0026 Metadata","href":"/platform/oauth/discovery"},{"title":"Device Authorization","href":"/platform/oauth/device-authorization"},{"title":"OAuth FAQ","href":"/platform/oauth/faq"}]}]},{"group":"AI API","pages":[{"title":"Quickstart","href":"/ai-api/quickstart"},{"title":"Authentication","href":"/ai-api/authentication"},{"group":"Concepts","pages":[{"title":"PHI Guard","href":"/ai-api/concepts/phi-guard"},{"title":"Identifier Contract","href":"/ai-api/concepts/identifiers"},{"title":"BAA Gating","href":"/ai-api/concepts/baa-gating"},{"title":"The store Flag","href":"/ai-api/concepts/store-flag"},{"title":"Native vs. Anthropic-Compat","href":"/ai-api/concepts/native-vs-anthropic"},{"title":"Model Selection","href":"/ai-api/concepts/model-selection"},{"title":"Budget Controls \u0026 Billing Transparency","href":"/ai-api/concepts/budget-controls"},{"title":"Idempotency","href":"/ai-api/concepts/idempotency"},{"title":"Pagination","href":"/ai-api/concepts/pagination"},{"title":"Versioning","href":"/ai-api/concepts/versioning"}]},{"group":"Control Plane","pages":[{"title":"API Keys","href":"/ai-api/control/api-keys"},{"title":"Identity","href":"/ai-api/control/identity"},{"title":"Usage","href":"/ai-api/control/usage"},{"title":"Budget","href":"/ai-api/control/budget"},{"title":"Models","href":"/ai-api/control/models"},{"title":"Model access","href":"/ai-api/control/model-access"},{"title":"Webhooks","href":"/ai-api/control/webhooks"},{"title":"Audit Log","href":"/ai-api/control/audit"},{"title":"Files","href":"/ai-api/control/files"},{"title":"Conversations","href":"/ai-api/control/conversations"},{"title":"Personas","href":"/ai-api/control/personas"},{"title":"Customers","href":"/ai-api/control/customers"}]},{"group":"Agents","pages":[{"title":"Agent Identity Overview","href":"/ai-api/agents/overview"},{"title":"Registering Agents","href":"/ai-api/agents/registering-agents"},{"title":"Issuing Credentials","href":"/ai-api/agents/issuing-credentials"},{"title":"Scope Grants","href":"/ai-api/agents/scope-grants"},{"title":"Revocation","href":"/ai-api/agents/revocation"}]},{"group":"Tools","pages":[{"title":"Tools Overview","href":"/ai-api/tools/overview"},{"title":"web.search","href":"/ai-api/tools/web-search"},{"title":"web.fetch","href":"/ai-api/tools/web-fetch"},{"title":"knowledge.search","href":"/ai-api/tools/knowledge-search"}]},{"group":"Reference","pages":[{"title":"POST /v1/ai/chat","href":"/ai-api/reference/chat"},{"title":"POST /v1/messages","href":"/ai-api/reference/messages"},{"title":"POST /v1/chat/completions","href":"/ai-api/reference/chat-completions"},{"title":"Constraint Solving","href":"/ai-api/reference/solve"},{"title":"Error Reference","href":"/ai-api/reference/errors"},{"title":"Rate Limits","href":"/ai-api/reference/rate-limits"}]},{"group":"Endpoints","pages":[{"group":"AgentVersions","pages":[{"title":"List all versions for an agent (draft + published, newest first), cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /agents/{agentId}/versions","href":"/ai-api/endpoints/agentversions/list-all-versions-for-an-agent-draft-+-published-newest-first-cursor-paginated"},{"title":"Retrieve a specific version by version number","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /agents/{agentId}/versions/{version_number}","href":"/ai-api/endpoints/agentversions/retrieve-a-specific-version-by-version-number"},{"title":"Create or update the current draft version for an agent","deprecated":null,"version":null,"openapi":"/openapi/v1.json put /agents/{agentId}/draft","href":"/ai-api/endpoints/agentversions/create-or-update-the-current-draft-version-for-an-agent"},{"title":"Publish the current draft version","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /agents/{agentId}/draft/publish","href":"/ai-api/endpoints/agentversions/publish-the-current-draft-version"}]},{"group":"Agents","pages":[{"title":"List agents for the caller's org, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /agents","href":"/ai-api/endpoints/agents/list-agents-for-the-callers-org-cursor-paginated"},{"title":"Register a new agent","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /agents","href":"/ai-api/endpoints/agents/register-a-new-agent"},{"title":"Retrieve a single agent","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /agents/{agentId}","href":"/ai-api/endpoints/agents/retrieve-a-single-agent"},{"title":"Update agent settings","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /agents/{agentId}","href":"/ai-api/endpoints/agents/update-agent-settings"},{"title":"Archive an agent (revokes all active credentials)","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /agents/{agentId}/archive","href":"/ai-api/endpoints/agents/archive-an-agent-revokes-all-active-credentials"},{"title":"Reactivate an archived agent","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /agents/{agentId}/reactivate","href":"/ai-api/endpoints/agents/reactivate-an-archived-agent"}]},{"group":"AiMessages","pages":[{"title":"Retrieve a previously-issued inference message by id","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /ai/messages/{id}","href":"/ai-api/endpoints/aimessages/retrieve-a-previously-issued-inference-message-by-id"}]},{"group":"ApiKeys","pages":[{"title":"List all non-revoked personal access tokens for the caller's org, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /api_keys","href":"/ai-api/endpoints/apikeys/list-all-non-revoked-personal-access-tokens-for-the-callers-org-cursor-paginated"},{"title":"Issue a new personal access token for the caller's org. Returns the plaintext token once","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /api_keys","href":"/ai-api/endpoints/apikeys/issue-a-new-personal-access-token-for-the-callers-org-returns-the-plaintext-token-once"},{"title":"Retrieve a single non-revoked personal access token. Scoped to the caller's org","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /api_keys/{keyId}","href":"/ai-api/endpoints/apikeys/retrieve-a-single-non-revoked-personal-access-token-scoped-to-the-callers-org"},{"title":"Revoke a personal access token. Scoped to the caller's org","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /api_keys/{keyId}","href":"/ai-api/endpoints/apikeys/revoke-a-personal-access-token-scoped-to-the-callers-org"}]},{"group":"ApiKeysBulk","pages":[{"title":"Bulk revoke personal access tokens for the caller's org, returning per-item results","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /api_keys/bulk","href":"/ai-api/endpoints/apikeysbulk/bulk-revoke-personal-access-tokens-for-the-callers-org-returning-per-item-results"}]},{"group":"Audit","pages":[{"title":"List audit log entries for the caller's org, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /audit","href":"/ai-api/endpoints/audit/list-audit-log-entries-for-the-callers-org-cursor-paginated"},{"title":"Retrieve a single audit log entry. Scoped to the caller's org","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /audit/{eventId}","href":"/ai-api/endpoints/audit/retrieve-a-single-audit-log-entry-scoped-to-the-callers-org"}]},{"group":"AuditExportDownload","pages":[{"title":"Download a signed audit-export ZIP","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /audit/exports/{export}/download","href":"/ai-api/endpoints/auditexportdownload/download-a-signed-audit-export-zip"}]},{"group":"AuditExports","pages":[{"title":"Request a signed audit export","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /audit/exports","href":"/ai-api/endpoints/auditexports/request-a-signed-audit-export"},{"title":"Poll a requested export","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /audit/exports/{export}","href":"/ai-api/endpoints/auditexports/poll-a-requested-export"}]},{"group":"Baa","pages":[{"title":"Return the org's current BAA status and current acceptance metadata","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /compliance/baa","href":"/ai-api/endpoints/baa/return-the-orgs-current-baa-status-and-current-acceptance-metadata"},{"title":"List all BAA acceptances for the org (full history), cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /compliance/baa/acceptances","href":"/ai-api/endpoints/baa/list-all-baa-acceptances-for-the-org-full-history-cursor-paginated"},{"title":"Return a single BAA acceptance record","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /compliance/baa/acceptances/{acceptanceId}","href":"/ai-api/endpoints/baa/return-a-single-baa-acceptance-record"},{"title":"Download the executed PDF for a specific acceptance","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /compliance/baa/acceptances/{acceptanceId}/download","href":"/ai-api/endpoints/baa/download-the-executed-pdf-for-a-specific-acceptance"}]},{"group":"Budget","pages":[{"title":"Return the caller org's budget settings (read-only)","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /usage/budget","href":"/ai-api/endpoints/budget/return-the-caller-orgs-budget-settings-read-only"},{"title":"Update the spend cap and/or the alert thresholds","description":"Every field is optional — only sent fields change; an empty body\nreturns current state unmodified. Mirrors the in-app mutators but\nemits a single `budget.updated` audit event tagged `source: api` so\nreviewers can tell API-driven changes from console changes.","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /usage/budget","href":"/ai-api/endpoints/budget/update-the-spend-cap-andor-the-alert-thresholds"}]},{"group":"Chat","pages":[{"title":"Run HASP's native chat completion for the caller's org","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /ai/chat","href":"/ai-api/endpoints/chat/run-hasps-native-chat-completion-for-the-callers-org"}]},{"group":"ChatCompletions","pages":[{"title":"Handle an OpenAI Chat Completions-compatible request, streaming or returning the assembled response","description":null,"deprecated":null,"version":null,"openapi":"/openapi/v1.json post /chat/completions","href":"/ai-api/endpoints/chatcompletions/handle-an-openai-chat-completions-compatible-request-streaming-or-returning-the-assembled-response"}]},{"group":"ConversationMessages","pages":[{"title":"Read a conversation's transcript, oldest turn first","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /conversations/{conversation}/messages","href":"/ai-api/endpoints/conversationmessages/read-a-conversations-transcript-oldest-turn-first"},{"title":"Export a conversation's transcript in one response","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /conversations/{conversation}/export","href":"/ai-api/endpoints/conversationmessages/export-a-conversations-transcript-in-one-response"},{"title":"List the files bound to a conversation","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /conversations/{conversation}/attachments","href":"/ai-api/endpoints/conversationmessages/list-the-files-bound-to-a-conversation"}]},{"group":"Conversations","pages":[{"title":"List the caller's own conversations, most recently updated first","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /conversations","href":"/ai-api/endpoints/conversations/list-the-callers-own-conversations-most-recently-updated-first"},{"title":"Open a server-owned conversation and take custody of its transcript","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /conversations","href":"/ai-api/endpoints/conversations/open-a-server-owned-conversation-and-take-custody-of-its-transcript"},{"title":"Fetch one conversation's metadata","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /conversations/{conversation}","href":"/ai-api/endpoints/conversations/fetch-one-conversations-metadata"},{"title":"Update a conversation's metadata","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /conversations/{conversation}","href":"/ai-api/endpoints/conversations/update-a-conversations-metadata"}]},{"group":"CountTokens","pages":[{"title":"Count input tokens for an Anthropic-compatible request","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /messages/count_tokens","href":"/ai-api/endpoints/counttokens/count-input-tokens-for-an-anthropic-compatible-request"}]},{"group":"Credentials","pages":[{"title":"List credentials for an agent, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /agents/{agentId}/credentials","href":"/ai-api/endpoints/credentials/list-credentials-for-an-agent-cursor-paginated"},{"title":"Issue a new credential for an agent","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /agents/{agentId}/credentials","href":"/ai-api/endpoints/credentials/issue-a-new-credential-for-an-agent"},{"title":"Retrieve a single credential","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /agents/{agentId}/credentials/{credentialId}","href":"/ai-api/endpoints/credentials/retrieve-a-single-credential"},{"title":"Revoke a credential (and all delegation descendants)","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /agents/{agentId}/credentials/{credentialId}/revoke","href":"/ai-api/endpoints/credentials/revoke-a-credential-and-all-delegation-descendants"}]},{"group":"Customers","pages":[{"title":"List the org's customers, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /customers","href":"/ai-api/endpoints/customers/list-the-orgs-customers-cursor-paginated"},{"title":"Create a customer","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /customers","href":"/ai-api/endpoints/customers/create-a-customer"},{"title":"Retrieve a single customer","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /customers/{customerId}","href":"/ai-api/endpoints/customers/retrieve-a-single-customer"},{"title":"Update a customer's mutable attributes. Every field is optional — only\nsent fields change. A `status` change routes through the lifecycle\ntransition (suspension fails the customer's credentials closed)","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /customers/{customerId}","href":"/ai-api/endpoints/customers/update-a-customers-mutable-attributes-every-field-is-optional-—-onlysent-fields-change-a-`status`-change-routes-through-the-lifecycletransition-suspension-fails-the-customers-credentials-closed"},{"title":"Assign a project to this customer","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /customers/{customerId}/projects","href":"/ai-api/endpoints/customers/assign-a-project-to-this-customer"},{"title":"Release a project from this customer back to the builder's\ndirectly-held set","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /customers/{customerId}/projects/{projectId}","href":"/ai-api/endpoints/customers/release-a-project-from-this-customer-back-to-the-buildersdirectly-held-set"}]},{"group":"EndUserExport","pages":[{"title":"Export a runtime end user's data for GDPR data portability","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /orgs/{organization}/end-users/{runtimeUser}/export","href":"/ai-api/endpoints/enduserexport/export-a-runtime-end-users-data-for-gdpr-data-portability"}]},{"group":"Files","pages":[{"title":"List uploaded files for the caller's org, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /files","href":"/ai-api/endpoints/files/list-uploaded-files-for-the-callers-org-cursor-paginated"},{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /files","href":"/ai-api/endpoints/files/upload-a-file"},{"title":"Retrieve metadata for a single uploaded file by id","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /files/{id}","href":"/ai-api/endpoints/files/retrieve-metadata-for-a-single-uploaded-file-by-id"},{"title":"Delete an uploaded file and its storage object","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /files/{id}","href":"/ai-api/endpoints/files/delete-an-uploaded-file-and-its-storage-object"},{"title":"Return the stored file content","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /files/{id}/content","href":"/ai-api/endpoints/files/return-the-stored-file-content"}]},{"group":"Identity","pages":[{"title":"Return the authenticated caller's own identity","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /me","href":"/ai-api/endpoints/identity/return-the-authenticated-callers-own-identity"}]},{"group":"IntegrationBindings","pages":[{"title":"List bindings for a custom_http integration credential, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /integrations/{integrationId}/bindings","href":"/ai-api/endpoints/integrationbindings/list-bindings-for-a-custom_http-integration-credential-cursor-paginated"},{"title":"Bind a custom_http integration credential into a project","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /integrations/{integrationId}/bindings","href":"/ai-api/endpoints/integrationbindings/bind-a-custom_http-integration-credential-into-a-project"},{"title":"Remove a binding. The underlying credential is unaffected","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /integrations/{integrationId}/bindings/{bindingId}","href":"/ai-api/endpoints/integrationbindings/remove-a-binding-the-underlying-credential-is-unaffected"}]},{"group":"Integrations","pages":[{"title":"List all custom_http integration credentials for the caller's org, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /integrations","href":"/ai-api/endpoints/integrations/list-all-custom_http-integration-credentials-for-the-callers-org-cursor-paginated"},{"title":"Register a new custom_http integration: endpoint config + write-only secret","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /integrations","href":"/ai-api/endpoints/integrations/register-a-new-custom_http-integration:-endpoint-config-+-write-only-secret"},{"title":"Retrieve a single custom_http integration credential's metadata. Never\nincludes the stored secret","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /integrations/{integrationId}","href":"/ai-api/endpoints/integrations/retrieve-a-single-custom_http-integration-credentials-metadata-neverincludes-the-stored-secret"},{"title":"Revoke a custom_http integration credential (ADR-2Q9RMV)","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /integrations/{integrationId}","href":"/ai-api/endpoints/integrations/revoke-a-custom_http-integration-credential-adr-2q9rmv"},{"title":"Replace the secret for an existing custom_http integration credential","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /integrations/{integrationId}/rotate-secret","href":"/ai-api/endpoints/integrations/replace-the-secret-for-an-existing-custom_http-integration-credential"}]},{"group":"KnowledgeDocument","pages":[{"title":"List the org's Document RAG knowledge base documents, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /knowledge","href":"/ai-api/endpoints/knowledgedocument/list-the-orgs-document-rag-knowledge-base-documents-cursor-paginated"},{"title":"Upload a document into the org's Document RAG knowledge base","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /knowledge","href":"/ai-api/endpoints/knowledgedocument/upload-a-document-into-the-orgs-document-rag-knowledge-base"},{"title":"Search the knowledge base and return matched chunks with scores and citations","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /knowledge/search","href":"/ai-api/endpoints/knowledgedocument/search-the-knowledge-base-and-return-matched-chunks-with-scores-and-citations"},{"title":"Retrieve metadata for a single knowledge base document by id","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /knowledge/{document}","href":"/ai-api/endpoints/knowledgedocument/retrieve-metadata-for-a-single-knowledge-base-document-by-id"},{"title":"Delete a knowledge base document and its storage object","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /knowledge/{document}","href":"/ai-api/endpoints/knowledgedocument/delete-a-knowledge-base-document-and-its-storage-object"},{"title":"List a document's chunks (paginated)","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /knowledge/{document}/chunks","href":"/ai-api/endpoints/knowledgedocument/list-a-documents-chunks-paginated"}]},{"group":"Messages","pages":[{"title":"Handle an Anthropic Messages-compatible request, streaming or returning the assembled response","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /messages","href":"/ai-api/endpoints/messages/handle-an-anthropic-messages-compatible-request-streaming-or-returning-the-assembled-response"}]},{"group":"ModelAccess","pages":[{"title":"Return the caller org's model-access settings (API-surface scoped)","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /model-access","href":"/ai-api/endpoints/modelaccess/return-the-caller-orgs-model-access-settings-api-surface-scoped"},{"title":"Update any of the model-access fields","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /model-access","href":"/ai-api/endpoints/modelaccess/update-any-of-the-model-access-fields"}]},{"group":"Models","pages":[{"title":"List every API-surface model with the caller org's access state, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /models","href":"/ai-api/endpoints/models/list-every-api-surface-model-with-the-caller-orgs-access-state-cursor-paginated"},{"title":"Return a single API-surface model's catalog entry","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /models/{modelId}","href":"/ai-api/endpoints/models/return-a-single-api-surface-models-catalog-entry"}]},{"group":"Persona","pages":[{"title":"GET /v1/assistant/persona","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /assistant/persona","href":"/ai-api/endpoints/persona/get-v1assistantpersona"},{"title":"PUT /v1/assistant/persona","deprecated":null,"version":null,"openapi":"/openapi/v1.json put /assistant/persona","href":"/ai-api/endpoints/persona/put-v1assistantpersona"}]},{"group":"Personas","pages":[{"title":"List personas visible to the caller, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /personas","href":"/ai-api/endpoints/personas/list-personas-visible-to-the-caller-cursor-paginated"},{"title":"Create a new private persona in draft state","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /personas","href":"/ai-api/endpoints/personas/create-a-new-private-persona-in-draft-state"},{"title":"Retrieve a single persona — the caller's own, or any published\norg-library persona","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /personas/{personaId}","href":"/ai-api/endpoints/personas/retrieve-a-single-persona-—-the-callers-own-or-any-publishedorg-library-persona"},{"title":"Delete a private persona","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /personas/{personaId}","href":"/ai-api/endpoints/personas/delete-a-private-persona"},{"title":"Update a draft persona in place. Errors if the current version is\npublished (call /revise first)","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /personas/{personaId}","href":"/ai-api/endpoints/personas/update-a-draft-persona-in-place-errors-if-the-current-version-ispublished-call-revise-first"},{"title":"Publish the current draft version","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /personas/{personaId}/publish","href":"/ai-api/endpoints/personas/publish-the-current-draft-version"},{"title":"Create a new draft revision from the currently published version","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /personas/{personaId}/revise","href":"/ai-api/endpoints/personas/create-a-new-draft-revision-from-the-currently-published-version"},{"title":"Admin-only: promote a private persona to a new org-library persona","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /personas/{personaId}/promote","href":"/ai-api/endpoints/personas/admin-only:-promote-a-private-persona-to-a-new-org-library-persona"}]},{"group":"Project","pages":[{"title":"List projects in the caller's org, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /projects","href":"/ai-api/endpoints/project/list-projects-in-the-callers-org-cursor-paginated"},{"title":"Create a new project","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /projects","href":"/ai-api/endpoints/project/create-a-new-project"},{"title":"Show a single project","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /projects/{project}","href":"/ai-api/endpoints/project/show-a-single-project"},{"title":"Update a project's mutable attributes. Every field is optional — only\nsent fields change","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /projects/{project}","href":"/ai-api/endpoints/project/update-a-projects-mutable-attributes-every-field-is-optional-—-onlysent-fields-change"},{"title":"Archive a project (reversible; the project row and its data are kept)","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /projects/{project}/archive","href":"/ai-api/endpoints/project/archive-a-project-reversible;-the-project-row-and-its-data-are-kept"}]},{"group":"ProviderStatus","pages":[{"title":"Return the AI gateway's combined upstream provider health for customer monitoring","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /provider-status","href":"/ai-api/endpoints/providerstatus/return-the-ai-gateways-combined-upstream-provider-health-for-customer-monitoring"}]},{"group":"Schema","pages":[{"title":"List all entity definitions for a project, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /projects/{project}/schemas","href":"/ai-api/endpoints/schema/list-all-entity-definitions-for-a-project-cursor-paginated"},{"title":"Create a new entity definition in the project","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /projects/{project}/schemas","href":"/ai-api/endpoints/schema/create-a-new-entity-definition-in-the-project"},{"title":"Show a single entity definition with its fields","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /projects/{project}/schemas/{entity}","href":"/ai-api/endpoints/schema/show-a-single-entity-definition-with-its-fields"},{"title":"Soft-delete an entity definition","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /projects/{project}/schemas/{entity}","href":"/ai-api/endpoints/schema/soft-delete-an-entity-definition"},{"title":"Update an entity definition's mutable attributes. Every field is\noptional — only sent fields change","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /projects/{project}/schemas/{entity}","href":"/ai-api/endpoints/schema/update-an-entity-definitions-mutable-attributes-every-field-isoptional-—-only-sent-fields-change"},{"title":"Create a field on an entity definition","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /projects/{project}/schemas/{entity}/fields","href":"/ai-api/endpoints/schema/create-a-field-on-an-entity-definition"},{"title":"Delete a field from an entity definition","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /projects/{project}/schemas/{entity}/fields/{field}","href":"/ai-api/endpoints/schema/delete-a-field-from-an-entity-definition"},{"title":"Update an existing field. Every field is optional — only sent fields change","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /projects/{project}/schemas/{entity}/fields/{field}","href":"/ai-api/endpoints/schema/update-an-existing-field-every-field-is-optional-—-only-sent-fields-change"}]},{"group":"Solve","pages":[{"title":"Solve a deterministic constraint-satisfaction / assignment problem","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /solve","href":"/ai-api/endpoints/solve/solve-a-deterministic-constraint-satisfaction-assignment-problem"}]},{"group":"Tools","pages":[{"title":"List HASP-supplied tools available for `tool_allowlist` selection","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /tools","href":"/ai-api/endpoints/tools/list-hasp-supplied-tools-available-for-`tool_allowlist`-selection"}]},{"group":"Usage","pages":[{"title":"Return the current billing cycle usage summary visible to the caller","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /usage","href":"/ai-api/endpoints/usage/return-the-current-billing-cycle-usage-summary-visible-to-the-caller"}]},{"group":"WebhookDeliveries","pages":[{"title":"List cursor-paginated delivery history for a webhook endpoint, scoped to the caller's org","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /webhooks/{endpointId}/deliveries","href":"/ai-api/endpoints/webhookdeliveries/list-cursor-paginated-delivery-history-for-a-webhook-endpoint-scoped-to-the-callers-org"}]},{"group":"WebhookDeliveriesBulkReplay","pages":[{"title":"Bulk replay webhook deliveries for the caller's org, enqueuing a new delivery job per item","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /webhooks/deliveries/bulk-replay","href":"/ai-api/endpoints/webhookdeliveriesbulkreplay/bulk-replay-webhook-deliveries-for-the-callers-org-enqueuing-a-new-delivery-job-per-item"}]},{"group":"WebhookEventTypes","pages":[{"title":"List the catalog of webhook event types a webhook endpoint may subscribe to","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /webhooks/event-types","href":"/ai-api/endpoints/webhookeventtypes/list-the-catalog-of-webhook-event-types-a-webhook-endpoint-may-subscribe-to"}]},{"group":"Webhooks","pages":[{"title":"List all non-deleted webhook endpoints for the caller's org, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /webhooks","href":"/ai-api/endpoints/webhooks/list-all-non-deleted-webhook-endpoints-for-the-callers-org-cursor-paginated"},{"title":"Create a new webhook endpoint under an org-owned app","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /webhooks","href":"/ai-api/endpoints/webhooks/create-a-new-webhook-endpoint-under-an-org-owned-app"},{"title":"Retrieve a single webhook endpoint. Scoped to the caller's org","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /webhooks/{endpointId}","href":"/ai-api/endpoints/webhooks/retrieve-a-single-webhook-endpoint-scoped-to-the-callers-org"},{"title":"Delete a webhook endpoint. Scoped to the caller's org","deprecated":null,"version":null,"openapi":"/openapi/v1.json delete /webhooks/{endpointId}","href":"/ai-api/endpoints/webhooks/delete-a-webhook-endpoint-scoped-to-the-callers-org"},{"title":"Update a webhook endpoint's url, events, and/or description","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /webhooks/{endpointId}","href":"/ai-api/endpoints/webhooks/update-a-webhook-endpoints-url-events-andor-description"},{"title":"Rotate a webhook endpoint's signing secret","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /webhooks/{endpointId}/rotate-secret","href":"/ai-api/endpoints/webhooks/rotate-a-webhook-endpoints-signing-secret"}]},{"group":"WebhooksBulk","pages":[{"title":"Bulk delete webhook endpoints for the caller's org, returning per-item results","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /webhooks/bulk","href":"/ai-api/endpoints/webhooksbulk/bulk-delete-webhook-endpoints-for-the-callers-org-returning-per-item-results"}]},{"group":"Workflow","pages":[{"title":"List all current workflow definitions for a project, cursor-paginated","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /projects/{project}/workflows","href":"/ai-api/endpoints/workflow/list-all-current-workflow-definitions-for-a-project-cursor-paginated"},{"title":"Create a new workflow draft","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /projects/{project}/workflows","href":"/ai-api/endpoints/workflow/create-a-new-workflow-draft"},{"title":"Show a single workflow definition","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /projects/{project}/workflows/{workflow}","href":"/ai-api/endpoints/workflow/show-a-single-workflow-definition"},{"title":"Update a workflow draft (name, description, triggers, steps)","deprecated":null,"version":null,"openapi":"/openapi/v1.json patch /projects/{project}/workflows/{workflow}","href":"/ai-api/endpoints/workflow/update-a-workflow-draft-name-description-triggers-steps"},{"title":"Publish the current draft version of a workflow","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /projects/{project}/workflows/{workflow}/publish","href":"/ai-api/endpoints/workflow/publish-the-current-draft-version-of-a-workflow"}]},{"group":"WorkflowRun","pages":[{"title":"Trigger a new workflow run","deprecated":null,"version":null,"openapi":"/openapi/v1.json post /projects/{project}/workflows/{workflow}/runs","href":"/ai-api/endpoints/workflowrun/trigger-a-new-workflow-run"},{"title":"List runs for all workflows in a project (cursor-paginated, newest first)","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /projects/{project}/runs","href":"/ai-api/endpoints/workflowrun/list-runs-for-all-workflows-in-a-project-cursor-paginated-newest-first"},{"title":"Show a single run with its status and outputs","deprecated":null,"version":null,"openapi":"/openapi/v1.json get /projects/{project}/runs/{run}","href":"/ai-api/endpoints/workflowrun/show-a-single-run-with-its-status-and-outputs"}]}]},{"title":"Compatibility Policy","href":"/ai-api/compatibility"},{"title":"Changelog","href":"/ai-api/changelog"}]},{"group":"Data API","pages":[{"title":"Data API overview","href":"/data-api/overview"},{"group":"Endpoints","pages":[{"group":"Bootstrap","pages":[{"title":"Bootstrap the app","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json get /bootstrap","href":"/data-api/endpoints/bootstrap/bootstrap-the-app"}]},{"group":"EntityRecordFile","pages":[{"title":"Upload a file and attach it to an EntityRecord","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json post /projects/{project}/entities/{entity}/records/{id}/files","href":"/data-api/endpoints/entityrecordfile/upload-a-file-and-attach-it-to-an-entityrecord"},{"title":"Generate a signed download URL for an EntityRecordFile","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json get /projects/{project}/files/{fileId}","href":"/data-api/endpoints/entityrecordfile/generate-a-signed-download-url-for-an-entityrecordfile"}]},{"group":"EntitySchema","pages":[{"title":"Return the project's entity schema — every entity definition and its fields","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json get /projects/{project}/schema","href":"/data-api/endpoints/entityschema/return-the-projects-entity-schema-—-every-entity-definition-and-its-fields"}]},{"group":"Records","pages":[{"title":"Bulk-create records","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json post /projects/{project}/entities/{entity}/records/bulk","href":"/data-api/endpoints/records/bulk-create-records"},{"title":"Bulk-delete records","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json delete /projects/{project}/entities/{entity}/records/bulk","href":"/data-api/endpoints/records/bulk-delete-records"},{"title":"Bulk-update records","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json patch /projects/{project}/entities/{entity}/records/bulk","href":"/data-api/endpoints/records/bulk-update-records"},{"title":"List records","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json get /projects/{project}/entities/{entity}/records","href":"/data-api/endpoints/records/list-records"},{"title":"Create a record","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json post /projects/{project}/entities/{entity}/records","href":"/data-api/endpoints/records/create-a-record"},{"title":"Retrieve a record","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json get /projects/{project}/entities/{entity}/records/{id}","href":"/data-api/endpoints/records/retrieve-a-record"},{"title":"Delete a record","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json delete /projects/{project}/entities/{entity}/records/{id}","href":"/data-api/endpoints/records/delete-a-record"},{"title":"Update a record","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json patch /projects/{project}/entities/{entity}/records/{id}","href":"/data-api/endpoints/records/update-a-record"},{"title":"Submit a record anonymously","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json post /projects/{project}/entities/{entity}/records/anonymous","href":"/data-api/endpoints/records/submit-a-record-anonymously"}]},{"group":"Status","pages":[{"title":"Check status","deprecated":null,"version":null,"openapi":"/openapi/data-v1.json get /status","href":"/data-api/endpoints/status/check-status"}]}]}]},{"group":"App Builder SDK","pages":[{"title":"Getting Started","href":"/app-builder/getting-started"},{"group":"SDK","pages":[{"title":"SDK Initialization","href":"/app-builder/sdk/initialization"},{"title":"Records (CRUD)","href":"/app-builder/sdk/records"},{"title":"Bootstrap \u0026 Schema","href":"/app-builder/sdk/bootstrap"},{"title":"Bulk Operations","href":"/app-builder/sdk/bulk-operations"},{"title":"File Uploads \u0026 Downloads","href":"/app-builder/sdk/file-uploads"},{"title":"Filtering","href":"/app-builder/sdk/filtering"},{"title":"Pagination","href":"/app-builder/sdk/pagination"},{"title":"Error Handling","href":"/app-builder/sdk/error-handling"},{"title":"Maintenance Mode","href":"/app-builder/sdk/maintenance-mode"},{"title":"Cancellation \u0026 Cleanup","href":"/app-builder/sdk/cancellation-and-cleanup"}]},{"group":"Reference","pages":[{"title":"Field Types","href":"/app-builder/reference/field-types"},{"title":"Roles \u0026 Permissions","href":"/app-builder/reference/roles"},{"title":"Limits","href":"/app-builder/reference/limits"},{"title":"Outbound Webhooks","href":"/app-builder/reference/outbound-webhooks"},{"title":"Inbound Webhooks","href":"/app-builder/reference/inbound-webhooks"},{"title":"Admin Overrides","href":"/app-builder/reference/admin-overrides"}]},{"group":"Guides","pages":[{"title":"Schema Design","href":"/app-builder/guides/schema-design"},{"title":"Role-Based UI","href":"/app-builder/guides/role-based-ui"},{"title":"Example: Task Tracker","href":"/app-builder/guides/examples/task-tracker"},{"title":"Example: Contact Directory","href":"/app-builder/guides/examples/contact-directory"},{"title":"Example: Inventory Tracker","href":"/app-builder/guides/examples/inventory-tracker"}]}]}]},"basePath":"","title":"Run HASP's native chat completion for the caller's org - HASP","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}