Properties
| Name | Type | Description |
|---|---|---|
| role | string | |
| content | object | |
| cache_control | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-chat-completion-user-message-schema.json",
"title": "ChatCompletionUserMessage",
"x-generated": "2026-11-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/bookmyhost-chat-completions-api-openapi.yml#/components/schemas/ChatCompletionUserMessage",
"properties": {
"role": {
"const": "user",
"title": "Role",
"type": "string"
},
"content": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"anyOf": [
{
"$ref": "#/$defs/ChatCompletionTextObject"
},
{
"$ref": "#/$defs/ChatCompletionImageObject"
},
{
"$ref": "#/$defs/ChatCompletionAudioObject"
},
{
"$ref": "#/$defs/ChatCompletionDocumentObject"
},
{
"$ref": "#/$defs/ChatCompletionVideoObject"
},
{
"$ref": "#/$defs/ChatCompletionFileObject"
}
]
},
"type": "array"
}
],
"title": "Content"
},
"cache_control": {
"$ref": "#/$defs/ChatCompletionCachedContent"
}
},
"required": [
"role",
"content"
],
"type": "object",
"$defs": {
"ChatCompletionAudioObject": {
"properties": {
"input_audio": {
"$ref": "#/$defs/InputAudio"
},
"type": {
"const": "input_audio",
"title": "Type",
"type": "string"
}
},
"required": [
"input_audio",
"type"
],
"title": "ChatCompletionAudioObject",
"type": "object"
},
"ChatCompletionCachedContent": {
"properties": {
"type": {
"const": "ephemeral",
"title": "Type",
"type": "string"
}
},
"required": [
"type"
],
"title": "ChatCompletionCachedContent",
"type": "object"
},
"ChatCompletionDocumentObject": {
"properties": {
"type": {
"const": "document",
"title": "Type",
"type": "string"
},
"source": {
"$ref": "#/$defs/DocumentObject"
},
"title": {
"title": "Title",
"type": "string"
},
"context": {
"title": "Context",
"type": "string"
},
"citations": {
"anyOf": [
{
"$ref": "#/$defs/CitationsObject"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"source",
"title",
"context",
"citations"
],
"title": "ChatCompletionDocumentObject",
"type": "object"
},
"ChatCompletionFileObject": {
"properties": {
"type": {
"const": "file",
"title": "Type",
"type": "string"
},
"file": {
"$ref": "#/$defs/ChatCompletionFileObjectFile"
}
},
"required": [
"type",
"file"
],
"title": "ChatCompletionFileObject",
"type": "object"
},
"ChatCompletionFileObjectFile": {
"properties": {
"file_data": {
"title": "File Data",
"type": "string"
},
"file_id": {
"title": "File Id",
"type": "string"
},
"filename": {
"title": "Filename",
"type": "string"
},
"format": {
"title": "Format",
"type": "string"
},
"detail": {
"title": "Detail",
"type": "string"
},
"video_metadata": {
"additionalProperties": true,
"title": "Video Metadata",
"type": "object"
}
},
"title": "ChatCompletionFileObjectFile",
"type": "object"
},
"ChatCompletionImageObject": {
"properties": {
"type": {
"const": "image_url",
"title": "Type",
"type": "string"
},
"image_url": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/ChatCompletionImageUrlObject"
}
],
"title": "Image Url"
}
},
"required": [
"type",
"image_url"
],
"title": "ChatCompletionImageObject",
"type": "object"
},
"ChatCompletionImageUrlObject": {
"properties": {
"url": {
"title": "Url",
"type": "string"
},
"detail": {
"title": "Detail",
"type": "string"
},
"format": {
"title": "Format",
"type": "string"
}
},
"required": [
"url"
],
"title": "ChatCompletionImageUrlObject",
"type": "object"
},
"ChatCompletionTextObject": {
"properties": {
"type": {
"const": "text",
"title": "Type",
"type": "string"
},
"text": {
"title": "Text",
"type": "string"
},
"cache_control": {
"$ref": "#/$defs/ChatCompletionCachedContent"
}
},
"required": [
"type",
"text"
],
"title": "ChatCompletionTextObject",
"type": "object"
},
"ChatCompletionVideoObject": {
"properties": {
"type": {
"const": "video_url",
"title": "Type",
"type": "string"
},
"video_url": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/ChatCompletionVideoUrlObject"
}
],
"title": "Video Url"
}
},
"required": [
"type",
"video_url"
],
"title": "ChatCompletionVideoObject",
"type": "object"
},
"ChatCompletionVideoUrlObject": {
"properties": {
"url": {
"title": "Url",
"type": "string"
},
"detail": {
"title": "Detail",
"type": "string"
}
},
"required": [
"url"
],
"title": "ChatCompletionVideoUrlObject",
"type": "object"
},
"CitationsObject": {
"properties": {
"enabled": {
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "CitationsObject",
"type": "object"
},
"DocumentObject": {
"properties": {
"type": {
"const": "text",
"title": "Type",
"type": "string"
},
"media_type": {
"title": "Media Type",
"type": "string"
},
"data": {
"title": "Data",
"type": "string"
}
},
"required": [
"type",
"media_type",
"data"
],
"title": "DocumentObject",
"type": "object"
},
"InputAudio": {
"properties": {
"data": {
"title": "Data",
"type": "string"
},
"format": {
"enum": [
"wav",
"mp3"
],
"title": "Format",
"type": "string"
}
},
"required": [
"data",
"format"
],
"title": "InputAudio",
"type": "object"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bookmyhost-chat-completion-user-message"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.