Generate structured JSON response
Generates structured JSON response from Claude CLI. The schema is passed in the request to instruct Claude to output valid JSON.
Request body
Response
Successful object generation
Changes
Changed in 6 of the 7 revisions of this API.41616
- ●
added the new
NO_TOOLS_AVAILABLEenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
added the new
NO_TOOLS_AVAILABLEenum value to thecoderesponse property for the response status500response-property-enum-value-added
- ○
added the new optional request property
allowedToolsnew-optional-request-property
- ●
- ●
removed the request property
userEmailrequest-property-removed
- ●
- ○
added the new optional request property
schema/$refnew-optional-request-property
- ○
added the new optional request property
schema/allOfnew-optional-request-property
- ○
added the new optional request property
schema/anyOfnew-optional-request-property
- ○
added the new optional request property
schema/constnew-optional-request-property
- ○
added the new optional request property
schema/enumnew-optional-request-property
- ○
added the new optional request property
schema/itemsnew-optional-request-property
- ○
added the new optional request property
schema/oneOfnew-optional-request-property
- ○
added the new optional request property
schema/propertiesnew-optional-request-property
- ○
added the new optional request property
schema/typenew-optional-request-property
- ○
- ▲
the
maxTokensrequest property type/format changed fromnumber/tointeger/request-property-type-changed
- ●
the
maxTokensrequest property's exclusiveMinimum was set to0.00request-property-exclusive-min-set
- ▲
- ●
added the new
CONCURRENCY_LIMIT_ERRORenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
added the new
CONCURRENCY_LIMIT_ERRORenum value to thecoderesponse property for the response status500response-property-enum-value-added
- ●
- ▲
the
usage/inputTokensresponse's property type/format changed frominteger/tonumber/for status200response-property-type-changed
- ▲
the
usage/outputTokensresponse's property type/format changed frominteger/tonumber/for status200response-property-type-changed
- ▲
the
usage/totalTokensresponse's property type/format changed frominteger/tonumber/for status200response-property-type-changed
- ●
removed the request property
allowedToolsrequest-property-removed
- ●
removed the request property
schema/$refrequest-property-removed
- ●
removed the request property
schema/allOfrequest-property-removed
- ●
removed the request property
schema/anyOfrequest-property-removed
- ●
removed the request property
schema/constrequest-property-removed
- ●
removed the request property
schema/enumrequest-property-removed
- ●
removed the request property
schema/itemsrequest-property-removed
- ●
removed the request property
schema/oneOfrequest-property-removed
- ●
removed the request property
schema/propertiesrequest-property-removed
- ●
removed the request property
schema/typerequest-property-removed
- ○
added the new optional request property
userEmailnew-optional-request-property
- ○
the
maxTokensrequest property type/format was generalized frominteger/tonumber/request-property-type-generalized
- ○
removed the
CONCURRENCY_LIMIT_ERRORenum value from thecoderesponse property for the response status400response-property-enum-value-removed
- ○
removed the
CONCURRENCY_LIMIT_ERRORenum value from thecoderesponse property for the response status500response-property-enum-value-removed
- ○
removed the
NO_TOOLS_AVAILABLEenum value from thecoderesponse property for the response status400response-property-enum-value-removed
- ○
removed the
NO_TOOLS_AVAILABLEenum value from thecoderesponse property for the response status500response-property-enum-value-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲