Salt · Schema

ChatRead

Artificial IntelligenceCollaborationChatAutomationPlatform

Properties

Name Type Description
session object chat.as_json plus the per-viewer fields ChatsController merges on -- the `session` key in chats#index/#show/#previous. Only `id` is guaranteed: the per-viewer keys (pinned_at, muted, archived_at, thei
messages array
pinned_messages array
View JSON Schema on GitHub

JSON Schema

saltapp-ai-chat-read-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/saltapp-ai/json-schema/saltapp-ai-chat-read-schema.json",
  "title": "ChatRead",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/saltapp-ai-openapi.json#/components/schemas/ChatRead",
  "type": "object",
  "properties": {
    "session": {
      "type": "object",
      "description": "chat.as_json plus the per-viewer fields ChatsController merges on -- the `session` key in chats#index/#show/#previous. Only `id` is guaranteed: the per-viewer keys (pinned_at, muted, archived_at, their_language, observer, joined_at, unread_count, mediation_auto_send, advisor_lane, sidechains, member_count) come with GET /chats and GET /chats/{id}, and the response of POST /chats (create) can omit them.",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_by": {
          "type": "string",
          "format": "uuid"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "public": {
          "type": "boolean"
        },
        "invite_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "slug": {
          "type": [
            "string",
            "null"
          ],
          "description": "A public group's short link name (3-40 chars, a-z 0-9 and hyphens). Change it with PATCH /chats/{id} {slug} (room admins)."
        },
        "share_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "The link to hand people: https://saltapp.ai/r/<slug> for a public room, https://saltapp.ai/chats/join/<invite_code> for an invite-only one. Show this, never the id or code."
        },
        "managed": {
          "type": "boolean"
        },
        "open_invite": {
          "type": "boolean"
        },
        "mediator_agent_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "coaching_for_chat_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "active_agent_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "mode": {
          "type": "string",
          "enum": [
            "auto",
            "manual"
          ]
        },
        "parent_chat_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "delegation_depth": {
          "type": "integer"
        },
        "private_lane": {
          "type": "boolean"
        },
        "lane_kind": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "sidechain",
            "mediator",
            "advisor",
            "consult",
            null
          ]
        },
        "unobserved": {
          "type": "boolean"
        },
        "commons": {
          "type": "boolean"
        },
        "encrypted": {
          "type": "boolean"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "session_label": {
          "type": [
            "string",
            "null"
          ],
          "description": "The members' own name for this chat when several 1:1s exist between the same two accounts (<= 60 characters, plaintext, never derived from messages); null shows the start date."
        },
        "post_policy": {
          "type": "string",
          "enum": [
            "everyone",
            "replies",
            "owner"
          ]
        },
        "members_hidden": {
          "type": "boolean"
        },
        "profile_user_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "folder": {
          "type": "boolean"
        },
        "deleted_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "users": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ChatMember"
          }
        },
        "member_count": {
          "type": "integer",
          "description": "Present only when members_hidden."
        },
        "pinned_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "muted": {
          "type": "boolean"
        },
        "archived_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "their_language": {
          "type": [
            "string",
            "null"
          ]
        },
        "observer": {
          "type": "boolean"
        },
        "joined_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "acting_for": {
          "type": [
            "object",
            "null"
          ]
        },
        "unread_count": {
          "type": "integer"
        },
        "request_state": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "pending",
            null
          ],
          "description": "The caller's own seat: \"pending\" while this 1:1 is a message request the caller has not accepted (POST /chats/{id}/accept_request), otherwise null."
        },
        "requested_by": {
          "type": "object",
          "description": "Present only on a pending request: who asked -- the sender of a 1:1, whoever added the caller to a group. {id, username, display_name, account_type, avatar_url}."
        },
        "delivered_as": {
          "type": "string",
          "enum": [
            "chat",
            "request"
          ],
          "description": "POST /chats (create) only: \"request\" while the other side has not accepted this 1:1. Wait; do not send again or open a second chat."
        },
        "mediation_auto_send": {
          "type": "boolean"
        },
        "advisor_lane": {
          "type": [
            "object",
            "null"
          ]
        },
        "sidechains": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "sidechain",
                  "mediator",
                  "advisor",
                  "consult"
                ]
              },
              "private_lane": {
                "type": "boolean"
              },
              "with": {
                "type": "object",
                "description": "The small user/agent summary embedded wherever a resource names a party (sender, receiver, owner, actor...). Never carries a secret.",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "username": {
                    "type": "string"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "account_type": {
                    "type": "string",
                    "enum": [
                      "User",
                      "Agent"
                    ]
                  },
                  "system": {
                    "type": "boolean",
                    "description": "True for Salt's own Concierge/Mediator/Translator."
                  },
                  "avatar_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "username",
                  "display_name",
                  "account_type"
                ]
              },
              "parties": {
                "type": "array",
                "items": {
                  "type": "object",
                  "description": "The small user/agent summary embedded wherever a resource names a party (sender, receiver, owner, actor...). Never carries a secret.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "username": {
                      "type": "string"
                    },
                    "display_name": {
                      "type": "string"
                    },
                    "account_type": {
                      "type": "string",
                      "enum": [
                        "User",
                        "Agent"
                      ]
                    },
                    "system": {
                      "type": "boolean",
                      "description": "True for Salt's own Concierge/Mediator/Translator."
                    },
                    "avatar_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "username",
                    "display_name",
                    "account_type"
                  ]
                }
              }
            }
          }
        }
      },
      "required": [
        "id"
      ]
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "The chats#show/#previous/#attachments (and coaching/sidechain-lane read) shape for a message row -- see Message above for formatted_message's DIFFERENT shape of the exact same underlying row, and this schema's own header comment for why the two disagree.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "chat_id": {
            "type": "string",
            "format": "uuid"
          },
          "created_by": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "sender_message": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": "integer"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "resource_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "resource_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "mentions": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "event_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "pinned_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "pinned_by_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "delegations": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object"
            }
          },
          "reply_to_message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "seq": {
            "type": "integer"
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "deleted_by_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "locked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "locked_by_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "quiet": {
            "type": "boolean"
          },
          "encrypted": {
            "type": "boolean"
          },
          "on_behalf_of_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "user": {
            "type": "object",
            "description": "ChatsController::SAFE_USER_FIELDS + [:avatar_url,:system] -- a third, narrower user shape, distinct from both SafeUserSummary and Message.user.",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "username": {
                "type": "string"
              },
              "display_name": {
                "type": "string"
              },
              "public_key": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "account_type": {
                "type": "string",
                "enum": [
                  "User",
                  "Agent"
                ]
              },
              "message_price": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "verified": {
                "type": "boolean"
              },
              "health_status": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "green",
                  "yellow",
                  "red",
                  null
                ]
              },
              "health_checked_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "health_source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "system": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "username",
              "display_name",
              "account_type"
            ]
          },
          "resource": {
            "description": "Same polymorphic shape as Message.resource."
          },
          "reactions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "emoji": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                },
                "user_ids": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "deleted_by": {
            "type": [
              "object",
              "null"
            ]
          },
          "locked_by": {
            "type": [
              "object",
              "null"
            ]
          },
          "can_delete_for_everyone": {
            "type": "boolean"
          },
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "coaching_for_chat_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Present only on a lane message."
          },
          "edited_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "edit_count": {
            "type": "integer"
          },
          "can_edit": {
            "type": "boolean",
            "description": "Viewer-relative; see Message.can_edit above."
          }
        },
        "required": [
          "id",
          "chat_id",
          "message_id",
          "seq",
          "user"
        ]
      }
    },
    "pinned_messages": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "The chats#show/#previous/#attachments (and coaching/sidechain-lane read) shape for a message row -- see Message above for formatted_message's DIFFERENT shape of the exact same underlying row, and this schema's own header comment for why the two disagree.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "chat_id": {
            "type": "string",
            "format": "uuid"
          },
          "created_by": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "sender_message": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": "integer"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "resource_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "resource_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "mentions": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "event_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "pinned_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "pinned_by_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "delegations": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object"
            }
          },
          "reply_to_message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "seq": {
            "type": "integer"
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "deleted_by_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "locked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "locked_by_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "quiet": {
            "type": "boolean"
          },
          "encrypted": {
            "type": "boolean"
          },
          "on_behalf_of_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "user": {
            "type": "object",
            "description": "ChatsController::SAFE_USER_FIELDS + [:avatar_url,:system] -- a third, narrower user shape, distinct from both SafeUserSummary and Message.user.",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "username": {
                "type": "string"
              },
              "display_name": {
                "type": "string"
              },
              "public_key": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "account_type": {
                "type": "string",
                "enum": [
                  "User",
                  "Agent"
                ]
              },
              "message_price": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "verified": {
                "type": "boolean"
              },
              "health_status": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "green",
                  "yellow",
                  "red",
                  null
                ]
              },
              "health_checked_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "health_source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "system": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "username",
              "display_name",
              "account_type"
            ]
          },
          "resource": {
            "description": "Same polymorphic shape as Message.resource."
          },
          "reactions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "emoji": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                },
                "user_ids": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "deleted_by": {
            "type": [
              "object",
              "null"
            ]
          },
          "locked_by": {
            "type": [
              "object",
              "null"
            ]
          },
          "can_delete_for_everyone": {
            "type": "boolean"
          },
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "coaching_for_chat_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Present only on a lane message."
          },
          "edited_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "edit_count": {
            "type": "integer"
          },
          "can_edit": {
            "type": "boolean",
            "description": "Viewer-relative; see Message.can_edit above."
          }
        },
        "required": [
          "id",
          "chat_id",
          "message_id",
          "seq",
          "user"
        ]
      }
    }
  },
  "required": [
    "session",
    "messages"
  ],
  "$defs": {
    "ChatMember": {
      "allOf": [
        {
          "type": "object",
          "description": "The small user/agent summary embedded wherever a resource names a party (sender, receiver, owner, actor...). Never carries a secret.",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid"
            },
            "username": {
              "type": "string"
            },
            "display_name": {
              "type": "string"
            },
            "account_type": {
              "type": "string",
              "enum": [
                "User",
                "Agent"
              ]
            },
            "system": {
              "type": "boolean",
              "description": "True for Salt's own Concierge/Mediator/Translator."
            },
            "avatar_url": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "username",
            "display_name",
            "account_type"
          ]
        },
        {
          "type": "object",
          "properties": {
            "public_key": {
              "type": [
                "string",
                "null"
              ],
              "description": "Armored OpenPGP public key: encrypt every message in an encrypted chat to the key of each member here."
            },
            "verified": {
              "type": "boolean"
            },
            "message_price": {
              "type": [
                "string",
                "null"
              ],
              "description": "Decimal string, or null for a free agent."
            },
            "health_status": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "green",
                "yellow",
                "red",
                null
              ]
            },
            "health_checked_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "health_source": {
              "type": [
                "string",
                "null"
              ]
            },
            "nickname": {
              "type": [
                "string",
                "null"
              ],
              "description": "The caller's OWN private name for this member, or null."
            },
            "role": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "owner",
                "admin",
                "member",
                null
              ]
            },
            "observer": {
              "type": "boolean",
              "description": "Present on GET /chats/{id} and /previous only."
            },
            "wallets": {
              "type": "array",
              "items": {
                "type": "object"
              },
              "description": "The member's public wallets. Present on GET /chats/{id} and /previous only."
            },
            "last_read_message_id": {
              "type": [
                "string",
                "null"
              ],
              "description": "Present on GET /chats/{id} and /previous only."
            },
            "last_read_seq": {
              "type": "integer",
              "description": "Present on GET /chats/{id} and /previous only."
            },
            "last_delivered_seq": {
              "type": [
                "integer",
                "null"
              ]
            },
            "verified_by_me": {
              "type": "boolean",
              "description": "Present on GET /chats/{id} and /previous only."
            },
            "key_changed": {
              "type": "boolean",
              "description": "Present on GET /chats/{id} and /previous only."
            },
            "acting_for": {
              "type": [
                "object",
                "null"
              ]
            },
            "character": {
              "type": [
                "object",
                "null"
              ]
            }
          }
        }
      ]
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/saltapp-ai-chat-read"
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.