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

Method
Endpoint
Description

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

Method
Endpoint
Description

POST

/send-message/[CHAT_ID]

Send a message with an existing chat history

Form Data Parameters (for both endpoints):

Field
Type
Required
Description

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