SDK

SDK

This folder contains the core Freeday SDK API requests for authenticating and working with conversations and their messages/history.

Endpoints return a x-session-id header that you must use on subsequent requests.

For the asynchronous event driven communication with centrifugo, see the Realtime (AsyncAPI) reference.

Typical usage flow

  1. Create a conversation if you do not have one

  2. Get existing conversations using get conversations to show all conversations a user has

  3. Get connect token to connect to centrifugo

  4. Get subscribe token to subscribe to the right conversation

  5. Get the conversation history if it is an old conversation