APis to Integration
๐ Using the Integration
Use the following endpoints in your application, replacing [YOUR_ACCESS_TOKEN] with the token you saved.
๐ฌ Chat Routes
Base URL: https://ai.quanthra.com/api/public/external-api/[YOUR_ACCESS_TOKEN]/chat
GET
/chat
Retrieve a list of chats created by the integration
GET
/chat/[CHAT_ID]
Retrieve a chat details + messages
POST
/chat
Create a new chat (no request body required), but you can send: {"id":[YOUR OWN ID], additional_prompt: [LIKE USER INFO]} After creating your Chat, you will receive Quanthra's real ID, but you can use your own ID in requests. An additional prompt will be inserted into the main prompt. Here you can fill in information to personalize the response, for example: the user is Gabriel, with the email [email protected]
DELETE
/chat/[CHAT_ID]
Delete a specific chat
โ๏ธ Message Routes
Base URL: https://ai.quanthra.com/api/public/external-api/[YOUR_ACCESS_TOKEN]/send-message
POST
/send-message/[CHAT_ID]
Send a message with an existing chat history
Form Data Parameters (for both endpoints):
message
string
Yes
The userโs message text
files
File[]
No
Array of files to include (optional)
โ
All Set!
Your External API integration is now active in Quanthra and ready to handle messages and chats automatically. ๐
Last updated