Skip to content

API Overview

The Platform API is a RESTful API that allows you to interact with the Platform. It provides endpoints for managing messages and conversations between platform users and AI assistants.

The Platform API uses API keys to authenticate requests. See the Authentication Guide for details on obtaining and using API keys.

(Coming Soon) You can manage your API keys in the Platform Dashboard.

Here are some common operations you can perform with the API. Replace YOUR_API_KEY with your actual API key.

Terminal window
curl -X POST "https://platform.tiptreesystems.com/v1/message/receive" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform_user_id": "user123",
"message": "Hello, assistant!"
}'
Terminal window
curl "https://platform.tiptreesystems.com/v1/messages/unread?platform_user_id=user123" \
-H "Authorization: Bearer YOUR_API_KEY"
Terminal window
curl "https://platform.tiptreesystems.com/v1/messages/all?platform_user_id=user123" \
-H "Authorization: Bearer YOUR_API_KEY"
Terminal window
curl -X POST "https://platform.tiptreesystems.com/v1/message/send" \
-H "Content-Type: application/json" \
-d '{
"platform_user_id": "user123",
"message": {
"payload": {
"content": "How can I help you today?",
"sender": "assistant"
},
"agent_session_id": "session123"
}
}'

Messages are the primary way users interact with the platform. Each message:

  • Has a unique identifier
  • Contains content and metadata
  • Can be sent by either users or AI assistants
  • Maintains read/unread status

Messages are organized into sessions that:

  • Group conversations between users and AI assistants
  • Maintain conversation context and history
  • Handle message routing and delivery

The API provides endpoints for:

  • Sending messages from platform users
  • Receiving messages from AI assistants
  • Retrieving unread messages
  • Accessing message history

For detailed endpoint specifications, request/response formats, and data models, see the API Reference.

Currently, the Platform API is rate limited to 300 requests per hour. This limit is applied to all endpoints. We’ll be increasing this limit over time.

If you need help with the API: