Properties
| Name | Type | Description |
|---|---|---|
| code | integer | Response code |
| msg | string | Message sent |
| data | object | message object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/twexapi-io/json-schema/twexapi-io-send-dm-response-schema.json",
"title": "SendDmResponse",
"description": "Response for sending DM",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/twexapi-io-dm-endpoints-api-openapi.yml#/components/schemas/SendDmResponse",
"properties": {
"code": {
"type": "integer",
"title": "Code",
"description": "Response code"
},
"msg": {
"type": "string",
"title": "Msg",
"description": "Message sent"
},
"data": {
"anyOf": [
{
"$ref": "#/$defs/MessageModel"
},
{
"type": "null"
}
],
"description": "message object"
}
},
"type": "object",
"required": [
"code",
"msg",
"data"
],
"$defs": {
"MessageModel": {
"properties": {
"id": {
"type": "string",
"title": "Id",
"description": "Message ID"
},
"text": {
"type": "string",
"title": "Text",
"description": "Message text"
},
"time": {
"type": "string",
"title": "Time",
"description": "Message time"
},
"attachment": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Attachment",
"description": "Message attachment"
},
"attachments": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Attachments",
"description": "XChat media attachments (v3)."
},
"sequence_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sequence Id",
"description": "XChat sequence id. Use the oldest message's sequence_id as before for pagination."
},
"sender_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sender Id",
"description": "Sender ID"
},
"recipient_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Recipient Id",
"description": "Recipient ID"
}
},
"type": "object",
"required": [
"id",
"text",
"time"
],
"title": "MessageModel",
"description": "Message model"
}
}
}
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/twexapi-io-send-dm-response"
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.