Skip to content

Request body

For POST, PUT, and PATCH tools, define a JSON body schema so the model knows which fields to send. Chatevo validates the payload against the schema when strict params are enabled.

MethodBody
GET, DELETENot used
POSTUsually required — creates or submits data
PUT, PATCHRequired or partial — updates existing resources

Set Content-Type: application/json in headers unless your API specifies otherwise.

Define properties with JSON Schema-style types:

FieldTypesNotes
Property nameMatch your API field names exactly
typestring, number, integer, boolean, object, array
descriptionHelps the model fill correct values
requiredarray of namesTop-level required fields
enumallowed valuesFor fixed choices (e.g. room type)
{
"type": "object",
"required": ["offer_id", "guest_email"],
"properties": {
"offer_id": {
"type": "string",
"description": "Offer ID from search results"
},
"guest_email": {
"type": "string",
"description": "Guest email for confirmation"
},
"special_requests": {
"type": "string",
"description": "Optional notes for the hotel"
}
}
}

Support nested structures when your API expects them — document shape in property descriptions. Keep schemas as small as possible; only expose fields the assistant should control.

Put in bodyPut in query
PII, payloads, create/update objectsFilters on GET, simple flags
Large or structured dataCache-friendly read params

Use Test a tool with sample JSON to confirm your API accepts the generated body before attaching the tool to a live assistant.