{
"error": {
"message": "Fix the request; `param` names the field.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_request"
}
}
{
"error": {
"message": "Check the key and the Authorization header.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
}
{
"error": {
"message": "Add credits in the console, or lower the maximum answer length.",
"type": "invalid_request_error",
"param": null,
"code": "insufficient_credits"
}
}
{
"error": {
"message": "Use a model from `GET /v1/models`.",
"type": "invalid_request_error",
"param": null,
"code": "model_not_found"
}
}
{
"error": {
"message": "Use POST for generation and GET for models.",
"type": "invalid_request_error",
"param": null,
"code": "method_not_allowed"
}
}
{
"error": {
"message": "Send at most 1.45 MB of JSON.",
"type": "invalid_request_error",
"param": null,
"code": "request_too_large"
}
}
{
"error": {
"message": "At 400, 413 or 422 the model backend rejected the request: fix it. At 502, retry with exponential backoff.",
"type": "invalid_request_error",
"param": null,
"code": "upstream_error"
}
}
{
"error": {
"message": "Wait for `retry-after` seconds; the `x-ratelimit-*` headers show the limits.",
"type": "invalid_request_error",
"param": null,
"code": "rate_limit_exceeded"
}
}
{
"error": {
"message": "At 400, 413 or 422 the model backend rejected the request: fix it. At 502, retry with exponential backoff.",
"type": "server_error",
"param": null,
"code": "upstream_error"
}
}
{
"error": {
"message": "Retry after `retry-after` seconds for up to 10 minutes.",
"type": "server_error",
"param": null,
"code": "model_starting"
}
}
{
"error": {
"message": "Retry with exponential backoff, or stream the answer.",
"type": "server_error",
"param": null,
"code": "upstream_timeout"
}
}
Create a response
OpenAI’s Responses API. The plan is left out. With stream: true the answer arrives as text/event-stream. Events follow OpenAI’s Responses format, from response.created to response.completed or response.incomplete. There’s no server-side conversation state: previous_response_id and conversation are rejected, store: true doesn’t make responses retrievable, and past responses can’t be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model’s plan and answer, in the workspace’s Logs; see https://www.usenotra.com/docs/platform/account/data-and-privacy.
POST
https://platform.usenotra.com
/
v1
/
responses
Create a response
curl --request POST \ --url https://platform.usenotra.com/v1/responses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "writer-0.1", "input": "Write a changelog entry for faster search."}'
{
"error": {
"message": "Fix the request; `param` names the field.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_request"
}
}
{
"error": {
"message": "Check the key and the Authorization header.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
}
{
"error": {
"message": "Add credits in the console, or lower the maximum answer length.",
"type": "invalid_request_error",
"param": null,
"code": "insufficient_credits"
}
}
{
"error": {
"message": "Use a model from `GET /v1/models`.",
"type": "invalid_request_error",
"param": null,
"code": "model_not_found"
}
}
{
"error": {
"message": "Use POST for generation and GET for models.",
"type": "invalid_request_error",
"param": null,
"code": "method_not_allowed"
}
}
{
"error": {
"message": "Send at most 1.45 MB of JSON.",
"type": "invalid_request_error",
"param": null,
"code": "request_too_large"
}
}
{
"error": {
"message": "At 400, 413 or 422 the model backend rejected the request: fix it. At 502, retry with exponential backoff.",
"type": "invalid_request_error",
"param": null,
"code": "upstream_error"
}
}
{
"error": {
"message": "Wait for `retry-after` seconds; the `x-ratelimit-*` headers show the limits.",
"type": "invalid_request_error",
"param": null,
"code": "rate_limit_exceeded"
}
}
{
"error": {
"message": "At 400, 413 or 422 the model backend rejected the request: fix it. At 502, retry with exponential backoff.",
"type": "server_error",
"param": null,
"code": "upstream_error"
}
}
{
"error": {
"message": "Retry after `retry-after` seconds for up to 10 minutes.",
"type": "server_error",
"param": null,
"code": "model_starting"
}
}
{
"error": {
"message": "Retry with exponential backoff, or stream the answer.",
"type": "server_error",
"param": null,
"code": "upstream_timeout"
}
}
Authorizations
Authorization
string
header
required
An API key from the console, starting with nl_live_ or nl_test_.
Body
application/json
Parameters not listed here are ignored. stop, logit_bias, previous_response_id, conversation, background, prompt and tools other than functions are rejected with 400 unsupported_parameter.
model
enum<string>
required
Available options:
writer-0.1
input
string(Message · object | Function call · object | Function call output · object)[]
required
instructions
string
The system prompt.
max_output_tokens
integer
Caps the output, plan included. Without max_output_tokens the model can write up to 32768 tokens. Larger values are lowered to 32768 and to the room left in the 262144-token context window.
Required range: x >= 1
stream
boolean
default:false
Stream the answer as server-sent events.
text
object
Show child attributes
tools
object[]
Show child attributes
tool_choice
enum<string>object
Available options:
auto,
none,
required
parallel_tool_calls
boolean
Set to false to ask for at most one call.
temperature
number
Accepted and range-checked, but writer-0.1 samples with its own fixed settings, so it doesn't change the answer.
Required range: 0 <= x <= 2
top_p
number
Accepted and range-checked, but writer-0.1 samples with its own fixed settings, so it doesn't change the answer.
Required range: 0 <= x <= 1
user
string
Passed to the model.
safety_identifier
string
Passed to the model as user.
metadata
object
Show child attributes
Response
The response, or a stream of events.
id
string
required
Example:
"resp_abc123"
object
string
required
Allowed value: "response"
created_at
integer
required
status
enum<string>
required
Available options:
completed,
incomplete
model
string
required
output
(Message · object | Function call · object)[]
required
Message
Function call
Show child attributes
incomplete_details
object | null
Show child attributes
usage
object | null
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Notra Documentation","description":"Documentation for Notra: track your brand across AI answer engines and turn your team's work into content.","colors":{"primary":"#8b5cf6","light":"#8b5cf6","dark":"#8b5cf6"},"logo":{"light":"https://mintcdn.com/notra/2ET3yj_w1EiaVUnN/logo/notra-wordmark.svg?fit=max\u0026auto=format\u0026n=2ET3yj_w1EiaVUnN\u0026q=85\u0026s=ec067541de0d7eb5eb2bddf6eed3e9b4","dark":"https://mintcdn.com/notra/2ET3yj_w1EiaVUnN/logo/notra-wordmark-dark.svg?fit=max\u0026auto=format\u0026n=2ET3yj_w1EiaVUnN\u0026q=85\u0026s=acc35d633060260aca265100d13e09a1"},"favicon":"https://mintcdn.com/notra/KRbWPF6cEiTVNBm6/favicon.svg?fit=max\u0026auto=format\u0026n=KRbWPF6cEiTVNBm6\u0026q=85\u0026s=ff71fb69837d03de53146d96aad9402a","api":{"url":"full"},"appearance":{"default":"light"},"navbar":{"links":[{"href":"https://www.usenotra.com/discord","label":"Discord"},{"href":"https://platform.usenotra.com","label":"Platform console"},{"href":"https://github.com/usenotra","type":"github"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.usenotra.com"}},"footer":{"socials":{"x":"https://x.com/usenotra","github":"https://github.com/usenotra","discord":"https://www.usenotra.com/discord"}},"search":{"prompt":"Search the Notra docs..."},"seo":{"metatags":{"twitter:site":"@usenotra"}},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":true},"errors":{"404":{"redirect":false,"title":"This page is on a content pipeline of its own","description":"Looks like this page hasn't shipped yet. Try the [quickstart](/quickstart) or the [product map](/geo/product-map)."}},"contextual":{"options":["copy","view","assistant","mcp","chatgpt","claude","cursor"],"display":"header"},"thumbnails":{"preset":"headline"},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"notra","hasAudioNarration":false,"actualSubdomain":"notra","customDomains":["www.usenotra.com"],"gitSource":{"type":"github","owner":"usenotra","repo":"notra","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d4c99ffae5051c40ca6d"},"feedback":{"thumbs":true,"edits":false,"agentFeedback":true,"issues":false},"entitlements":{},"buildId":"6b145c0c238df31c13354b9a","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Developers","count":185},{"language":"default","tag":"Endpoints","count":171},{"language":"default","tag":"GEO","count":116},{"language":"default","tag":"Sites","count":68},{"language":"default","tag":"Analytics","count":33},{"language":"default","tag":"Integrations","count":23},{"language":"default","tag":"Platform","count":22},{"language":"default","tag":"Autopilot","count":17},{"language":"default","tag":"AI Traffic","count":16},{"language":"default","tag":"Posts","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","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":"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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"buttons.css","content":".notra-button,#topbar-cta-button>a{--notra-button-shadow: 0 0 transparent;display:inline-flex;align-items:center;justify-content:center;gap:0.375rem;height:2rem;padding:0 0.625rem;border:1px solid transparent;border-radius:0.5rem;font-size:0.875rem;font-weight:500;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:var(--notra-button-shadow);transition:background-color 150ms ease-out,\n filter 150ms ease-out,\n transform 150ms ease-out}.notra-button-primary,#topbar-cta-button>a{color:oklch(0.997 0 0);border-color:oklch(0.6056 0.2189 292.7172 / 60%);background:linear-gradient(\n 180deg,\n oklch(0.6056 0.2189 292.7172 / 85%),\n oklch(0.6056 0.2189 292.7172)\n );--notra-button-shadow:\n inset 0 1px 0 rgb(255 255 255 / 28%), 0 1px 2px rgb(0 0 0 / 18%)}.notra-button-primary:hover,#topbar-cta-button>a:hover{filter:brightness(1.1)}.notra-button-outline{color:hsl(0 0% 9%);border-color:hsl(0 0% 89.8%);background:hsl(0 0% 100%);--notra-button-shadow: 0 1px 2px rgb(0 0 0 / 5%)}.notra-button-outline:hover{background:hsl(0 0% 96.1%)}.dark .notra-button-outline{color:hsl(0 0% 98%);border-color:hsl(240 4% 20%);background:hsl(240 4% 20% / 30%);--notra-button-shadow: 0 0 transparent}.dark .notra-button-outline:hover{background:hsl(240 4% 20% / 50%)}@supports (corner-shape: squircle){.notra-button,#topbar-cta-button>a{corner-shape:squircle;border-radius:0.75rem}}#topbar-cta-button>a>span{background:transparent}.notra-button:focus-visible,#topbar-cta-button>a:focus-visible{outline:none;border-color:oklch(0.6056 0.2189 292.7172);box-shadow:0 0 0 3px oklch(0.6056 0.2189 292.7172 / 50%),\n var(--notra-button-shadow)}.notra-button:active:not(:disabled),#topbar-cta-button>a:active{transform:scale(0.97)}.notra-button:disabled{cursor:not-allowed;opacity:0.5}@media (prefers-reduced-motion: reduce){.notra-button,#topbar-cta-button>a{transition:none}.notra-button:active:not(:disabled),#topbar-cta-button>a:active{transform:none}}"},{"filePath":"card-icons.css","content":"html.dark [data-component-part=\"card-icon\"] img[src*=\"/images/integrations/posthog.svg\"]{content:url(\"/images/integrations/posthog-dark.svg\")}"},{"filePath":"theme.css","content":"[role=\"menu\"]:has([data-component-part=\"theme-preference-menu-item\"]){opacity:0;pointer-events:none}"}]}
{"page":{"pagePath":"platform/api-reference/responses/create-a-response","slug":"/platform/api-reference/responses/create-a-response","pageMetadata":{"title":"Create a response","description":"OpenAI's Responses API. The plan is left out. With `stream: true` the answer arrives as `text/event-stream`. Events follow OpenAI's Responses format, from `response.created` to `response.completed` or `response.incomplete`. There's no server-side conversation state: `previous_response_id` and `conversation` are rejected, `store: true` doesn't make responses retrievable, and past responses can't be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model's plan and answer, in the workspace's Logs; see https://www.usenotra.com/docs/platform/account/data-and-privacy.","deprecated":null,"version":null,"openapi":"/platform/openapi.json post /v1/responses","href":"/platform/api-reference/responses/create-a-response","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"OpenAI’s Responses API. The plan is left out. With \", _jsx(_components.code, {\n children: \"stream: true\"\n }), \" the answer arrives as \", _jsx(_components.code, {\n children: \"text/event-stream\"\n }), \". Events follow OpenAI’s Responses format, from \", _jsx(_components.code, {\n children: \"response.created\"\n }), \" to \", _jsx(_components.code, {\n children: \"response.completed\"\n }), \" or \", _jsx(_components.code, {\n children: \"response.incomplete\"\n }), \". There’s no server-side conversation state: \", _jsx(_components.code, {\n children: \"previous_response_id\"\n }), \" and \", _jsx(_components.code, {\n children: \"conversation\"\n }), \" are rejected, \", _jsx(_components.code, {\n children: \"store: true\"\n }), \" doesn’t make responses retrievable, and past responses can’t be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model’s plan and answer, in the workspace’s Logs; see \", _jsx(_components.a, {\n href: \"https://www.usenotra.com/docs/platform/account/data-and-privacy\",\n children: \"https://www.usenotra.com/docs/platform/account/data-and-privacy\"\n }), \".\"]\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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Create a response","description":"OpenAI's Responses API. The plan is left out. With `stream: true` the answer arrives as `text/event-stream`. Events follow OpenAI's Responses format, from `response.created` to `response.completed` or `response.incomplete`. There's no server-side conversation state: `previous_response_id` and `conversation` are rejected, `store: true` doesn't make responses retrievable, and past responses can't be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model's plan and answer, in the workspace's Logs; see https://www.usenotra.com/docs/platform/account/data-and-privacy.","deprecated":null,"version":null,"openapi":"/platform/openapi.json post /v1/responses","href":"/platform/api-reference/responses/create-a-response","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/notra/1c34b1755a71d50d/databuddy.js","/docs/_mintlify/custom/notra/5641b035830c1390/theme-toggle.js"],"openApiReferenceData":{"operation":{"tags":["Responses"],"operationId":"createResponse","summary":"Create a response","description":"OpenAI's Responses API. The plan is left out. With `stream: true` the answer arrives as `text/event-stream`. Events follow OpenAI's Responses format, from `response.created` to `response.completed` or `response.incomplete`. There's no server-side conversation state: `previous_response_id` and `conversation` are rejected, `store: true` doesn't make responses retrievable, and past responses can't be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model's plan and answer, in the workspace's Logs; see https://www.usenotra.com/docs/platform/account/data-and-privacy.","requestBody":"c6394495-5de4-401c-a664-5edcec538948","responses":{"200":"cb866bc4-2876-47fd-a356-c829a3feadac","400":"8d743a56-efe8-41bc-8517-51cfe9bd5a22","401":"544587b9-b522-4b27-ac5e-ef77cee2f3b6","402":"d1f2325f-7422-4e34-b0b4-47b22a66e419","404":"beb25c06-8157-4e17-b2ec-7f9d90abb9a6","405":"c28f1216-4abf-47ab-b01b-7762d63ca7a1","413":"c9815652-bdb4-426e-95ab-d5f995f03d3b","422":"344897c6-2609-42bc-a243-0cb7e6b2c442","429":"fbd4d683-10fe-4554-b225-24d42367fae4","502":"297e424d-3275-4e90-a033-de34ed64c5f2","503":"9a1b6ac5-dd39-4cb9-9a78-1a75f1b4c878","504":"bf07d6da-5462-4bf4-a5ca-42991b8b8b8e"},"method":"post","type":"path","servers":["99ab6779-6f67-454e-99ce-975855a02235"],"security":["3afa5d0c-62e3-4c63-ad3f-622b869aec18"],"path":"/v1/responses","baseUrlOptions":["https://platform.usenotra.com"],"title":"Create a response","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","urlDisplay":"full"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"x-notra-rejected-parameters":["stop","logit_bias","previous_response_id","conversation","background","prompt"],"description":"Parameters not listed here are ignored. `stop`, `logit_bias`, `previous_response_id`, `conversation`, `background`, `prompt` and tools other than functions are rejected with 400 `unsupported_parameter`.","properties":{"model":{"type":"string","enum":["writer-0.1"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"input":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"input.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","title":"Message","required":["role","content"],"properties":{"role":{"type":"string","enum":["user","assistant","system","developer"],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["input_text","output_text","text"],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content","typeLabel":"string | object[]"},"type":{"type":"string","const":"message","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"Message · object"},{"type":"object","title":"Function call","required":["type","call_id","name","arguments"],"properties":{"type":{"type":"string","const":"function_call","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"string"},"call_id":{"type":"string","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.call_id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.name","typeLabel":"string"},"arguments":{"type":"string","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.arguments","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"Function call · object"},{"type":"object","title":"Function call output","required":["type","call_id","output"],"properties":{"type":{"type":"string","const":"function_call_output","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"string"},"call_id":{"type":"string","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.call_id","typeLabel":"string"},"output":{"type":"string","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.output","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"Function call output · object"}],"uniqueKey":"input.oneOf.1.items.[INDEX]","typeLabel":"Message · object | Function call · object | Function call output · object"},"maxItems":500,"minItems":1,"isRequired":true,"uniqueKey":"input.oneOf.1","typeLabel":"(Message · object | Function call · object | Function call output · object)[]"}],"isRequired":true,"uniqueKey":"input","typeLabel":"string | (Message · object | Function call · object | Function call output · object)[]"},"instructions":{"type":"string","description":"The system prompt.","uniqueKey":"instructions","typeLabel":"string"},"max_output_tokens":{"type":"integer","minimum":1,"description":"Caps the output, plan included. Without `max_output_tokens` the model can write up to 32768 tokens. Larger values are lowered to 32768 and to the room left in the 262144-token context window.","uniqueKey":"max_output_tokens","typeLabel":"integer"},"stream":{"type":"boolean","default":false,"description":"Stream the answer as server-sent events.","uniqueKey":"stream","typeLabel":"boolean"},"text":{"type":"object","properties":{"format":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"text","isRequired":true,"uniqueKey":"text.format.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"text.format.oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json_object","isRequired":true,"uniqueKey":"text.format.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"text.format.oneOf.1","typeLabel":"object"},{"type":"object","title":"JSON Schema","required":["type","name","schema"],"properties":{"type":{"type":"string","const":"json_schema","isRequired":true,"uniqueKey":"text.format.oneOf.2.type","typeLabel":"string"},"name":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,64}$","isRequired":true,"uniqueKey":"text.format.oneOf.2.name","typeLabel":"string"},"schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"text.format.oneOf.2.schema","typeLabel":"object"},"strict":{"type":"boolean","uniqueKey":"text.format.oneOf.2.strict","typeLabel":"boolean"},"description":{"type":"string","uniqueKey":"text.format.oneOf.2.description","typeLabel":"string"}},"uniqueKey":"text.format.oneOf.2","typeLabel":"JSON Schema · object"}],"uniqueKey":"text.format","typeLabel":"object · object · JSON Schema · object"}},"uniqueKey":"text","typeLabel":"object"},"tools":{"type":"array","items":{"type":"object","required":["type","name"],"properties":{"type":{"type":"string","const":"function","isRequired":true,"uniqueKey":"tools.items.[INDEX].type","typeLabel":"string"},"name":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,64}$","isRequired":true,"uniqueKey":"tools.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"tools.items.[INDEX].description","typeLabel":"string"},"parameters":{"type":"object","description":"A JSON Schema object for the function's arguments.","additionalProperties":true,"uniqueKey":"tools.items.[INDEX].parameters","typeLabel":"object"},"strict":{"type":"boolean","uniqueKey":"tools.items.[INDEX].strict","typeLabel":"boolean"}},"uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools","typeLabel":"object[]"},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"],"uniqueKey":"tool_choice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","required":["type","name"],"properties":{"type":{"type":"string","const":"function","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.name","typeLabel":"string"}},"uniqueKey":"tool_choice.oneOf.1","typeLabel":"object"}],"uniqueKey":"tool_choice","typeLabel":"enum\u003cstring> | object"},"parallel_tool_calls":{"type":"boolean","description":"Set to false to ask for at most one call.","uniqueKey":"parallel_tool_calls","typeLabel":"boolean"},"temperature":{"type":"number","minimum":0,"maximum":2,"description":"Accepted and range-checked, but writer-0.1 samples with its own fixed settings, so it doesn't change the answer.","uniqueKey":"temperature","typeLabel":"number"},"top_p":{"type":"number","minimum":0,"maximum":1,"description":"Accepted and range-checked, but writer-0.1 samples with its own fixed settings, so it doesn't change the answer.","uniqueKey":"top_p","typeLabel":"number"},"user":{"type":"string","description":"Passed to the model.","uniqueKey":"user","typeLabel":"string"},"safety_identifier":{"type":"string","description":"Passed to the model as `user`.","uniqueKey":"safety_identifier","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"model":"writer-0.1","input":"Write a changelog entry for faster search."},"examples":{"Example":{"title":"Example","value":{"model":"writer-0.1","input":"Write a changelog entry for faster search."}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"cb866bc4-2876-47fd-a356-c829a3feadac":{"description":"The response, or a stream of events.","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["id","object","created_at","status","model","output"],"properties":{"id":{"type":"string","examples":["resp_abc123"],"isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","const":"response","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"created_at":{"type":"integer","isRequired":true,"uniqueKey":"created_at","typeLabel":"integer"},"status":{"type":"string","enum":["completed","incomplete"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"model":{"type":"string","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"output":{"type":"array","items":{"oneOf":[{"type":"object","title":"Message","required":["type","id","status","role","content"],"properties":{"type":{"type":"string","const":"message","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.type","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.id","typeLabel":"string"},"status":{"type":"string","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.status","typeLabel":"string"},"role":{"type":"string","const":"assistant","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.role","typeLabel":"string"},"content":{"type":"array","items":{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","const":"output_text","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.content.items.[INDEX].type","typeLabel":"string"},"text":{"type":"string","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.content.items.[INDEX].text","typeLabel":"string"}},"uniqueKey":"output.items.[INDEX].oneOf.0.content.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.content","typeLabel":"object[]"}},"uniqueKey":"output.items.[INDEX].oneOf.0","typeLabel":"Message · object"},{"type":"object","title":"Function call","required":["type","id","call_id","name","arguments","status"],"properties":{"type":{"type":"string","const":"function_call","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.type","typeLabel":"string"},"id":{"type":"string","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.id","typeLabel":"string"},"call_id":{"type":"string","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.call_id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.name","typeLabel":"string"},"arguments":{"type":"string","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.arguments","typeLabel":"string"},"status":{"type":"string","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.status","typeLabel":"string"}},"uniqueKey":"output.items.[INDEX].oneOf.1","typeLabel":"Function call · object"}],"uniqueKey":"output.items.[INDEX]","typeLabel":"Message · object | Function call · object"},"isRequired":true,"uniqueKey":"output","typeLabel":"(Message · object | Function call · object)[]"},"incomplete_details":{"oneOf":[{"type":"object","properties":{"reason":{"type":"string","const":"max_output_tokens","uniqueKey":"incomplete_details.oneOf.0.reason","typeLabel":"string"}},"uniqueKey":"incomplete_details.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"incomplete_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"incomplete_details","typeLabel":"object | null"},"usage":{"oneOf":[{"type":"object","properties":{"input_tokens":{"type":"integer","uniqueKey":"usage.oneOf.0.input_tokens","typeLabel":"integer"},"input_tokens_details":{"type":"object","properties":{"cached_tokens":{"type":"integer","uniqueKey":"usage.oneOf.0.input_tokens_details.cached_tokens","typeLabel":"integer"}},"uniqueKey":"usage.oneOf.0.input_tokens_details","typeLabel":"object"},"output_tokens":{"type":"integer","description":"Output tokens, plan included.","uniqueKey":"usage.oneOf.0.output_tokens","typeLabel":"integer"},"output_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"integer","description":"The plan's share of the output tokens.","uniqueKey":"usage.oneOf.0.output_tokens_details.reasoning_tokens","typeLabel":"integer"}},"uniqueKey":"usage.oneOf.0.output_tokens_details","typeLabel":"object"},"total_tokens":{"type":"integer","uniqueKey":"usage.oneOf.0.total_tokens","typeLabel":"integer"}},"uniqueKey":"usage.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"usage.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"resp_abc123","object":"response","created_at":123,"status":"completed","model":"\u003cstring>","output":[{"type":"message","id":"\u003cstring>","status":"\u003cstring>","role":"assistant","content":[{"type":"output_text","text":"\u003cstring>"}]}],"incomplete_details":{"reason":"max_output_tokens"},"usage":{"input_tokens":123,"input_tokens_details":{"cached_tokens":123},"output_tokens":123,"output_tokens_details":{"reasoning_tokens":123},"total_tokens":123}}}},"exampleType":"generated"},"text/event-stream":{"schema":{"type":"object","description":"One server-sent event in OpenAI's Responses format.","properties":{"type":{"type":"string","uniqueKey":"type","typeLabel":"string"},"sequence_number":{"type":"integer","uniqueKey":"sequence_number","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","sequence_number":123}}},"exampleType":"generated"}},"exampleType":"generated"},"8d743a56-efe8-41bc-8517-51cfe9bd5a22":{"description":"`invalid_request`, `unsupported_parameter`, `context_length_exceeded`, `upstream_error`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Fix the request; `param` names the field.","type":"invalid_request_error","param":null,"code":"invalid_request"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Fix the request; `param` names the field.","type":"invalid_request_error","param":null,"code":"invalid_request"}}}},"exampleType":"examples"}},"exampleType":"examples"},"544587b9-b522-4b27-ac5e-ef77cee2f3b6":{"description":"`invalid_api_key`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Check the key and the Authorization header.","type":"invalid_request_error","param":null,"code":"invalid_api_key"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Check the key and the Authorization header.","type":"invalid_request_error","param":null,"code":"invalid_api_key"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d1f2325f-7422-4e34-b0b4-47b22a66e419":{"description":"`insufficient_credits`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Add credits in the console, or lower the maximum answer length.","type":"invalid_request_error","param":null,"code":"insufficient_credits"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Add credits in the console, or lower the maximum answer length.","type":"invalid_request_error","param":null,"code":"insufficient_credits"}}}},"exampleType":"examples"}},"exampleType":"examples"},"beb25c06-8157-4e17-b2ec-7f9d90abb9a6":{"description":"`model_not_found`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Use a model from `GET /v1/models`.","type":"invalid_request_error","param":null,"code":"model_not_found"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Use a model from `GET /v1/models`.","type":"invalid_request_error","param":null,"code":"model_not_found"}}}},"exampleType":"examples"}},"exampleType":"examples"},"c28f1216-4abf-47ab-b01b-7762d63ca7a1":{"description":"`method_not_allowed`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Use POST for generation and GET for models.","type":"invalid_request_error","param":null,"code":"method_not_allowed"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Use POST for generation and GET for models.","type":"invalid_request_error","param":null,"code":"method_not_allowed"}}}},"exampleType":"examples"}},"exampleType":"examples"},"c9815652-bdb4-426e-95ab-d5f995f03d3b":{"description":"`request_too_large`, `upstream_error`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Send at most 1.45 MB of JSON.","type":"invalid_request_error","param":null,"code":"request_too_large"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Send at most 1.45 MB of JSON.","type":"invalid_request_error","param":null,"code":"request_too_large"}}}},"exampleType":"examples"}},"exampleType":"examples"},"344897c6-2609-42bc-a243-0cb7e6b2c442":{"description":"`upstream_error`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"At 400, 413 or 422 the model backend rejected the request: fix it. At 502, retry with exponential backoff.","type":"invalid_request_error","param":null,"code":"upstream_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"At 400, 413 or 422 the model backend rejected the request: fix it. At 502, retry with exponential backoff.","type":"invalid_request_error","param":null,"code":"upstream_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"fbd4d683-10fe-4554-b225-24d42367fae4":{"description":"`rate_limit_exceeded`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Wait for `retry-after` seconds; the `x-ratelimit-*` headers show the limits.","type":"invalid_request_error","param":null,"code":"rate_limit_exceeded"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Wait for `retry-after` seconds; the `x-ratelimit-*` headers show the limits.","type":"invalid_request_error","param":null,"code":"rate_limit_exceeded"}}}},"exampleType":"examples"}},"exampleType":"examples"},"297e424d-3275-4e90-a033-de34ed64c5f2":{"description":"`upstream_error`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"At 400, 413 or 422 the model backend rejected the request: fix it. At 502, retry with exponential backoff.","type":"server_error","param":null,"code":"upstream_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"At 400, 413 or 422 the model backend rejected the request: fix it. At 502, retry with exponential backoff.","type":"server_error","param":null,"code":"upstream_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"9a1b6ac5-dd39-4cb9-9a78-1a75f1b4c878":{"description":"`model_starting`, `model_overloaded`, `model_unavailable`, `service_unavailable`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Retry after `retry-after` seconds for up to 10 minutes.","type":"server_error","param":null,"code":"model_starting"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Retry after `retry-after` seconds for up to 10 minutes.","type":"server_error","param":null,"code":"model_starting"}}}},"exampleType":"examples"}},"exampleType":"examples"},"bf07d6da-5462-4bf4-a5ca-42991b8b8b8e":{"description":"`upstream_timeout`","headers":{"x-request-id":{"description":"The request's ID. Include it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"OpenAI's error type, such as `invalid_request_error`, `authentication_error`, `insufficient_quota`, `requests`, `tokens` or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field that caused the error.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"type":"string","enum":["invalid_request","unsupported_parameter","context_length_exceeded","invalid_api_key","insufficient_credits","model_not_found","method_not_allowed","request_too_large","rate_limit_exceeded","upstream_error","upstream_timeout","model_starting","model_overloaded","model_unavailable","service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Retry with exponential backoff, or stream the answer.","type":"server_error","param":null,"code":"upstream_timeout"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Retry with exponential backoff, or stream the answer.","type":"server_error","param":null,"code":"upstream_timeout"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"3afa5d0c-62e3-4c63-ad3f-622b869aec18":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key from the console, starting with `nl_live_` or `nl_test_`.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"99ab6779-6f67-454e-99ce-975855a02235":{"url":"https://platform.usenotra.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key from the console, starting with `nl_live_` or `nl_test_`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key from the console, starting with `nl_live_` or `nl_test_`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"platform/openapi.json"},"subdomain":"notra","siteName":"Notra Documentation","title":"Create a response - Notra Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"platform/api-reference/responses/create-a-response.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=\"light\"}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=\"OpenAI\u0026#x27;s Responses API. The plan is left out. With stream: true the answer arrives as text/event-stream. Events follow OpenAI\u0026#x27;s Responses format, from response.created to response.completed or response.incomplete. There\u0026#x27;s no server-side conversation state: previous_response_id and conversation are rejected, store: true doesn\u0026#x27;t make responses retrievable, and past responses can\u0026#x27;t be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model\u0026#x27;s plan and answer, in the workspace\u0026#x27;s Logs; see https://www.usenotra.com/docs/platform/account/data-and-privacy.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Notra Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_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=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a response - Notra Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"OpenAI\u0026#x27;s Responses API. The plan is left out. With stream: true the answer arrives as text/event-stream. Events follow OpenAI\u0026#x27;s Responses format, from response.created to response.completed or response.incomplete. There\u0026#x27;s no server-side conversation state: previous_response_id and conversation are rejected, store: true doesn\u0026#x27;t make responses retrievable, and past responses can\u0026#x27;t be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model\u0026#x27;s plan and answer, in the workspace\u0026#x27;s Logs; see https://www.usenotra.com/docs/platform/account/data-and-privacy.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Notra Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://notra.mintlify.site/docs/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Create+a+response\u0026amp;description=OpenAI%27s+Responses+API.+The+plan+is+left+out.+With+%60stream%3A+true%60+the+answer+arrives+as+%60text%2Fevent-stream%60.+Events+follow+OpenAI%27s+Responses+format%2C+from+%60resp\u0026amp;theme=ee1615b07fb0909d0eced992\u0026amp;signature=adc8a77d2310d80d081ce5533de4d9783be6afeafc28ef166637bd6dde6be1a3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a response - Notra Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"OpenAI\u0026#x27;s Responses API. The plan is left out. With stream: true the answer arrives as text/event-stream. Events follow OpenAI\u0026#x27;s Responses format, from response.created to response.completed or response.incomplete. There\u0026#x27;s no server-side conversation state: previous_response_id and conversation are rejected, store: true doesn\u0026#x27;t make responses retrievable, and past responses can\u0026#x27;t be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model\u0026#x27;s plan and answer, in the workspace\u0026#x27;s Logs; see https://www.usenotra.com/docs/platform/account/data-and-privacy.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://notra.mintlify.site/docs/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Create+a+response\u0026amp;description=OpenAI%27s+Responses+API.+The+plan+is+left+out.+With+%60stream%3A+true%60+the+answer+arrives+as+%60text%2Fevent-stream%60.+Events+follow+OpenAI%27s+Responses+format%2C+from+%60resp\u0026amp;theme=ee1615b07fb0909d0eced992\u0026amp;signature=adc8a77d2310d80d081ce5533de4d9783be6afeafc28ef166637bd6dde6be1a3\">\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=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Notra Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8b5cf6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/platform/api-reference/responses/create-a-response.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.usenotra.com/#organization\",\"name\":\"Notra Documentation\",\"url\":\"https://www.usenotra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/notra/2ET3yj_w1EiaVUnN/logo/notra-wordmark.svg?fit=max\u0026auto=format\u0026n=2ET3yj_w1EiaVUnN\u0026q=85\u0026s=ec067541de0d7eb5eb2bddf6eed3e9b4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.usenotra.com/docs#website\",\"name\":\"Notra Documentation\",\"url\":\"https://www.usenotra.com/docs\",\"publisher\":{\"@id\":\"https://www.usenotra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response#webpage\",\"url\":\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response\",\"name\":\"Create a response\",\"description\":\"OpenAI's Responses API. The plan is left out. With stream: true the answer arrives as text/event-stream. Events follow OpenAI's Responses format, from response.created to response.completed or response.incomplete. There's no server-side conversation state: previous_response_id and conversation are rejected, store: true doesn't make responses retrievable, and past responses can't be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model's plan and answer, in the workspace's Logs; see https://www.usenotra.com/docs/platform/account/data-and-privacy.\",\"isPartOf\":{\"@id\":\"https://www.usenotra.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://www.usenotra.com/docs/platform/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Endpoints\",\"item\":\"https://www.usenotra.com/docs/platform/api-reference/chat-completions/create-a-chat-completion\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a response\",\"item\":\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response#apireference\",\"headline\":\"Create a response\",\"name\":\"Create a response\",\"description\":\"OpenAI's Responses API. The plan is left out. With stream: true the answer arrives as text/event-stream. Events follow OpenAI's Responses format, from response.created to response.completed or response.incomplete. There's no server-side conversation state: previous_response_id and conversation are rejected, store: true doesn't make responses retrievable, and past responses can't be fetched by ID, so send the full conversation each time. Notra still stores every request, with its prompt, the model's plan and answer, in the workspace's Logs; see https://www.usenotra.com/docs/platform/account/data-and-privacy.\",\"url\":\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response\",\"mainEntityOfPage\":{\"@id\":\"https://www.usenotra.com/docs/platform/api-reference/responses/create-a-response#webpage\"},\"publisher\":{\"@id\":\"https://www.usenotra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.usenotra.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Notra Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Notra Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/platform/api-reference/responses/create-a-response.md","siteName":"Notra Documentation","nav":{"global":null,"tabs":[{"tab":"GEO","icon":"chart-line","pages":[{"title":"GEO","href":"/quickstart"}]},{"tab":"Autopilot","icon":"rocket","pages":[{"title":"Autopilot","href":"/autopilot/overview"}]},{"tab":"Sites","icon":"globe","pages":[{"title":"Sites","href":"/sites/overview"}]},{"tab":"Analytics","icon":"robot","pages":[{"title":"Analytics","href":"/analytics/overview"}]},{"tab":"Playbooks","icon":"book-open","pages":[{"title":"Playbooks","href":"/playbooks/first-30-days"}]},{"tab":"Studio","icon":"pen-nib","pages":[{"title":"Studio","href":"/concepts/content-pipeline"}]},{"tab":"Developers","icon":"code","pages":[{"title":"Developers","href":"/api/getting-started"}]},{"tab":"Platform","icon":"microchip","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"Notra Labs Platform","sidebarTitle":"Overview","href":"/platform/overview"},{"title":"Notra Labs Platform quickstart","sidebarTitle":"Quickstart","href":"/platform/quickstart"}]},{"group":"Models","icon":"brain","pages":[{"title":"writer-0.1","href":"/platform/models/writer-0-1"}]},{"group":"Guides","icon":"book-open","pages":[{"title":"Streaming","href":"/platform/guides/streaming"},{"title":"Function calling","href":"/platform/guides/function-calling"},{"title":"Structured output","href":"/platform/guides/structured-output"},{"title":"Stop sequences","href":"/platform/guides/stop-sequences"},{"title":"Long context","href":"/platform/guides/long-context"},{"title":"Cold starts and retries","href":"/platform/guides/cold-starts-and-retries"},{"title":"OpenCode and coding agents","href":"/platform/guides/coding-agents"}]},{"group":"Account","icon":"users-gear","pages":[{"title":"API keys","href":"/platform/account/api-keys"},{"title":"Playground","href":"/platform/account/playground"},{"title":"Credits and billing","href":"/platform/account/credits-and-billing"},{"title":"Rate limits","href":"/platform/account/rate-limits"},{"title":"Logs and usage","href":"/platform/account/logs-and-usage"},{"title":"Data and privacy","href":"/platform/account/data-and-privacy"}]},{"group":"API reference","icon":"code","pages":[{"title":"API reference","sidebarTitle":"Introduction","href":"/platform/api-reference/introduction"},{"title":"Errors","href":"/platform/api-reference/errors"},{"group":"Endpoints","expanded":true,"pages":[{"title":"Create a chat completion","description":"OpenAI's Chat Completions API. The model's plan arrives as `reasoning_content`, before the answer. With `stream: true` the answer arrives as `text/event-stream`. The stream ends with `data: [DONE]`.","deprecated":null,"version":null,"openapi":"/platform/openapi.json post /v1/chat/completions","href":"/platform/api-reference/chat-completions/create-a-chat-completion"},{"title":"Create a response","deprecated":null,"version":null,"openapi":"/platform/openapi.json post /v1/responses","href":"/platform/api-reference/responses/create-a-response"},{"title":"List models","description":null,"deprecated":null,"version":null,"openapi":"/platform/openapi.json get /v1/models","href":"/platform/api-reference/models/list-models"},{"title":"Retrieve a model","deprecated":null,"version":null,"openapi":"/platform/openapi.json get /v1/models/{id}","href":"/platform/api-reference/models/retrieve-a-model"}]}]}]}]},"basePath":"","title":"Create a response - Notra Documentation","deploymentId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","buildId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C8ktwDU8.js","snippetPresets-T_OU6iFp.js","utils-ZwMhYBEy.js","style-to-object-BY3JEAdk.js","utils-Bkq2iFgu.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-BL9fiH8n.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CmgCbVBT.js","_Uint8Array-Ai_0D4xE.js","isObject-FP1Yky1u.js","ApiExamples-DFGM09p_.js","usePlaygroundInputsStore-DkwJlKUE.js","shallow-BHRrfnLS.js","isEqual-BJ_QXy06.js","CodeSnippets-DIweseYm.js","CodeSnippet-8p36p4M7.js","use-playground-group-access-B8gEWau8.js","Page-Wf3pSVXf.js","api-description-markdown-BmnQ9fAd.js","DynamicMarkdown-BYqxB8Iw.js","SectionHeading-D-hNGwRE.js","MethodPill-CLLk3435.js","getPastedJson-CniQ58Cw.js","Check2Icon-C_Ntbivk.js","axios-CsQoIw0U.js","Markdown-DiXm32Ac.js","AssistantPageLink-C28i5dBV.js","dist-B9NA4YFQ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}