Chats

Page one older window of messages

last is required in practice: no cursor, or an unresolvable one, returns an EMPTY array -- the deliberate opposite of GET /api/v1/chats/:id's cold-open fallback.

get/api/v1/chats/{id}/previous

Request

  • Base URL: https://saltapp.ai
  • URL: https://saltapp.ai/api/v1/chats/{id}/previous
  • Auth: one of:
    • API key in header api-key
    • OAuth 2 (authorization code, authorization URL https://saltapp.ai/oauth2/authorize, token URL https://saltapp.ai/api/oauth2/token, scopes: chat)

Path parameters

idstring required

Query parameters

laststring

A message id; returns the 10 messages immediately before it.

Response

OK.

Changes

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