Message Context API
POST
https://api.figolabs.ai/api/v1/message/context
Apis
Maintainer:Figo AI Labs
It enables seamless integration of contextual understanding into your applications, delivering rapid analysis of brief inputs.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.figolabs.ai/api/v1/message/context' \
--header 'Authorization: Bearer {Your-API-Key}' \
--header 'Content-Type: application/json' \
--data-raw '{
"baseInstruction": "Provide the response on html formatted text.",
"question" : "Give me a summary of my week'\''s activity" ,
"context": "John'\''s annual activity. Transactions consumated in August."
}'
Response Response Example
200 - Success
{
"responseCode": "00",
"responseMessage": "Successful",
"responseData": "```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Weekly Activity Summary</title>\n <style>\n body {\n font-family: Arial, sans-serif;\n line-height: 1.6;\n margin: 20px;\n }\n h1 {\n color: #333;\n }\n ul {\n list-style-type: square;\n margin-left: 20px;\n }\n </style>\n</head>\n<body>\n <h1>John's Weekly Activity Summary</h1>\n <p>This summary provides an overview of your activities over the past week, focusing on the transactions completed in August.</p>\n <ul>\n <li><strong>Monday:</strong> Reviewed monthly financial reports and finalized August transactions.</li>\n <li><strong>Tuesday:</strong> Conducted a meeting with the finance team to discuss August's financial performance.</li>\n <li><strong>Wednesday:</strong> Processed pending invoices related to August's transactions.</li>\n <li><strong>Thursday:</strong> Held a strategy session to plan for upcoming financial goals.</li>\n <li><strong>Friday:</strong> Completed a detailed analysis of August's revenue streams and identified key growth areas.</li>\n </ul>\n <p>This week was productive with a strong focus on concluding and analyzing the financial activities of August. Keep up the great work!</p>\n</body>\n</html>\n```"
}
Request
Header Params
Content-Type
string
required
Example:
application/json
Authorization
string
required
Example:
Bearer {Your-API-Key}
Body Params application/json
Responses
Modified at 2025-04-22 18:51:08