Conversation

Fetch a window of one-on-one turns around one chat id (for jump-to).

Load a contiguous window of one-on-one turns around chat_id so a client can jump from a find hit into the live dialogue. before and after cap neighbors on each side of the anchor.

post/v1/get_chat_around

Request

  • Base URL: https://partner.mindupload.app
  • URL: https://partner.mindupload.app/v1/get_chat_around
  • Auth: API key in header X-Partner-Key

Request body

preferred_languagestring nullable

BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages.

usernamestring required

The end-user's username.

passwordstring required

The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage.

clone_idstring required

Owner AI consciousness id from get_clones (required for one-on-one jump).

chat_idstring required

One-on-one chat turn id.

beforeinteger

How many earlier neighbors to include around the anchor id.

afterinteger

How many later neighbors to include around the anchor id.

Response

Result envelope — check the success field.

successboolean

Whether the call succeeded.

error_messagestring nullable

Human-readable reason when success is false.

error_codestring
chatsobject[] nullable

One-on-one turns returned by this operation.

media_thumbnailsobject nullable

Mapping from an external media URL in a result to its preferred display URL (normally a retained thumbnail).

media_fallbacksobject nullable

Mapping from a provably expired signed image URL to a safe legacy display candidate.

anchor_chat_idstring nullable

Echo of the one-on-one chat id the window is centered on.

Changes

No recorded changes to this operation across all 2 revisions of this API.