FigoAILabs API Documentation
  1. APIs
FigoAILabs API Documentation
  • Quickstart
  • Website Javascript Plugin
  • Rate Limits & Pricing
  • APIs
    • Chat Assistant API
      POST
    • Image Assistant API
      POST
    • Text To Speech API
      POST
    • Speech To Text API
      POST
    • Guardrails API
      POST
    • CV Scoring API
      POST
    • Web Search API
      POST
    • Sentiment Analysis API
      POST
    • Message Context API
      POST
    • Image Analyzer API
      POST
  1. APIs

Message Context API

POST
https://api.figolabs.ai/api/v1/message/context
Apis
Maintainer:Figo AI Labs
The Message Context API offers a RESTful interface for extracting quick, real-time insights from small datasets.
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
baseInstruction
string 
required
question
string 
required
context
string 
required
Examples

Responses

🟢200OK
application/json
Success
Body
responseCode
string 
required
responseMessage
string 
required
responseData
string 
required
🟠401Unauthorized
Modified at 2025-04-22 18:51:08
Previous
Sentiment Analysis API
Next
Image Analyzer API
Built with