{"info":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","description":"<html><head></head><body><h1 id=\"get-started-here\">📄 Get started here</h1>\n<hr>\n<h1 id=\"api-overview\"><strong>API Overview</strong></h1>\n<p>The <strong>FoundationAPI</strong> offers a comprehensive suite of API products, tools, and resources designed to enhance your project management and organizational workflows. Our API enables you to seamlessly integrate and manage diverse multimedia content sources and complex file uploads across various projects and organizational units. With <strong>FoundationAPI</strong>, you can effectively streamline your data handling processes, ensure consistent access to updated resources, and enhance collaboration within your team. Whether you're adding new content sources, uploading files, or managing project data, <strong>FoundationAPI</strong> provides the necessary functionalities to support your evolving business needs.</p>\n<h1 id=\"getting-started-with-foundationapi\"><strong>Getting Started with FoundationAPI</strong></h1>\n<p>Welcome to the <strong>FoundationAPI!</strong> Our API suite is designed to provide robust solutions for managing and integrating project and organizational resources efficiently. Follow these steps to begin using our APIs and maximize your productivity quickly:</p>\n<h3 id=\"step-1-obtain-an-api-key\">Step 1: Obtain an API Key</h3>\n<ul>\n<li><p><strong>Register/Login:</strong> Start by creating an <a href=\"https://foundationx.ai\">account</a> or logging in on our platform.</p>\n</li>\n<li><p><strong>Generate API Key:</strong> Navigate to the integrations dashboard in your account settings. Generate a new API key, which you will use to authenticate your API requests.</p>\n</li>\n</ul>\n<h3 id=\"step-2-setup-your-environment\">Step 2: Setup Your Environment</h3>\n<ul>\n<li><p><strong>Use HTTPS:</strong> <strong>FoundationAPI</strong> requires secure communication via HTTPS for all API requests. Ensure that your applications make requests over HTTPS to avoid redirections or security warnings.</p>\n</li>\n<li><p><strong>Configure Headers:</strong> Include your API key in the header of each request. This is typically done with a header such as <code>x-api-key:</code> .</p>\n</li>\n</ul>\n<h3 id=\"step-3-understand-rate-and-usage-limits\">Step 3: Understand Rate and Usage Limits</h3>\n<ul>\n<li><strong>Check Limits:</strong> Familiarize yourself with the rate and usage limits to ensure that your application respects these thresholds. Details about these limits are available in our API documentation section on rate limiting.</li>\n</ul>\n<h3 id=\"step-4-handle-api-responses-and-errors\">Step 4: Handle API Responses and Errors</h3>\n<ul>\n<li><p><strong>JSON Responses:</strong> Our API communicates and responds with JSON data. Ensure your application can parse and handle JSON format.</p>\n</li>\n<li><p><strong>Manage Errors:</strong> In case of an error, the API will send a JSON response containing an <code>error</code> key with details about the issue. Implement error handling in your application to gracefully manage these situations.</p>\n</li>\n</ul>\n<h3 id=\"step-5-explore-api-endpoints\">Step 5: Explore API Endpoints</h3>\n<ul>\n<li><strong>Review Documentation:</strong> Explore our detailed API documentation for descriptions of available endpoints, parameters, and sample requests and responses. This will help you understand how to integrate specific functionalities into your application.</li>\n</ul>\n<h3 id=\"step-6-testing-and-development\">Step 6: Testing and Development</h3>\n<ul>\n<li><strong>Postman Collections:</strong> Utilize provided Postman collections to test API endpoints. This allows you to understand the API flow in a controlled environment before full-scale integration.</li>\n</ul>\n<h3 id=\"step-7-deployment\">Step 7: Deployment</h3>\n<ul>\n<li><strong>Deploy:</strong> Once testing is complete, integrate the API into your production environment. Monitor API usage and performance closely during the initial deployment phase.</li>\n</ul>\n<h3 id=\"step-8-ongoing-support-and-updates\">Step 8: Ongoing Support and Updates</h3>\n<ul>\n<li><p><strong>Stay Updated:</strong> Keep an eye on API updates and changes. Subscribe to our newsletter or updates to receive notifications about new features or important changes.</p>\n</li>\n<li><p><strong>Support:</strong> If you encounter any issues or have questions, reach out to our support team through the help center or community forums.</p>\n</li>\n</ul>\n<p>By following these steps, you can start leveraging the StreamlineAPI to enhance the efficiency and functionality of your projects and organizational workflows. Happy coding!</p>\n<h1 id=\"authentication\"><strong>Authentication</strong></h1>\n<p>The <strong>FoundationAPI</strong> uses <strong>API keys</strong> for authentication to ensure secure access to its services. This section explains how to obtain your API key, where to include it in your API requests, and how to handle common authentication errors.</p>\n<h3 id=\"obtaining-an-api-key\">Obtaining an API Key</h3>\n<ol>\n<li><p><strong>Create an Account or Log In:</strong> If you haven’t already, sign up or log in to your account on the <strong>FoundationAPI</strong> platform.</p>\n</li>\n<li><p><strong>Generate Your API Key:</strong> Once logged in, navigate to the <strong>API Keys</strong> section under your account settings. Click on \"Generate API Key\". Label your key with a recognizable name that reflects its usage context.</p>\n</li>\n<li><p><strong>Secure Your Key:</strong> Store your API key securely and never share it in publicly accessible areas such as GitHub, client-side code, etc.</p>\n</li>\n</ol>\n<h3 id=\"using-your-api-key\">Using Your API Key</h3>\n<p>To access the <strong>FoundationAPI</strong> endpoints, you must include your API key in each request. This is done using the <code>X-Api-Key</code> header as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>X-Api-Key: &lt;your_api_key_here&gt;\n\n</code></pre><p>Ensure this header is included in every API call to authenticate your requests successfully.</p>\n<h3 id=\"handling-authentication-errors\">Handling Authentication Errors</h3>\n<p>If your request fails authentication, the API will return an error. Common authentication error statuses include:</p>\n<ul>\n<li><p><strong>401 Unauthorized:</strong> The API key was not provided, is invalid, or has been revoked. Verify that your API key is correct and included in the header of your request.</p>\n</li>\n<li><p><strong>403 Forbidden:</strong> The API key doesn't have permissions to perform the requested operation. Ensure that your API key permissions align with the API endpoints you are attempting to access.</p>\n</li>\n</ul>\n<h3 id=\"best-practices\">Best Practices</h3>\n<ul>\n<li><p><strong>Regenerate Keys Periodically:</strong> For security purposes, regenerate your API keys periodically and update your applications accordingly.</p>\n</li>\n<li><p><strong>Limit Permissions:</strong> If possible, limit the permissions associated with each key according to the use case, minimizing potential security risks.</p>\n</li>\n</ul>\n<p>By following these guidelines, you can ensure that your interactions with the <strong>StreamlineAPI</strong> are secure and efficient. Remember to handle your API keys as sensitive information and manage them appropriately to avoid unauthorized access to your services.</p>\n<h1 id=\"rate-and-usage-limits\"><strong>Rate and Usage Limits</strong></h1>\n<p>The <strong>FoundationAPI</strong> enforces rate limits and usage constraints to ensure fair usage and optimal performance for all users. This section details the limits on API requests and the policies around these limits.</p>\n<h3 id=\"rate-limits\">Rate Limits</h3>\n<ul>\n<li><p><strong>Requests Per Minute:</strong> Each API key can make up to 300 requests per minute. This limit is designed to prevent abuse and ensure service availability for all users.</p>\n</li>\n<li><p><strong>Excess Requests:</strong> If you exceed this rate limit, the API will return an HTTP 429 Too Many Requests status code. Subsequent requests will be rejected until the rate drops below the threshold.</p>\n</li>\n</ul>\n<h3 id=\"usage-limits\">Usage Limits</h3>\n<ul>\n<li><p><strong>Monthly Quota:</strong> Depending on your subscription plan, you may also have a monthly quota on the total number of requests or data transfer volume.</p>\n</li>\n<li><p><strong>Plan-Based Limits:</strong> Specific limits are detailed in your account’s plan settings. To view or change your plan, visit the subscription management page on our platform.</p>\n</li>\n</ul>\n<h3 id=\"handling-limit-exceedance\">Handling Limit Exceedance</h3>\n<p>If you exceed the stipulated rate or usage limits:</p>\n<ul>\n<li><p><strong>Error Response:</strong> An HTTP 429 status code will be sent, accompanied by a message explaining that the rate limit has been exceeded.</p>\n</li>\n<li><p><strong>Retry-After Header:</strong> This header may be included in the 429 response, indicating how long to wait before making a new request.</p>\n</li>\n</ul>\n<h3 id=\"best-practices-for-managing-api-consumption\">Best Practices for Managing API Consumption</h3>\n<ul>\n<li><p><strong>Caching:</strong> Implement caching strategies to minimize redundant API calls.</p>\n</li>\n<li><p><strong>Throttling:</strong> Employ client-side request throttling to spread your requests evenly and stay within rate limits.</p>\n</li>\n<li><p><strong>Monitoring:</strong> Regularly monitor your API usage through the dashboard provided in your account to ensure you remain within established limits.</p>\n</li>\n</ul>\n<h3 id=\"upgrading-your-plan\">Upgrading Your Plan</h3>\n<p>If you consistently hit your rate or usage limits, consider upgrading your plan to accommodate higher limits. Details on different plans and how to upgrade are available on our website.</p>\n<p>By understanding and adhering to these rate and usage limits, you can optimize your use of the <strong>Foundation</strong>API and avoid service interruptions. We are committed to providing robust and reliable service to all our users, and we appreciate your cooperation in following these terms.</p>\n<p>Each API response returns the following set of headers to help you identify your use status:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>X-RateLimit-Limit</code></td>\n<td>The maximum number of requests that the consumer is permitted to make per minute.</td>\n</tr>\n<tr>\n<td><code>X-RateLimit-Remaining</code></td>\n<td>The number of requests remaining in the current rate limit window.</td>\n</tr>\n<tr>\n<td><code>X-RateLimit-Reset</code></td>\n<td>The time at which the current rate limit window resets in UTC epoch seconds.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"503-response\">503 response</h3>\n<p>An HTTP <code>503</code> response from our servers indicates there is an unexpected spike in API access traffic. The server is usually operational within the next five minutes. If the outage persists or you receive any other form of an HTTP <code>5XX</code> error, <a href=\"https://support.foundationx.ai\">contact support</a>.</p>\n<h1 id=\"api-error-handling-documentation\">API Error Handling Documentation</h1>\n<h2 id=\"overview\">Overview</h2>\n<p>This documentation explains the error handling mechanism of our API, including the structure of error responses and the types of errors that clients might encounter. It is essential for clients to understand these errors to handle them effectively in their applications.</p>\n<h2 id=\"error-handling-mechanism\">Error Handling Mechanism</h2>\n<p>When an error occurs during the processing of a request, the API responds with a structured error object. The error handling logic ensures that clients receive a consistent and informative error response.</p>\n<h3 id=\"error-object-structure\">Error Object Structure</h3>\n<p>The error object returned by the API has the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": &lt;HTTP status code&gt;,\n    \"type\": \"https://www.rfc-editor.org/rfc/rfc9110.html/&lt;error type&gt;\",\n    \"title\": \"&lt;error title&gt;\",\n    \"detail\": \"&lt;error detail&gt;\",\n    \"instance\": \"&lt;error instance&gt;\"\n}\n\n</code></pre>\n<h3 id=\"response-headers\">Response Headers</h3>\n<p>The error response will include the following header:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Content-Type: application/problem+json\n\n</code></pre><h2 id=\"error-response-components\">Error Response Components</h2>\n<ul>\n<li><p><strong>status</strong>: The HTTP status code of the error (e.g., 400, 401, 404, 500).</p>\n</li>\n<li><p><strong>type</strong>: A URL pointing to the error documentation.</p>\n</li>\n<li><p><strong>title</strong>: A short, human-readable summary of the error.</p>\n</li>\n<li><p><strong>detail</strong>: A detailed description of the error.</p>\n</li>\n<li><p><strong>instance</strong>: A URI reference that identifies the specific occurrence of the problem.</p>\n</li>\n</ul>\n<h2 id=\"common-error-types\">Common Error Types</h2>\n<h3 id=\"400-bad-request\">400 Bad Request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 400,\n    \"type\": \"https://www.rfc-editor.org/rfc/rfc9110.html/bad-request\",\n    \"title\": \"Bad Request\",\n    \"detail\": \"The request could not be understood or was missing required parameters.\",\n    \"instance\": \"&lt;request URI&gt;\"\n}\n\n</code></pre>\n<h3 id=\"401-unauthorized\">401 Unauthorized</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 401,\n    \"type\": \"https://www.rfc-editor.org/rfc/rfc9110.html/unauthorized\",\n    \"title\": \"Unauthorized\",\n    \"detail\": \"Authentication failed or user does not have permissions for the requested operation.\",\n    \"instance\": \"&lt;request URI&gt;\"\n}\n\n</code></pre>\n<h3 id=\"403-forbidden\">403 Forbidden</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 403,\n    \"type\": \"https://www.rfc-editor.org/rfc/rfc9110.html/forbidden\",\n    \"title\": \"Forbidden\",\n    \"detail\": \"Access to the requested resource is forbidden.\",\n    \"instance\": \"&lt;request URI&gt;\"\n}\n\n</code></pre>\n<h3 id=\"404-not-found\">404 Not Found</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 404,\n    \"type\": \"https://www.rfc-editor.org/rfc/rfc9110.html/not-found\",\n    \"title\": \"Not Found\",\n    \"detail\": \"The requested resource was not found.\",\n    \"instance\": \"&lt;request URI&gt;\"\n}\n\n</code></pre>\n<h3 id=\"500-internal-server-error\">500 Internal Server Error</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 500,\n    \"type\": \"https://www.rfc-editor.org/rfc/rfc9110.html/internal-server-error\",\n    \"title\": \"Internal Server Error\",\n    \"detail\": \"An unexpected error occurred on the server.\",\n    \"instance\": \"&lt;request URI&gt;\"\n}\n\n</code></pre>\n<h2 id=\"error-handling-class-httperrorbase\">Error Handling Class: HttpErrorBase</h2>\n<p>The <code>HttpErrorBase</code> class is used to define and handle HTTP errors. It ensures that error responses are standardized.</p>\n<h3 id=\"properties\">Properties:</h3>\n<ul>\n<li><p><strong>status</strong>: HTTP status code.</p>\n</li>\n<li><p><strong>type</strong>: Type of the error.</p>\n</li>\n<li><p><strong>title</strong>: Short, human-readable summary of the error.</p>\n</li>\n<li><p><strong>detail</strong>: Detailed description of the error.</p>\n</li>\n<li><p><strong>instance</strong>: URI reference identifying the specific occurrence of the problem.</p>\n</li>\n</ul>\n<h2 id=\"conclusion\">Conclusion</h2>\n<p>This documentation outlines how our API handles errors, the structure of error responses, and common error types. Understanding this information will help clients handle errors more effectively and ensure a smoother integration with our API.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"📄 Get started here","slug":"get-started-here"},{"content":"API Overview","slug":"api-overview"},{"content":"Getting Started with FoundationAPI","slug":"getting-started-with-foundationapi"},{"content":"Authentication","slug":"authentication"},{"content":"Rate and Usage Limits","slug":"rate-and-usage-limits"},{"content":"API Error Handling Documentation","slug":"api-error-handling-documentation"}],"owner":"7322987","collectionId":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","publishedId":"2sA3JT2xvB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-05-17T11:01:56.000Z"},"item":[{"name":"Project","item":[{"name":"List all projects in org","id":"93868e3d-a5ba-4a42-bd1f-0f04203b1a8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/api/v2/projects?limit=100&offset=0","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["api","v2","projects"],"host":["https://api.sferal.ai"],"query":[{"key":"limit","value":"100"},{"key":"offset","value":"0"},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"ed6abf88-cf62-4731-899d-caf928e907dd","name":"List all projects in org","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.sferal.ai/v1/projects?limit=10&offset=0","host":["https://api.sferal.ai"],"path":["v1","projects"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 13 Nov 2024 06:57:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"ETag","value":"W/\"c29-A48EgnFNcOTP8YVmTLrRTYLDhLc\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=BIL8XCUGwjoo0znAVnWP0MsdyFC00uUSGEBbTRiIroq6FHGj%2B%2B%2BJtSTwzRtM9kuyl1ZOFMGTFotazwBEzHFaq9Vmo%2FrL6OnsO6MEphZUYtCYI9GLfZ198NJuDB%2FzTD9%2FKwnBTg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8e1cde287eb0c9d1-OTP"},{"key":"Content-Encoding","value":"br"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=19751&sent=21&recv=23&lost=0&retrans=0&sent_bytes=5551&recv_bytes=1303&delivery_rate=276844&cwnd=256&unsent_bytes=0&cid=e9785a1b29cbced1&ts=10692&x=0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": [\n        {\n            \"id\": \"5268fc98-aed1-495c-bc17-c11d775ceb29\",\n            \"name\": \"ESP32 S3\",\n            \"description\": \"\",\n            \"descriptionExtra\": null,\n            \"projectType\": {\n                \"id\": 1,\n                \"name\": \"Chat\",\n                \"shortName\": \"chat\"\n            },\n            \"embeddingStatus\": \"completed\",\n            \"projChat\": {\n                \"similarityScoreThreshold\": 0.8,\n                \"embeddingChunkSize\": 1024,\n                \"embeddingChunkOverlap\": 64,\n                \"temperatureLlm\": 0.3,\n                \"aiModelLlmId\": 16,\n                \"aiModelEmbeddingId\": 11,\n                \"autoShowInitialMessages\": 3,\n                \"projectId\": \"5268fc98-aed1-495c-bc17-c11d775ceb29\",\n                \"createdAt\": \"2024-09-20T11:34:00.219Z\",\n                \"updatedAt\": \"2024-09-20T11:34:00.219Z\",\n                \"basePrompt\": \"I want you to roleplay as \\\"AI Assistant\\\". You will provide me with answers from the given context. If the answer is not included in the context, try to give an answer that is as good, correct and comprehensive as possible based on your knowledge.\"\n            }\n        }\n    ]\n}"}],"_postman_id":"93868e3d-a5ba-4a42-bd1f-0f04203b1a8e"},{"name":"Set chat settings","id":"abb1c2cc-10b8-4b2d-a23b-f2ac3404f885","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"a6de2a9c-a99f-4330-a5d8-bae1c60ca85d\",\n    \"similarityScoreThreshold\": 0.5, //optional\n    \"embeddingChunkSize\": 512, //optional\n    \"embeddingChunkOverlap\": 64, //optional\n    \"temperatureLlm\": 0.3, //optional\n    \"autoShowInitialMessages\": 3, //optional\n    \"basePrompt\":\"I want you to roleplay as \\\"AI Assistant\\\". You will provide me with answers from the given context. If the answer is not included in the context, try to give an answer that is as good, correct and comprehensive as possible based on your knowledge.\" //optional\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/projects/settings/chat","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","projects","settings","chat"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[{"id":"a5e54939-8cd5-4464-bd9a-0834c5447486","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 5,\n    \"similarityScoreThreshold\": 0.5,\n    \"embeddingChunkSize\": 512,\n    \"embeddingChunkOverlap\": 64,\n    \"temperatureLlm\": 0.3,\n    \"modelLlmDefault\": \"gpt_4\",\n    \"autoShowInitialMessages\": 3\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/projects/settings/chat"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"64"},{"key":"ETag","value":"W/\"40-aZRTlqqXTQ7RVaFJBrycyBOyU/s\""},{"key":"Date","value":"Tue, 30 Jul 2024 07:58:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": \"Project settings updated successfully\"\n}"}],"_postman_id":"abb1c2cc-10b8-4b2d-a23b-f2ac3404f885"},{"name":"Create new project","id":"8571ef79-1763-43fc-952b-f7c0fabfd4c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"language\": \"ro-RO\",\n  \"name\": \"Numele Proiectului Chatxxxxx\",\n  \"description\": \"Aceasta este descrierea principală a proiectului.\",\n  \"descriptionExtra\": \"Detalii suplimentare despre proiect.\",\n  \"embeddingChunkSize\": 512,\n  \"embeddingChunkOverlap\": 128,\n  \"temperatureLlm\": 0.75,\n  \"similarityScoreThreshold\": 0.8,\n  \"autoShowInitialMessages\": 1,\n  \"basePrompt\": \"Salut! Cum te pot ajuta astăzi?\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/projects","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","projects"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[{"id":"c6acf7ca-7947-4bb2-98fe-8a9aea408d79","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 5,\n    \"similarityScoreThreshold\": 0.5,\n    \"embeddingChunkSize\": 512,\n    \"embeddingChunkOverlap\": 64,\n    \"temperatureLlm\": 0.3,\n    \"modelLlmDefault\": \"gpt_4\",\n    \"autoShowInitialMessages\": 3\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/projects/settings/chat"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"64"},{"key":"ETag","value":"W/\"40-aZRTlqqXTQ7RVaFJBrycyBOyU/s\""},{"key":"Date","value":"Tue, 30 Jul 2024 07:58:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": \"Project settings updated successfully\"\n}"}],"_postman_id":"8571ef79-1763-43fc-952b-f7c0fabfd4c4"},{"name":"Delete project","id":"dc14e769-2a8f-4390-b3ac-b1b633777c97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.sferal.ai/v1/projects/:projectId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","projects",":projectId"],"host":["https://api.sferal.ai"],"query":[],"variable":[{"type":"any","value":"3241433c-7551-415a-a45f-900dcad81d04","key":"projectId"}]}},"response":[],"_postman_id":"dc14e769-2a8f-4390-b3ac-b1b633777c97"}],"id":"a4fed0b2-5efc-4988-b7d6-8830e27ebcf2","description":"<h1 id=\"1-list-all-projects-in-organisation\">1. List all projects in organisation</h1>\n<p><code>GET /v1/projects</code></p>\n<h3 id=\"description\">Description</h3>\n<p>This endpoint allows clients to fetch all projects from the organisation based on x-api-key. The client must provide a valid API key in the request headers. Also to perform listing you need <code>x-api-key</code> for Organisation</p>\n<h3 id=\"request-headers\">Request Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>x-api-key</code></td>\n<td>string</td>\n<td>The API key for verification</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"request-query-parameters\">Request Query Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>limit</code></td>\n<td>integer</td>\n<td>limit of number of projects listed</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>integer</td>\n<td>from where to start listing projects</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"usage-notes\">Usage Notes</h3>\n<ul>\n<li><p>Ensure to provide a valid API key in the request headers. The key will be used to verify the client’s authorization to access the endpoint.</p>\n</li>\n<li><p>The <code>sourceId</code> parameter in the URL path specifies the source to be fetched.</p>\n</li>\n<li><p>If the source is not found, the endpoint will return a <code>404 Not Found</code> status with an appropriate error message.</p>\n</li>\n<li><p>In case of any errors during the process, a <code>400 Bad Request</code> status code will be returned with the error message.</p>\n</li>\n</ul>\n<h3 id=\"responses\">Responses</h3>\n<h3 id=\"200-ok\">200 OK</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 200,\n    \"payload\": [\n        {\n            \"id\": \"5268fc98-xxxx-xxxx-xxxx-c11d775ceb29\",\n            \"name\": \"Name of the source\",\n            \"description\": \"\",\n            \"descriptionExtra\": null,\n            \"projectType\": {\n                \"id\": 1,\n                \"name\": \"Chat\",\n                \"shortName\": \"chat\"\n            },\n            \"embeddingStatus\": \"completed\",\n            \"projChat\": {\n                \"similarityScoreThreshold\": 0.8,\n                \"embeddingChunkSize\": 1024,\n                \"embeddingChunkOverlap\": 64,\n                \"temperatureLlm\": 0.3,\n                \"aiModelLlmId\": 16,\n                \"aiModelEmbeddingId\": 11,\n                \"autoShowInitialMessages\": 3,\n                \"projectId\": \"5268fc98-xxxx-xxxx-xxxx-c11d775ceb29\",\n                \"createdAt\": \"2024-09-20T11:34:00.219Z\",\n                \"updatedAt\": \"2024-09-20T11:34:00.219Z\",\n                \"basePrompt\": \"I want you to roleplay as \\\"AI Assistant\\\". You will provide me with answers from the given context. If the answer is not included in the context, try to give an answer that is as good, correct and comprehensive as possible based on your knowledge.\"\n            }\n        }\n    ]\n}\n\n</code></pre>\n<h1 id=\"2-settings-for-project-chat\">2. Settings for project Chat</h1>\n<p><code>POST /v1/projects/settings/chat</code></p>\n<h3 id=\"description-1\">Description</h3>\n<p>This endpoint updates the chat settings for a specific project. The settings include parameters for similarity score threshold, embedding chunk size, embedding chunk overlap, temperature for the language model, and the default language model.</p>\n<h3 id=\"request-headers-1\">Request Headers</h3>\n<ul>\n<li><code>x-api-key</code> (string, required): The API key to authenticate the request.</li>\n</ul>\n<h3 id=\"request-body\">Request Body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 1,\n  \"similarityScoreThreshold\": 0.5,\n  \"embeddingChunkSize\": 1024,\n  \"embeddingChunkOverlap\": 128,\n  \"temperatureLlm\": 0.7,\n  \"basePrompt\": \"your prompt here\" \n}\n\n</code></pre>\n<ul>\n<li><p><code>id</code> (integer, required): The ID of the project whose settings are to be updated.</p>\n</li>\n<li><p><code>similarityScoreThreshold</code> (float, required)</p>\n<ul>\n<li><p><strong>Description</strong>: This parameter sets the threshold for similarity scoring, which determines how similar a new input must be to existing data to be considered a match.</p>\n</li>\n<li><p><strong>Range</strong>: Between 0 and 1.</p>\n<ul>\n<li><p><strong>0</strong>: Allows for a very loose match (high tolerance for differences).</p>\n</li>\n<li><p><strong>1</strong>: Requires an exact match (no tolerance for differences).</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Usage</strong>: Lower values are useful for broad matches, while higher values ensure strict similarity.</p>\n</li>\n</ul>\n</li>\n<li><p><code>embeddingChunkSize</code> (integer, required)</p>\n<ul>\n<li><p><strong>Description</strong>: This parameter defines the size of the text chunks used for creating embeddings.</p>\n</li>\n<li><p><strong>Range</strong>: Between 512 and 4096.</p>\n<ul>\n<li><p><strong>512</strong>: Smaller chunks, resulting in more detailed embeddings but potentially higher computational cost.</p>\n</li>\n<li><p><strong>4096</strong>: Larger chunks, which can capture more context in a single embedding but might lose some granularity.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Usage</strong>: Choose smaller sizes for tasks needing detailed text analysis, and larger sizes for capturing broader context.</p>\n</li>\n</ul>\n</li>\n<li><p><code>embeddingChunkOverlap</code> (integer, required)</p>\n<ul>\n<li><p><strong>Description</strong>: This parameter specifies the overlap size between consecutive text chunks when creating embeddings.</p>\n</li>\n<li><p><strong>Range</strong>: Between 4 and 256.</p>\n<ul>\n<li><p><strong>4</strong>: Minimal overlap, reducing redundancy but possibly missing some context.</p>\n</li>\n<li><p><strong>256</strong>: Maximum overlap, ensuring more context is preserved but increasing computational load.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Usage</strong>: Higher overlap values are useful for maintaining context continuity, while lower values reduce processing time.</p>\n</li>\n</ul>\n</li>\n<li><p><code>temperatureLlm</code> (float, required)</p>\n<ul>\n<li><p><strong>Description</strong>: This parameter controls the randomness of the language model's output.</p>\n</li>\n<li><p><strong>Range</strong>: Between 0.1 and 1.</p>\n<ul>\n<li><p><strong>0.1</strong>: Low temperature, making the output more deterministic and focused.</p>\n</li>\n<li><p><strong>1</strong>: High temperature, making the output more random and creative.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Usage</strong>: Use lower temperatures for tasks requiring precision and consistency, and higher temperatures for creative and varied responses.</p>\n</li>\n</ul>\n</li>\n<li><p><code>basePrompt</code> (string, required)</p>\n<ul>\n<li><strong>Description</strong>: This parameter sets the default prompt for your project</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"responses-1\">Responses</h3>\n<h4 id=\"200-ok-1\">200 OK</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": 200,\n  \"payload\": \"Project settings updated successfully\"\n}\n\n</code></pre>\n<ul>\n<li><p><code>status</code> (integer): The HTTP status code.</p>\n</li>\n<li><p><code>payload</code> (string): The success message.</p>\n</li>\n</ul>\n<h1 id=\"3-delete-project\">3. Delete project</h1>\n<p><code>DELETE /v1/projects/:projectId</code></p>\n<h4 id=\"description-2\">Description</h4>\n<p>This endpoint is used to delete a specific chat project by its UUID. Also to perform a delete you need <code>x-api-key</code> for Organisation</p>\n<h4 id=\"request-headers-2\">Request Headers</h4>\n<ul>\n<li><code>x-api-key</code> (string, required): The API key to authenticate the request.</li>\n</ul>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li><p><code>projectId</code> (UUID, required): The unique identifier of the project to be deleted.</p>\n<ul>\n<li><strong>Validation</strong>: Must be a valid UUID.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"responses-2\">Responses</h4>\n<h5 id=\"204-no-content\">204 No Content</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": 204,\n  \"payload\": \"Project deleted successfully\"\n}\n\n</code></pre>\n<ul>\n<li><p><strong>status</strong>: The HTTP status code indicating that the operation was successful and no content is being returned.</p>\n</li>\n<li><p><strong>payload</strong>: A confirmation message indicating that the project was deleted successfully.</p>\n</li>\n</ul>\n","_postman_id":"a4fed0b2-5efc-4988-b7d6-8830e27ebcf2","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}}},{"name":"Chat","item":[{"name":"Get all conversation","id":"597b2d45-1c34-4a3e-a667-95587d8ec1bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/chats/conversations?limit=1&offset=0&projectId=6073a312-0b57-4e52-99d6-7eb22c61c3b4","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","chats","conversations"],"host":["https://api.sferal.ai"],"query":[{"key":"limit","value":"1"},{"key":"offset","value":"0"},{"disabled":true,"key":"start","value":"2024-02-01"},{"disabled":true,"key":"end","value":"2026-02-01"},{"key":"projectId","value":"6073a312-0b57-4e52-99d6-7eb22c61c3b4"}],"variable":[]}},"response":[{"id":"64cce634-98db-4b58-8847-36a8041ffcb8","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/chat/conversations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"374"},{"key":"ETag","value":"W/\"176-q2aTwq34q6mmGmPyT/+IeOExdZo\""},{"key":"Date","value":"Thu, 25 Jul 2024 07:52:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": [\n        {\n            \"id\": \"a4a6193c-8ac6-4dfd-9fb2-9b8fdc4b4c37\",\n            \"name\": \"nea ion - salut\",\n            \"createdAt\": \"2024-07-25T07:52:15.331Z\",\n            \"createdByUserId\": \"941f7b83-f35c-4255-8c17-d9211e6f64a2\",\n            \"messages\": [\n                {\n                    \"id\": \"e7130de4-8315-48be-aeaa-d30922f2068a\",\n                    \"content\": \"Salut! Comment puis-je vous aider aujourd'hui?\",\n                    \"createdAt\": \"2024-07-25T07:52:22.921Z\"\n                }\n            ],\n            \"_count\": {\n                \"messages\": 2\n            }\n        }\n    ]\n}"}],"_postman_id":"597b2d45-1c34-4a3e-a667-95587d8ec1bd"},{"name":"Get conversation","id":"1577a176-0979-47f9-aaed-e58ea3403cfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/chats/conversation/:conversationId?limit=10&offset=0&projectId=6dbfe8d7-e202-41f4-aa28-4ed6cff2cdd8","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","chats","conversation",":conversationId"],"host":["https://api.sferal.ai"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"},{"key":"projectId","value":"6dbfe8d7-e202-41f4-aa28-4ed6cff2cdd8"}],"variable":[{"description":{"content":"<p>ConversationID got from Get All Conversations</p>\n","type":"text/plain"},"type":"any","value":"dffeb46a-30bf-4918-9c09-c02a8b025691","key":"conversationId"}]}},"response":[{"id":"52ac5b99-f151-4aae-8472-dbd39f6b8b65","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.sferal.ai/v1/chat/conversation/:conversationId","host":["https://api.sferal.ai"],"path":["v1","chat","conversation",":conversationId"],"variable":[{"key":"conversationId","value":"a4a6193c-8ac6-4dfd-9fb2-9b8fdc4b4c37"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"273"},{"key":"ETag","value":"W/\"111-6E0AWkHoYmbz9s3+oMRAvI2SKxY\""},{"key":"Date","value":"Thu, 25 Jul 2024 07:52:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": [\n        {\n            \"id\": \"e7130de4-8315-48be-aeaa-d30922f2068a\",\n            \"content\": \"Salut! Comment puis-je vous aider aujourd'hui?\",\n            \"createdAt\": \"2024-07-25T07:52:22.921Z\"\n        },\n        {\n            \"id\": \"880adc7f-eefa-483e-bc17-62a1288160b7\",\n            \"content\": \"salut\",\n            \"createdAt\": \"2024-07-25T07:52:15.683Z\"\n        }\n    ]\n}"}],"_postman_id":"1577a176-0979-47f9-aaed-e58ea3403cfd"},{"name":"Create conversation","id":"bb18fa82-4513-4fd4-9492-feb649235227","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"api\",\n    \"projectId\": \"6a60cfb7-67c6-4ab4-b039-5daaaf2c1e13\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/chats/conversations/create","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","chats","conversations","create"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[{"id":"7ff2f7ab-f8d1-4dfb-be7b-014a772c3803","name":"200","originalRequest":{"method":"POST","header":[],"url":"https://api.sferal.ai/v1/chat/conversations/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"170"},{"key":"ETag","value":"W/\"aa-8zX2dqIEmTGVxulATOchzrokJXo\""},{"key":"Date","value":"Thu, 25 Jul 2024 07:58:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 201,\n    \"payload\": {\n        \"id\": \"74cdd1e0-3d82-46ff-b9ff-84e88518d53b\",\n        \"name\": \"API-test\",\n        \"dspyEnabled\": false,\n        \"createdAt\": \"2024-07-25T07:58:31.545Z\",\n        \"createdByUserId\": null\n    }\n}"}],"_postman_id":"bb18fa82-4513-4fd4-9492-feb649235227"},{"name":"Message dpsy","id":"9b2fcd25-ac2d-4360-acb9-11fdb3612d68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"content\":\"ce parti sunt trecute in contract?\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/chats/conversations/:conversationId/message","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","chats","conversations",":conversationId","message"],"host":["https://api.sferal.ai"],"query":[],"variable":[{"type":"any","value":"conversationID","key":"conversationId"}]}},"response":[{"id":"701c89fc-c154-4108-9d59-d9a453a02000","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"content\":\"ce parti sunt trecute in contract?\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.sferal.ai/v1/chat/conversations/:conversationId/message","host":["https://api.sferal.ai"],"path":["v1","chat","conversations",":conversationId","message"],"variable":[{"key":"conversationId","value":"74cdd1e0-3d82-46ff-b9ff-84e88518d53b"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1057"},{"key":"ETag","value":"W/\"421-Gm2DYn7Rv+2VDhQ/DhPm0HyTT4M\""},{"key":"Date","value":"Thu, 25 Jul 2024 07:59:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 201,\n    \"message\": \"Messages created successfully\",\n    \"data\": [\n        {\n            \"id\": \"c40ab991-9e19-4422-8f08-052e2ff26cd6\",\n            \"content\": \"ce parti sunt trecute in contract?\"\n        },\n        {\n            \"id\": \"095f1685-39e2-46ee-9147-af0f99e68404\",\n            \"content\": \"Într-un contract tipic, părțile trecute sunt de obicei:\\n\\n1. Numele și datele de identificare ale părților implicate (de exemplu, numele complet, adresa, CNP-ul sau codul de identificare fiscală).\\n2. Obiectul contractului, adică descrierea detaliată a ceea ce se va realiza sau furniza.\\n3. Drepturile și obligațiile fiecărei părți.\\n4. Termenii și condițiile contractului, inclusiv durata acestuia.\\n5. Modalitățile de plată și termenele de plată.\\n6. Clauze de confidențialitate, dacă este cazul.\\n7. Clauze de reziliere și condițiile în care contractul poate fi încheiat înainte de termen.\\n8. Semnăturile părților implicate și data semnării contractului.\\n\\nAcestea sunt elementele de bază, dar un contract poate conține și alte clauze specifice în funcție de natura acordului.\"\n        }\n    ]\n}"}],"_postman_id":"9b2fcd25-ac2d-4360-acb9-11fdb3612d68"},{"name":"Message stream","event":[{"listen":"test","script":{"id":"3c3b83e5-eb41-4886-88d9-b19b0e82d23c","exec":["pm.test(\"Streaming Response\", function () {","    var response = pm.response.text();","    ","    // Assuming the response is a JSON stream, parse it accordingly","    // This example assumes a JSON array stream, you need to adjust according to your actual response format","    var jsonResponse = [];","    try {","        jsonResponse = JSON.parse(response);","    } catch (e) {","        console.error(\"Failed to parse JSON\", e);","    }","","    // Process the response","    pm.expect(jsonResponse).to.be.an('array');","    jsonResponse.forEach(function (item) {","        console.log(\"Streamed item:\", item);","    });","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"40982519-498a-49fe-b0a6-91e0764e5f68","exec":[""],"type":"text/javascript","packages":{}}}],"id":"05a76caf-0fa1-4790-b8e4-e2cc4218094d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"key":"","value":""}],"body":{"mode":"raw","raw":"{\n    \"content\":\"salut, ce imformatii imi poti oferi?\"\n    // \"projectId\": \"6dbfe8d7-e202-41f4-aa28-4ed6cff2cdd8\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/chats/conversations/:conversationId/message/stream","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","chats","conversations",":conversationId","message","stream"],"host":["https://api.sferal.ai"],"query":[],"variable":[{"type":"any","value":"66b18a46-e0ae-4766-b279-9ff73eb4dc84","key":"conversationId"}]}},"response":[{"id":"38c73a3e-2917-467f-b247-929e341fe2b9","name":"Message stream","originalRequest":{"method":"POST","header":[{"key":"","value":""}],"body":{"mode":"raw","raw":"{\n    \"content\":\"salut\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.sferal.ai/v1/chat/conversations/:conversationId/message/stream","host":["https://api.sferal.ai"],"path":["v1","chat","conversations",":conversationId","message","stream"],"variable":[{"key":"conversationId","value":"502562bd-61b9-4e2a-8287-f8ddc3a9c701"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 27 May 2024 12:20:46 GMT"},{"key":"Content-Type","value":"text/event-stream"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Cache-Control","value":"no-cache"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=1AAKp2XFspYF3lHElT4%2FjH2AAEthhnoFx9j2qewfxixbdbXokOrmQA1HIpDD4oniaghZVbrpHveIo24d6HaPnowrdDC4sO%2BgJr9ams9Y6V%2BaDeNs%2FSMwp%2ByeonQGwMikMQSTyeTP9LHbJxNp\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/csp-reporting.cloudflare.com\\/cdn-cgi\\/script_monitor\\/report?m=PJQn_cWFnUUzfrAhVdlpqVMdc2tRMJclXzNX3DTukic-1716812446-1.0.1.1-pQY_EzK39Wb75bqYjT0M5jM3CZWxo.DvIS0EdOMEuNnuy7yud23UP.5RYcWyDv0czk0E3vSeBBB6h5d9fO7HJZkfUw4ASrGAY9606WgKnrbJMkQnD8DGH_.x_aPtOyzZFzoP0pmyYSLd3NMtW2XPK0S_7TywREtXoXAlpLvwMkk\"}],\"group\":\"cf-csp-endpoint\",\"max_age\":86400}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Content-Security-Policy-Report-Only","value":"script-src 'none'; connect-src 'none'; report-uri https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report?m=PJQn_cWFnUUzfrAhVdlpqVMdc2tRMJclXzNX3DTukic-1716812446-1.0.1.1-pQY_EzK39Wb75bqYjT0M5jM3CZWxo.DvIS0EdOMEuNnuy7yud23UP.5RYcWyDv0czk0E3vSeBBB6h5d9fO7HJZkfUw4ASrGAY9606WgKnrbJMkQnD8DGH_.x_aPtOyzZFzoP0pmyYSLd3NMtW2XPK0S_7TywREtXoXAlpLvwMkk; report-to cf-csp-endpoint"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"88a5f5fedb28625b-OTP"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\"Salut\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\"!\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\" Sp\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\"une\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\"-mi\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\",\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\" te\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\" rog\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\",\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\" cum\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\" te\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\" pot\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\" aj\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\"uta\"}]}\n{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\"?\"}]}\n"},{"id":"fcb535df-32de-4969-86ec-bcac7ed92a44","name":"Message stream","originalRequest":{"method":"POST","header":[{"key":"","value":""}],"body":{"mode":"raw","raw":"{\n    \"content\":\"salut, ce imformatii imi poti oferi?\",\n    \"projectId\": \"6a60cfb7-67c6-4ab4-b039-5daaaf2c1e12\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.sferal.ai/v1/chats/conversations/:conversationId/message/stream","host":["https://api.sferal.ai"],"path":["v1","chats","conversations",":conversationId","message","stream"],"variable":[{"key":"conversationId","value":"b1e40251-110b-424b-a837-81bd0883b74d"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 26 Sep 2024 13:13:41 GMT"},{"key":"Content-Type","value":"text/event-stream"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Cache-Control","value":"no-cache"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=%2BkGOmZSIHYbZhP0EH59J3xp%2BLwnYWBonED01vLIhSlIaoNVcdnhoW%2Fd6yvU%2FfT%2FGLwAgGU2%2Fugco7V4HQSf2vJqlIbVqfc2B%2BkqlI0sUBOZx1l3ccSCvckfZil%2FqABzy1Kl%2FqQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8c938341689f70c6-OTP"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"Salut\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"!\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" Pot\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" să\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" î\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ți\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" ofer\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" informa\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ții\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" despre\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" o\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" gam\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ă\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" larg\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ă\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" de\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" sub\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"iect\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"e\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\",\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" inclus\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"iv\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" \"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ști\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"in\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ță\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\",\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" tehn\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ologie\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\",\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" ist\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"orie\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\",\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" cultur\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ă\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\",\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" săn\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ăt\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ate\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" și\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" multe\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" al\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"tele\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\".\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" Dacă\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" ai\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" o\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" între\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"bare\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" specific\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ă\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" sau\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" un\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" domen\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"iu\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" de\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" interes\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\",\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" te\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" rog\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" să\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" î\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"mi\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" sp\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ui\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" și\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" voi\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" înc\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"erca\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" să\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" î\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ți\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" ofer\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" cele\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" mai\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" bune\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" ră\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"sp\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"uns\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"uri\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\" pos\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"ibile\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\".\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"\"}]}\n{\"success\":true,\"statusCode\":200,\"message\":\"\",\"data\":[{\"id\":\"8f9f5da3-7445-460c-93eb-46a7bb8c820f\",\"role\":\"user\",\"context\":null,\"content\":\"salut, ce imformatii imi poti oferi?\"},{\"role\":\"assistant\",\"content\":\"\"}]}"}],"_postman_id":"05a76caf-0fa1-4790-b8e4-e2cc4218094d"},{"name":"Message no stream","event":[{"listen":"test","script":{"id":"3c3b83e5-eb41-4886-88d9-b19b0e82d23c","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"c48d8e8c-eb97-4513-ba03-153837dc87a9","exec":[""],"type":"text/javascript","packages":{}}}],"id":"0e9cbd3a-a5c9-4612-88af-b7016b5556d2","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"key":"","value":""}],"body":{"mode":"raw","raw":"{\n    \"content\":\"salut cat fac 2 plus 2?\",\n    \"projectId\": \"9f9e83a0-329f-4e8d-9bad-3bbfe6cd2c87\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/chats/conversations/:conversationId/message/no-stream","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","chats","conversations",":conversationId","message","no-stream"],"host":["https://api.sferal.ai"],"query":[],"variable":[{"type":"any","value":"e5e079fb-d396-4f59-873a-9bcdeebd4ca0","key":"conversationId"}]}},"response":[{"id":"f42d6171-c3c6-4bf3-a454-6a3fecd57843","name":"200","originalRequest":{"method":"POST","header":[{"key":"","value":""}],"body":{"mode":"raw","raw":"{\n    \"content\":\"salut cat fac 2 plus 2?\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.sferal.ai/v1/chat/conversations/:conversationId/message/no-stream","host":["https://api.sferal.ai"],"path":["v1","chat","conversations",":conversationId","message","no-stream"],"variable":[{"key":"conversationId","value":"74cdd1e0-3d82-46ff-b9ff-84e88518d53b"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"107"},{"key":"ETag","value":"W/\"6b-PTk9np4u1Z8vRAQQng0Dim9VQrA\""},{"key":"Date","value":"Thu, 25 Jul 2024 08:35:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 201,\n    \"payload\": [\n        {\n            \"id\": \"04b84fd2-207f-4550-b7b4-ef49cdb4ae10\",\n            \"content\": \"Salut! 2 plus 2 fac 4.\"\n        }\n    ]\n}"}],"_postman_id":"0e9cbd3a-a5c9-4612-88af-b7016b5556d2"},{"name":"Get message","id":"be9df4f7-c053-4ab1-a07f-30974a7ace3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/chats/conversations/:conversationId/message/:messageId?projectId=7a81d338-f813-4aad-b7f0-e8129b3a9903","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","chats","conversations",":conversationId","message",":messageId"],"host":["https://api.sferal.ai"],"query":[{"key":"projectId","value":"7a81d338-f813-4aad-b7f0-e8129b3a9903"}],"variable":[{"type":"any","value":"15c68185-0479-4111-835d-5204411a314e","key":"conversationId"},{"type":"any","value":"3765bcf7-3ac0-4642-b164-3b43609a9015","key":"messageId"}]}},"response":[{"id":"524fcb77-bf31-4d96-94c0-02b2164dd4a2","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.sferal.ai/v1/chat/conversations/:conversationId/message/:messageId","host":["https://api.sferal.ai"],"path":["v1","chat","conversations",":conversationId","message",":messageId"],"variable":[{"key":"conversationId","value":"74cdd1e0-3d82-46ff-b9ff-84e88518d53b"},{"key":"messageId","value":"04b84fd2-207f-4550-b7b4-ef49cdb4ae10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"105"},{"key":"ETag","value":"W/\"69-0Ggxx7fft0Tutp5PdwBMZ47sTfs\""},{"key":"Date","value":"Thu, 25 Jul 2024 08:36:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": {\n        \"id\": \"04b84fd2-207f-4550-b7b4-ef49cdb4ae10\",\n        \"content\": \"Salut! 2 plus 2 fac 4.\"\n    }\n}"}],"_postman_id":"be9df4f7-c053-4ab1-a07f-30974a7ace3c"},{"name":"Delete conversation","id":"27a1bf92-6cc2-45a5-8b10-d635ff182395","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.sferal.ai/v1/chats/conversation/:conversationId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","chats","conversation",":conversationId"],"host":["https://api.sferal.ai"],"query":[],"variable":[{"type":"any","value":"conversationID","key":"conversationId"}]}},"response":[{"id":"ccba29ce-ee4b-4b8e-a259-61d353b0a696","name":"204","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.sferal.ai/v1/chat/conversation/:conversationId","host":["https://api.sferal.ai"],"path":["v1","chat","conversation",":conversationId"],"variable":[{"key":"conversationId","value":"74cdd1e0-3d82-46ff-b9ff-84e88518d53b"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"ETag","value":"W/\"1b-EmJKLoJbTyeq++/obsup6o3qAJE\""},{"key":"Date","value":"Thu, 25 Jul 2024 08:37:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"27a1bf92-6cc2-45a5-8b10-d635ff182395"}],"id":"20ffab49-7807-4c9c-8514-fc2195286471","description":"<h2 id=\"overview\">Overview</h2>\n<p>The Project Chat API provides endpoints for managing conversations and messages within a project. The API uses Express and Dayjs for date handling, and verifies API keys for authentication. Below are the available endpoints and their details.</p>\n<h2 id=\"endpoints\">Endpoints</h2>\n<h1 id=\"1-get-all-conversations\">1. Get All Conversations</h1>\n<h4 id=\"get-v1chatsconversations\"><code>GET /v1/chats/conversations</code></h4>\n<p>Fetches all conversations within the specified date range.</p>\n<p><strong>Headers:</strong></p>\n<ul>\n<li><code>x-api-key</code> (string): API key for authentication.</li>\n</ul>\n<p><strong>Query Parameters:</strong></p>\n<ul>\n<li><p><code>limit</code> (integer, optional): Number of conversations to return (default is 100).</p>\n</li>\n<li><p><code>offset</code> (integer, optional): Offset for pagination (default is 0).</p>\n</li>\n<li><p><code>start</code> (string, optional): Start date in ISO format (default is one month ago).</p>\n</li>\n<li><p><code>end</code> (string, optional): End date in ISO format (default is current date).</p>\n</li>\n</ul>\n<p><strong>Responses:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 200,\n    \"payload\": [\n        {\n            \"id\": \"502562bd-61b9-4e2a-8287-f8ddc3a9c701\",\n            \"modelLlmDefault\": null,\n            \"createdAt\": \"2024-05-27T11:29:57.367Z\",\n            \"messages\": [\n                {\n                    \"id\": \"87477574-5221-446b-9b69-fd4eff07c4a4\",\n                    \"role\": \"ASSISTANT\",\n                    \"context\": \"\",\n                    \"content\": \"Hello! How can I assist you today?\",\n                    \"modelLlm\": \"gpt_4\",\n                    \"createdAt\": \"2024-05-27T11:29:58.884Z\"\n                }\n            ],\n            \"_count\": {\n                \"messages\": 2\n            }\n        }\n    ]\n}\n\n</code></pre>\n<h1 id=\"2-get-conversation-by-id\">2. Get Conversation by ID</h1>\n<h4 id=\"get-v1chatsconversationsconversationid\"><code>GET /v1/chats/conversations/:conversationId</code></h4>\n<p>Fetches a specific conversation by its ID.</p>\n<p><strong>Headers:</strong></p>\n<ul>\n<li><code>x-api-key</code> (string): API key for authentication.</li>\n</ul>\n<p><strong>Query Parameters:</strong></p>\n<ul>\n<li><p><code>limit</code> (integer, optional): Number of messages to return (default is 100).</p>\n</li>\n<li><p><code>offset</code> (integer, optional): Offset for pagination (default is 0).</p>\n</li>\n</ul>\n<p><strong>Responses:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 200,\n    \"payload\": [\n        {\n            \"id\": \"4c03ac21-496e-475c-9caf-4e69e6f04493\",\n            \"role\": \"ASSISTANT\",\n            \"context\": \"\",\n            \"content\": \"Salut! Cum te pot ajuta astăzi?\",\n            \"modelLlm\": \"gpt_4\",\n            \"createdAt\": \"2024-05-28T09:52:31.756Z\"\n        }\n    ]\n}\n\n</code></pre>\n<h1 id=\"3-delete-conversation\">3. Delete Conversation</h1>\n<h4 id=\"delete-v1chatsconversationsconversationid\"><code>DELETE /v1/chats/conversations/:conversationId</code></h4>\n<p>Soft deletes a conversation by its ID.</p>\n<p><strong>Headers:</strong></p>\n<ul>\n<li><code>x-api-key</code> (string): API key for authentication.</li>\n</ul>\n<p><strong>Responses:</strong></p>\n<ul>\n<li><code>204 No Content</code>: Conversation deleted successfully.</li>\n</ul>\n<h1 id=\"4-get-message-by-id\">4. Get Message by ID</h1>\n<h4 id=\"get-v1chatsconversationsconversationidmessagesmessageid\"><code>GET /v1/chats/conversations/:conversationId/messages/:messageId</code></h4>\n<p>Fetches a specific message by its ID within a conversation.</p>\n<p><strong>Headers:</strong></p>\n<ul>\n<li><code>x-api-key</code> (string): API key for authentication.</li>\n</ul>\n<p><strong>Responses:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 200,\n    \"payload\": {\n        \"id\": \"2b82af55-ac20-499a-92f9-a883a99d6d6d\",\n        \"role\": \"ASSISTANT\",\n        \"context\": \"\",\n        \"content\": \"Salut! Cum te pot ajuta astăzi?\",\n        \"modelLlm\": \"gpt_4\"\n    }\n}\n\n</code></pre>\n<h1 id=\"5-create-conversation\">5. Create Conversation</h1>\n<h4 id=\"post-v1chatsconversations\"><code>POST /v1/chats/conversations</code></h4>\n<p>Creates a new conversation.</p>\n<p><strong>Headers:</strong></p>\n<ul>\n<li><code>x-api-key</code> (string): API key for authentication.</li>\n</ul>\n<p><strong>Body Parameters:</strong></p>\n<p>If you came with the organisation <code>x-api-key</code> , you need to provide the <code>projectId</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"api\",\n    \"projectId\": \"6a60cfb7-67c6-4ab4-b039-5daaaf2c1e12\"\n}\n\n</code></pre>\n<p><strong>else if you came with project</strong> <strong><code>x-api-key</code></strong> <strong>:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"api\"\n}\n\n</code></pre>\n<p><strong>Responses:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 200,\n    \"payload\": [\n        {\n            \"id\": \"a4a6193c-8ac6-4dfd-9fb2-9b8fdc4b4c37\",\n            \"name\": \"nea ion - salut\",\n            \"createdAt\": \"2024-07-25T07:52:15.331Z\",\n            \"createdByUserId\": \"941f7b83-f35c-4255-8c17-d9211e6f64a2\",\n            \"messages\": [\n                {\n                    \"id\": \"e7130de4-8315-48be-aeaa-d30922f2068a\",\n                    \"content\": \"Salut! Comment puis-je vous aider aujourd'hui?\",\n                    \"createdAt\": \"2024-07-25T07:52:22.921Z\"\n                }\n            ],\n            \"_count\": {\n                \"messages\": 2\n            }\n        }\n    ]\n}\n\n</code></pre>\n<h1 id=\"6-create-message-dspy\">6. Create Message Dspy</h1>\n<h4 id=\"post-v1chatsconversationsconversationidmessages\"><code>POST /v1/chats/conversations/:conversationId/messages</code></h4>\n<p>Creates a new message within a conversation.</p>\n<p><strong>Headers:</strong></p>\n<ul>\n<li><code>x-api-key</code> (string): API key for authentication.</li>\n</ul>\n<p><strong>Body Parameters:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"content\":\"Salut\"\n}\n\n</code></pre>\n<p><strong>Responses:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 201,\n    \"payload\": [\n        {\n            \"id\": \"be9d5971-18a0-455c-beb8-5d02d283b2d9\",\n            \"role\": \"USER\",\n            \"context\": null,\n            \"content\": \"Salut\",\n            \"modelLlm\": \"gpt_4\"\n        },\n        {\n            \"id\": \"b36bf14b-b1c3-469a-a902-e4dfa3fc2e24\",\n            \"role\": \"ASSISTANT\",\n            \"context\": \"\",\n            \"content\": \"Desigur, te pot ajuta cu plăcere! Îmi poți oferi mai multe detalii despre ce anume dorești să afli? Astfel, îți voi putea oferi informații mai precise și utile.\",\n            \"modelLlm\": \"gpt_4\"\n        }\n    ]\n}\n\n</code></pre>\n<ul>\n<li><code>500 Internal Server Error</code>: An error occurred while creating the message.</li>\n</ul>\n<h1 id=\"7-create-message-stream\">7. Create Message stream</h1>\n<h4 id=\"post-v1chatsconversationsconversationidmessagesstream\"><code>POST /v1/chats/conversations/:conversationId/messages/stream</code></h4>\n<p>Creates a new message within a conversation.</p>\n<p><strong>Headers:</strong></p>\n<ul>\n<li><code>x-api-key</code> (string): API key for authentication.</li>\n</ul>\n<p><strong>Body Parameters:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"content\":\"Salut\"\n}\n\n</code></pre>\n<p><strong>Responses:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"status\":201,\"payload\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\"Salut\"}]}\n\n</code></pre>\n<ul>\n<li><code>500 Internal Server Error</code>: An error occurred while creating th</li>\n</ul>\n<h2 id=\"error-handling\">Error Handling</h2>\n<ul>\n<li><p><code>HttpErrorBase</code>: Base class for HTTP errors.</p>\n</li>\n<li><p><code>InternalServerError</code>: Represents an internal server error.</p>\n</li>\n</ul>\n<p>When an error occurs, the API will return an appropriate HTTP status code along with a message indicating the error.</p>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p>Ensure to include the <code>x-api-key</code> header in all requests for authentication.</p>\n</li>\n<li><p>Handle pagination using the <code>limit</code> and <code>offset</code> parameters to manage large data sets effectively.</p>\n</li>\n<li><p>Use ISO format for date parameters to ensure consistency.</p>\n</li>\n</ul>\n<h1 id=\"8-create-message-no-stream\">8. Create Message No stream</h1>\n<h4 id=\"post-v1chatsconversationsconversationidmessagesno-stream\"><code>POST /v1/chats/conversations/:conversationId/messages/no-stream</code></h4>\n<p>Creates a new message within a conversation.</p>\n<p><strong>Headers:</strong></p>\n<ul>\n<li><code>x-api-key</code> (string): API key for authentication.</li>\n</ul>\n<p><strong>Body Parameters:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"content\":\"Salut\"\n}\n\n</code></pre>\n<p><strong>Responses:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"statusCode\":201,\"message\":\"Messages created successfully\",\"data\":[{\"id\":\"4cab6c11-46e9-4283-97a4-843f46bd167d\",\"role\":\"USER\",\"context\":null,\"content\":\"salut\",\"modelLlm\":\"gpt_4\"},{\"content\":\"Salut\"}]}\n\n</code></pre>\n<h2 id=\"notes-1\">Notes</h2>\n<ul>\n<li><p>Ensure to include the <code>x-api-key</code> header in all requests for authentication.</p>\n</li>\n<li><p>Handle pagination using the <code>limit</code> and <code>offset</code> parameters to manage large data sets effectively.</p>\n</li>\n<li><p>Use ISO format for date parameters to ensure consistency.</p>\n</li>\n</ul>\n","_postman_id":"20ffab49-7807-4c9c-8514-fc2195286471","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}}},{"name":"Sources","item":[{"name":"tags","item":[{"name":"search tags","id":"2b447758-0cff-4678-b633-c7102b1c27d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/sources/tag?name=te&limit=100&offset=0","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","tag"],"host":["https://api.sferal.ai"],"query":[{"description":{"content":"<p>OPTIONAL</p>\n","type":"text/plain"},"key":"name","value":"te"},{"description":{"content":"<p>OPTIONAL</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"description":{"content":"<p>OPTIONAL</p>\n","type":"text/plain"},"key":"offset","value":"0"}],"variable":[]}},"response":[],"_postman_id":"2b447758-0cff-4678-b633-c7102b1c27d4"},{"name":"update tag","id":"bb98f761-79d8-4caf-a803-ac037468fd8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"test3\",\n    \"description\":\"tete\",\n    \"color\":\"tete\",\n    \"sourceTagCategoryId\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/tag/1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","tag","1"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb98f761-79d8-4caf-a803-ac037468fd8d"},{"name":"add tag sources","id":"1cb00087-29b7-40ca-a868-57fd2b6265d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"sourceIds\":[142],\n    \"sourceTagIds\":[2]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/add-tag","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","add-tag"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"1cb00087-29b7-40ca-a868-57fd2b6265d7"},{"name":"create tag","id":"fa0a5a85-eeea-4c37-87d8-849c42a27102","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"test\",\n    \"description\":\"test\",\n    \"color\":\"red\"\n    // \"sourceTagCategoryId\": 6 //optional\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/tag","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","tag"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa0a5a85-eeea-4c37-87d8-849c42a27102"},{"name":"delete tag","id":"4a708b74-df4f-4eb6-b424-ad7c9e470304","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.sferal.ai/v1/sources/tag/10","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","tag","10"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a708b74-df4f-4eb6-b424-ad7c9e470304"},{"name":"remove tag source","id":"9af57653-11b4-4ede-a7a9-edf458e23871","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"sourceId\": 0,\n    \"sourceTagId\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/delete-tag","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","delete-tag"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"9af57653-11b4-4ede-a7a9-edf458e23871"}],"id":"d60edf17-b9bf-4168-9df0-190bfa42b37e","_postman_id":"d60edf17-b9bf-4168-9df0-190bfa42b37e","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}}},{"name":"List all sources","id":"a4931071-dba4-453e-a0a5-57d78887e0ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/sources","description":"<p>limit &lt; 100</p>\n<p>offset &gt; 0</p>\n<p>type constants.SourceTypes(audio_video_file,audio_video_link,document_file,link_web,text,text_embedding,audio_call)</p>\n<p>subType constants.SourceSubTypes(audio_video_link-&gt;channel,video | document_file-&gt;.pdf,.docx,.txt)</p>\n<p>nameFilter</p>\n<p>rootId</p>\n<p>status: \"pending\" | \"completed\" | \"error\" | \"completed_with_errors\"</p>\n<p>statusNegated: true/false</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources"],"host":["https://api.sferal.ai"],"query":[{"disabled":true,"key":"limit","value":"100"},{"disabled":true,"key":"offset","value":"0"},{"disabled":true,"key":"flat","value":"true"},{"disabled":true,"key":"type","value":"audio_video_link"},{"disabled":true,"key":"subType","value":"video"},{"disabled":true,"key":"nameFilter","value":"bu"},{"disabled":true,"key":"rootId","value":"142"},{"disabled":true,"key":"status","value":"completed, pending"},{"disabled":true,"key":"statusNegated","value":"true"},{"disabled":true,"key":"metadata[name]","value":"andu"}],"variable":[]}},"response":[{"id":"ae6a61e1-eea9-4314-8d4e-39fa7d89d004","name":"List all sources","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.sferal.ai/v1/sources?limit=1&offset=0","host":["https://api.sferal.ai"],"path":["v1","sources"],"query":[{"key":"limit","value":"1"},{"key":"offset","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 13 Nov 2024 06:59:41 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"ETag","value":"W/\"296-/hnXrHu/6xCNaEsdlZr2nTzGeDs\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=svdzpaNPzJaj8fRTtCvuLwUtL8dsrgGFuELANLaRe8lZbwa5ePeu7iN%2FHrh05xP4LFQ3goBEWg1Kmx%2FuptH66hpU%2BA5natcEAk54zNJbhH2vVSmzt2G46Tep%2BRNuWijlmLj6Wg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8e1ce1658879c9d1-OTP"},{"key":"Content-Encoding","value":"br"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=18950&sent=159&recv=159&lost=0&retrans=0&sent_bytes=13725&recv_bytes=3875&delivery_rate=417225&cwnd=256&unsent_bytes=0&cid=e9785a1b29cbced1&ts=143348&x=0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": {\n        \"sources\": [\n            {\n                \"id\": 1732,\n                \"name\": \"esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf\",\n                \"content\": \"http://backend.foundationx.ai/v2/uploads/uploads/6df0a8d95085d3456f543a7d93546e36\",\n                \"type\": \"document_file\",\n                \"subType\": null,\n                \"status\": \"completed_with_errors\",\n                \"sizeFile\": 1240353,\n                \"sizeLength\": 0,\n                \"sizeCountLinks\": 0,\n                \"sizeCountDocuments\": 38,\n                \"origin\": null,\n                \"parentId\": null,\n                \"rootId\": 1732,\n                \"projects\": [\n                    {\n                        \"status\": \"completed\",\n                        \"project\": {\n                            \"id\": \"5268fc98-aed1-495c-bc17-c11d775ceb29\",\n                            \"name\": \"ESP32 S3\"\n                        }\n                    }\n                ],\n                \"parent\": null,\n                \"sourceTags\": [],\n                \"createdAt\": \"2024-09-20T11:35:01.322Z\",\n                \"updatedAt\": \"2024-09-20T11:35:07.628Z\",\n                \"teams\": [],\n                \"scopes\": [\n                    \"read\",\n                    \"write\",\n                    \"delete\"\n                ]\n            }\n        ],\n        \"count\": 1\n    }\n}"}],"_postman_id":"a4931071-dba4-453e-a0a5-57d78887e0ec"},{"name":"Get status sources","id":"117a4459-b1b3-4165-8baf-8c056046467f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"sourceIds\":[142]\n    // \"projectId\": \"6573f788-2b2a-49a1-9106-b765b645646e\" //optional\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/status","description":"<p>projectId - can be from api-key or from body or not at all (if not at all then it will look at organisations sources)</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","status"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[{"id":"94c48914-ea2d-4d52-83b2-e400e0d4bcfb","name":"Get status sources","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"sourceIds\":[1732]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 13 Nov 2024 07:00:26 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"ETag","value":"W/\"17a-tc+K8BRgqyaBNZFxOcd0ZtUMJsI\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=TCjvOUqSqqIkkgf1%2BWNMKdroKOCI9hU%2BXQf%2BDAnENDeGujFQsW%2FHgSWfG7ONte0jn3Y9Mrul5XZI3qNpRcsgQktw8lSOQn4nJxUg6ARlu1SLLUsEKabi6g8RnZYTZzxTQIcvMA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8e1ce27e3ad2c9d1-OTP"},{"key":"Content-Encoding","value":"br"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=19297&sent=206&recv=206&lost=0&retrans=0&sent_bytes=15813&recv_bytes=4303&delivery_rate=417225&cwnd=256&unsent_bytes=0&cid=e9785a1b29cbced1&ts=188251&x=0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": [\n        {\n            \"id\": 1732,\n            \"name\": \"esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf\",\n            \"content\": \"http://backend.foundationx.ai/v2/uploads/uploads/6df0a8d95085d3456f543a7d93546e36\",\n            \"type\": \"document_file\",\n            \"text\": null,\n            \"status\": \"completed_with_errors\",\n            \"projects\": [\n                {\n                    \"status\": \"completed\",\n                    \"project\": {\n                        \"id\": \"5268fc98-aed1-495c-bc17-c11d775ceb29\",\n                        \"name\": \"ESP32 S3\"\n                    }\n                }\n            ],\n            \"sourceTags\": []\n        }\n    ]\n}"}],"_postman_id":"117a4459-b1b3-4165-8baf-8c056046467f"},{"name":"Save sources to Organisation","id":"c3ab6ee1-a574-4ccd-b001-aa6e684378ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"raw","raw":"{\n    \"sources\": [\n        {\n            \"name\": \"https://www.acasa.ro\",\n            \"type\": \"link_web\",\n            \"downloadDocuments\": false,\n            \"maxDepth\": 0,\n            \"keepOriginalHtml\" : true\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[{"id":"4e250781-ca3f-49a6-b7f9-053798bcf6dd","name":"201","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"raw","raw":"{{body}}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/organisation/sources"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"226"},{"key":"ETag","value":"W/\"e2-Vz+ED/zFjEmpdxpI5BWEy2KxL/c\""},{"key":"Date","value":"Thu, 25 Jul 2024 08:40:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 201,\n    \"payload\": [\n        {\n            \"name\": \"https://foundationx.ai\",\n            \"type\": \"link_web\",\n            \"content\": \"https://foundationx.ai\",\n            \"organisationId\": \"1772c4ac-ba8c-4a4f-b427-5926d808ebc9\",\n            \"createdByUserId\": \"941f7b83-f35c-4255-8c17-d9211e6f64a2\"\n        }\n    ]\n}"}],"_postman_id":"c3ab6ee1-a574-4ccd-b001-aa6e684378ff"},{"name":"Get text from source","id":"f8984f58-14ce-4620-8477-6c24e0442566","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/sources/text/:sourceId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","text",":sourceId"],"host":["https://api.sferal.ai"],"query":[],"variable":[{"type":"any","value":"142","key":"sourceId"}]}},"response":[{"id":"783dbed5-7601-4c6a-a6a6-38f5a37ac01a","name":"Get text from source","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.sferal.ai/v1/sources/text/:sourceId","host":["https://api.sferal.ai"],"path":["v1","sources","text",":sourceId"],"variable":[{"key":"sourceId","value":"1733"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 13 Nov 2024 09:11:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"ETag","value":"W/\"313-oB6KGNRWppQhlyYwol+BOfj3fXE\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=aEDlGdOf1BQy35EQFNgstqLA1GXkgu4vmpgw0NaBUpB7BT1BPNyJ%2BUezvshKAs%2FE0mtNywmm6d1o7%2FT8Qa9z5uy0dzxPcNXIOh9y30x4aenWBEkzsHvF8OpTcBppoc%2Fof6B2dw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8e1da1f5ecc3e3e1-OTP"},{"key":"Content-Encoding","value":"br"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=14563&sent=4&recv=5&lost=0&retrans=0&sent_bytes=2817&recv_bytes=933&delivery_rate=146373&cwnd=249&unsent_bytes=0&cid=6f3e85f6ed5b1cdc&ts=69&x=0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": {\n        \"id\": 1733,\n        \"name\": \"esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf\",\n        \"content\": \"http://backend.foundationx.ai/v2/uploads/uploads/6df0a8d95085d3456f543a7d93546e36\",\n        \"type\": \"document_file\",\n        \"status\": \"completed\",\n        \"text\": \"# ESP32-S3-WROOM-1 ESP32-S3-WROOM-1U\\n## Datasheet\\n\\n2.4 GHz Wi-Fi (802.11 b/g/n) and Bluetooth[®] 5 (LE) module\\n\\nBuilt around ESP32-S3 series of SoCs, Xtensa[®] dual-core 32-bit LX7 microprocessor\\n\\nFlash up to 16 MB, PSRAM up to 16 MB\\n\\nUp to 36 GPIOs, rich set of peripherals\\n\\nOn-board PCB antenna or external antenna connector\\n\\nESP32-S3-WROOM-1 ESP32-S3-WROOM-1U\\n\\nVersion 1.3\\n\\nEspressif Systems\\n\\nCopyright © 2023\\n\\n\\n-----\\n\\n\"\n    }\n}"}],"_postman_id":"f8984f58-14ce-4620-8477-6c24e0442566"},{"name":"Save file to Organisation","id":"f54594e1-d51c-41f5-9da7-37e637df0e44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"postman-cloud:///1ef59368-dd75-4420-836c-6e8f1dd3cf7d"},{"key":"metadata","value":"{\"key\":\"value\"}","type":"text"},{"key":"callback","value":"<add your callback url>","type":"text"}]},"url":"https://api.sferal.ai/v1/sources/upload","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","upload"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[{"id":"966f5403-c82c-473c-a07c-0bd07978eb59","name":"Save file to Organisation","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/Users/petrubuciu/Downloads/CV_Buciu_Petru Ovidiu_ro.pdf"},{"key":"metadata","value":"{\"key\":\"value\"}","type":"text"},{"key":"callback","value":"<add your callback url>","type":"text"}]},"url":"https://api.sferal.ai/v1/sources/upload"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 13 Nov 2024 09:12:25 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"466"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"ETag","value":"W/\"1d2-YIA3JXuLQlz0XKIxrYoqPn8L6Pw\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=7EsMy9AkydKNpvApgEm8nyff%2Fq3YdZwswRt%2FREFZXRwoHleeRSiiJsYKcJo91Qvuw%2FUBBNlUA4VGVNSMUkdv6mmKPLUCtwn0Rhvui2lQy7MCoIDfu8v9iJyQTFEd43XQHkQG3w%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8e1da3c61cdbe4aa-OTP"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=14388&sent=16&recv=45&lost=0&retrans=0&sent_bytes=2818&recv_bytes=56721&delivery_rate=245444&cwnd=235&unsent_bytes=0&cid=4473e40dbef23aab&ts=2899&x=0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 201,\n    \"payload\": [\n        {\n            \"name\": \"CV_Buciu_Petru Ovidiu_ro.pdf\",\n            \"content\": \"http://api.foundationx.ai/v1/sources/upload/7d375513211f7a4f71cc713a3acd2a4d\",\n            \"type\": \"application/pdf\",\n            \"sizeFile\": 55078,\n            \"hash\": \"0c88f0063a7d7a2639aa41e064824edc4208d8dfb14bb24df1b0ae391cc10148\",\n            \"organisationId\": \"8dad4fd9-aea9-4510-a924-209e5f460b55\",\n            \"createdByUserId\": \"dc8d9e16-7470-40ea-bad2-8941ad962f54\",\n            \"clientMetadata\": {\n                \"key\": \"value\",\n                \"callback\": \"<add your callback url>\"\n            },\n            \"id\": 206449\n        }\n    ]\n}"}],"_postman_id":"f54594e1-d51c-41f5-9da7-37e637df0e44"},{"name":"Link source to project","id":"b5e95d29-8d59-41ba-b6da-01c853fda09d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"raw","raw":"{\n    \"sourceIds\": [142],\n    \"projectId\": \"85216a34-87c6-431b-b493-fa9eb1474b60\" // either from here or from api key, but i must exist\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/link","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","link"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[{"id":"9e1e3b91-bb1b-4dfd-996a-04c014c5889f","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"raw","raw":"{\n    \"sourceIds\": [10,6]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/link"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"91"},{"key":"ETag","value":"W/\"5b-Ksn+UlBnDiXmVQGcce5rvUoXiOE\""},{"key":"Date","value":"Mon, 29 Jul 2024 07:21:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": \"Sources will be linked to project, the embedding process started\"\n}"}],"_postman_id":"b5e95d29-8d59-41ba-b6da-01c853fda09d"},{"name":"Update source","id":"cb05ee9c-1245-4376-b052-8024cf63a069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Curaj renamed\",\n    \"metadata\": {\n        \"name\": \"Vasile\",\n        \"version\": 2,\n        \"values\": [1,2],\n        \"strArr\": [\"nu\", 12],\n        \"isSimple\": true\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{protocol}}{{baseUrl}}{{port}}/v1/sources/202","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","202"],"host":["{{protocol}}{{baseUrl}}{{port}}"],"query":[],"variable":[]}},"response":[{"id":"81387900-b0f1-4235-8926-236aaf26503f","name":"Save file to Organisation","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/Users/petrubuciu/Downloads/CV_Buciu_Petru Ovidiu_ro.pdf"},{"key":"metadata","value":"{\"key\":\"value\"}","type":"text"},{"key":"callback","value":"<add your callback url>","type":"text"}]},"url":"https://api.sferal.ai/v1/sources/upload"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 13 Nov 2024 09:12:25 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"466"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"ETag","value":"W/\"1d2-YIA3JXuLQlz0XKIxrYoqPn8L6Pw\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=7EsMy9AkydKNpvApgEm8nyff%2Fq3YdZwswRt%2FREFZXRwoHleeRSiiJsYKcJo91Qvuw%2FUBBNlUA4VGVNSMUkdv6mmKPLUCtwn0Rhvui2lQy7MCoIDfu8v9iJyQTFEd43XQHkQG3w%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8e1da3c61cdbe4aa-OTP"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=14388&sent=16&recv=45&lost=0&retrans=0&sent_bytes=2818&recv_bytes=56721&delivery_rate=245444&cwnd=235&unsent_bytes=0&cid=4473e40dbef23aab&ts=2899&x=0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 201,\n    \"payload\": [\n        {\n            \"name\": \"CV_Buciu_Petru Ovidiu_ro.pdf\",\n            \"content\": \"http://api.foundationx.ai/v1/sources/upload/7d375513211f7a4f71cc713a3acd2a4d\",\n            \"type\": \"application/pdf\",\n            \"sizeFile\": 55078,\n            \"hash\": \"0c88f0063a7d7a2639aa41e064824edc4208d8dfb14bb24df1b0ae391cc10148\",\n            \"organisationId\": \"8dad4fd9-aea9-4510-a924-209e5f460b55\",\n            \"createdByUserId\": \"dc8d9e16-7470-40ea-bad2-8941ad962f54\",\n            \"clientMetadata\": {\n                \"key\": \"value\",\n                \"callback\": \"<add your callback url>\"\n            },\n            \"id\": 206449\n        }\n    ]\n}"}],"_postman_id":"cb05ee9c-1245-4376-b052-8024cf63a069"},{"name":"Un-link source to project","id":"c2986c8b-cdf0-4e9f-bd2f-b0ae96b6c786","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"raw","raw":"{\n    \"sourceIds\": [142],\n    \"projectId\": \"85216a34-87c6-431b-b493-fa9eb1474b60\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/unlink","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources","unlink"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[{"id":"0f8d5728-e0df-4182-9da4-1423707508da","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"fx-xxxx"}],"body":{"mode":"raw","raw":"{\n    \"sourceIds\": [10,6]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources/link"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"RateLimit-Policy","value":"50;w=1"},{"key":"RateLimit-Limit","value":"50"},{"key":"RateLimit-Remaining","value":"49"},{"key":"RateLimit-Reset","value":"1"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"91"},{"key":"ETag","value":"W/\"5b-Ksn+UlBnDiXmVQGcce5rvUoXiOE\""},{"key":"Date","value":"Mon, 29 Jul 2024 07:21:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"payload\": \"Sources will be linked to project, the embedding process started\"\n}"}],"_postman_id":"c2986c8b-cdf0-4e9f-bd2f-b0ae96b6c786"},{"name":"Save text","id":"e90f5102-a61c-4dd1-b288-01af4126cf75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"sources\": [\n        {\n            \"name\": \"https://www.youtube.com/watch?v=JzXgvflJrxw\",\n            \"type\": \"audio_video_link1\"\n        }\n        // {\n        //     \"name\": \"http://ashterminal.xyz/\",\n        //     \"type\": \"link_web\",\n        //     \"downloadDocuments\": false,\n        //     \"maxDepth\": 1,\n        //     \"keepOriginalHtml\": false\n        // }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"e90f5102-a61c-4dd1-b288-01af4126cf75"},{"name":"Delete source","id":"7ecf33ba-f94c-4168-88ab-91dc9e1369a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"sourceIds\": [1426]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/sources","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","sources"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ecf33ba-f94c-4168-88ab-91dc9e1369a5"}],"id":"f6ba0af5-c2d2-4a6e-bcc1-692693d94682","description":"<h1 id=\"1-list-all-sources\">1. List all sources</h1>\n<p><code>GET /v1/sources</code></p>\n<h3 id=\"description\">Description</h3>\n<p>This endpoint allows clients to fetch and filter sources based on various parameters. The response will include a list of sources and a count of the total number of sources that match the filter criteria.</p>\n<h3 id=\"request-query-parameters\">Request Query Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Default Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>limit</code></td>\n<td>integer</td>\n<td>The maximum number of sources to return.</td>\n<td>100</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>integer</td>\n<td>The number of sources to skip before starting to collect the result set.</td>\n<td>0</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>The type of the source. Possible values: <code>audio_video_file</code>, <code>audio_video_link</code>, <code>document_file</code>, <code>link_web</code>.</td>\n<td><code>undefined</code></td>\n</tr>\n<tr>\n<td><code>subType</code></td>\n<td>string</td>\n<td>The subtype of the source. Possible values for <code>audio_video_link</code>: <code>channel</code>, <code>video</code>; for <code>document_file</code>: <code>.pdf</code>, <code>.docx</code>, <code>.txt</code>.</td>\n<td><code>undefined</code></td>\n</tr>\n<tr>\n<td><code>nameFilter</code></td>\n<td>string</td>\n<td>Search sources by name.</td>\n<td><code>undefined</code></td>\n</tr>\n<tr>\n<td><code>flat</code></td>\n<td>boolean</td>\n<td>If true, return all sources and all children of sources.</td>\n<td><code>false</code></td>\n</tr>\n<tr>\n<td><code>rootId</code></td>\n<td>integer</td>\n<td>The ID of the parent source. Return all sources that are children of this source.</td>\n<td><code>undefined</code></td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Comma-separated list of statuses to filter sources by. Possible statuses: <code>pending</code>, <code>start_queue_file_av</code>, <code>end_queue_file_av</code>, <code>start_queue_link_av</code>, <code>end_queue_link_av</code>, <code>start_queue_file_doc</code>, <code>end_queue_file_doc</code>, <code>start_queue_link_web</code>, <code>end_queue_link_web</code>, <code>start_queue_text</code>, <code>end_queue_text</code>, <code>completed</code>, <code>error</code>.</td>\n<td><code>undefined</code></td>\n</tr>\n<tr>\n<td><code>statusNegated</code></td>\n<td>boolean</td>\n<td>If true, negate the status filter.</td>\n<td><code>false</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-response\">Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 200,\n    \"payload\": [\n        {\n            \"id\": 11,\n            \"name\": \"AlienTuning.ro – Chip Tuning | Engine Remapping | ECU Programming | DPF Solution\",\n            \"content\": \"https://www.alientuning.ro\",\n            \"type\": \"link_web\",\n            \"subType\": null,\n            \"status\": \"completed\",\n            \"sizeFile\": 0,\n            \"sizeLength\": 0,\n            \"sizeCountLinks\": 0,\n            \"sizeCountDocuments\": 0,\n            \"origin\": null,\n            \"parentId\": 10,\n            \"rootId\": 10,\n            \"projects\": [],\n            \"parent\": {\n                \"name\": \"https://www.alientuning.ro\"\n            },\n            \"createdAt\": \"2024-06-27T10:38:54.707Z\",\n            \"updatedAt\": \"2024-06-27T10:38:54.707Z\"\n        }\n    ],\n    \"count\": 1\n}\n\n</code></pre>\n<h3 id=\"parameters-explanation\">Parameters Explanation</h3>\n<ul>\n<li><p><strong>limit</strong>: Controls the number of sources returned in the response. Use this to paginate results. If not specified, defaults to 100.</p>\n</li>\n<li><p><strong>offset</strong>: Helps in paginating the results by specifying the starting point in the collection of sources. Default is 0.</p>\n</li>\n<li><p><strong>type</strong>: Filters sources by their type. Only sources of the specified type will be returned.</p>\n</li>\n<li><p><strong>subType</strong>: Further refines the type filter by specifying the subtype of the source.</p>\n</li>\n<li><p><strong>nameFilter</strong>: Searches for sources by their name. Useful for finding specific sources by a keyword in their name.</p>\n</li>\n<li><p><strong>flat</strong>: When set to true, the response will include all sources and their children.</p>\n</li>\n<li><p><strong>rootId</strong>: Filters the sources to return only those that are children of the specified root source.</p>\n</li>\n<li><p><strong>status</strong>: Allows filtering sources by their status. Multiple statuses can be specified as a comma-separated list.</p>\n</li>\n<li><p><strong>statusNegated</strong>: If set to true, the status filter will exclude sources with the specified statuses.</p>\n</li>\n</ul>\n<h3 id=\"usage-notes\">Usage Notes</h3>\n<ul>\n<li><p>All parameters are optional. If not specified, default values will be used.</p>\n</li>\n<li><p>The <code>status</code> parameter can take multiple values separated by commas.</p>\n</li>\n</ul>\n<h1 id=\"2-save-sources-to-organisation\">2. Save sources to Organisation</h1>\n<p><code>POST /v1/sources</code></p>\n<h3 id=\"endpoint-description\"><strong>Endpoint Description:</strong></h3>\n<p>This endpoint is used for adding multiple sources to the organisation. It accepts a list of sources, each with its unique properties such as name, content URL, and type. The request must include an API key for authentication and the content type should be set to <code>application/json</code>.</p>\n<h3 id=\"headers\"><strong>Headers:</strong></h3>\n<ul>\n<li><p><strong>x-api-key:</strong> - This header is used for API authentication.</p>\n</li>\n<li><p><strong>Content-Type:</strong> <code>application/json</code> - Specifies the media type of the resource.</p>\n</li>\n</ul>\n<h3 id=\"body-json\"><strong>Body (JSON):</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sources\": [\n    {\n      \"name\": \"https://www.termene.ro\",\n      \"type\": \"link_web\"\n    },\n    {\n      \"name\": \"https://www.youtube.com/watch?v=r8y0RnNymOo&amp;list=RDCMUCNO8Lmy6s5ibqudOZ6vjNLA&amp;start_radio=1&amp;ab_channel=ChillVibesClub\",\n      \"type\": \"audio_video_link\"\n    }\n  ]\n}\n\n</code></pre>\n<h3 id=\"key-descriptions\">Key Descriptions</h3>\n<ul>\n<li><p><strong>name</strong>: This key holds the actual source data. Depending on the <code>type</code>, this can be a URL or raw text.</p>\n</li>\n<li><p><strong>type</strong>: This key defines the method of processing the source data. Supported types are <code>link_web</code>, <code>audio_video_link</code>.</p>\n</li>\n</ul>\n<h3 id=\"supported-types\">Supported Types</h3>\n<ol>\n<li><p><strong>link_web</strong></p>\n<ul>\n<li><p><strong>Description</strong>: This type is used for web URLs.</p>\n</li>\n<li><p><strong>Processing Method</strong>: FoundationX will perform web scraping on the URL provided in the <code>name</code> key.</p>\n</li>\n<li><p>Example:</p>\n</li>\n</ul>\n</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{  \"name\": \"https://www.termene.ro\",  \"type\": \"link_web\"}\n\n</code></pre>\n<ol>\n<li><p><strong>audio_video_link</strong></p>\n<ul>\n<li><p><strong>Description</strong>: This type is used for audio or video URLs.</p>\n</li>\n<li><p><strong>Processing Method</strong>: FoundationX will use Whisper to extract the text from the audio or video link provided in the <code>name</code> key.</p>\n</li>\n<li><p>Example:</p>\n</li>\n</ul>\n</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{  \"name\": \"https://www.youtube.com/watch?v=r8y0RnNymOo&amp;list=RDCMUCNO8Lmy6s5ibqudOZ6vjNLA&amp;start_radio=1&amp;ab_channel=ChillVibesClub\",  \"type\": \"audio_video_link\"}\n\n</code></pre>\n<h3 id=\"usage-example\"><strong>Usage Example:</strong></h3>\n<p>This request is typically used when users need to register new content sources for a project. The body of the request specifies each source’s details, enabling the API to process and store them appropriately.</p>\n<h1 id=\"3-get-text-from-a-source\">3. Get text from a source</h1>\n<p><code>GET</code> <code>/v1/sources/text/:sourceId</code></p>\n<h3 id=\"description-1\">Description</h3>\n<p>This endpoint allows clients to fetch the text content of a specific source by its ID. The client must provide a valid API key in the request headers.</p>\n<h3 id=\"request-headers\">Request Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>x-api-key</code></td>\n<td>string</td>\n<td>The API key for verification</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sourceId</code></td>\n<td>integer</td>\n<td>The ID of the source to fetch</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-response-1\">Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": 200,\n  \"payload\": {\n    \"id\": 123,\n    \"name\": \"Example Source\",\n    \"type\": \"document_file\",\n    \"subType\": \".pdf\",\n    \"content\": \"This is the text content of the source.\"\n  }\n}\n\n</code></pre>\n<h3 id=\"parameters-explanation-1\">Parameters Explanation</h3>\n<ul>\n<li><p><strong>x-api-key</strong>: The API key required for authorization. Must be included in the request headers.</p>\n</li>\n<li><p><strong>sourceId</strong>: The ID of the source whose text content is to be fetched. Must be included in the URL path.</p>\n</li>\n</ul>\n<h3 id=\"usage-notes-1\">Usage Notes</h3>\n<ul>\n<li><p>Ensure to provide a valid API key in the request headers. The key will be used to verify the client’s authorization to access the endpoint.</p>\n</li>\n<li><p>The <code>sourceId</code> parameter in the URL path specifies the source to be fetched.</p>\n</li>\n<li><p>If the source is not found, the endpoint will return a <code>404 Not Found</code> status with an appropriate error message.</p>\n</li>\n<li><p>In case of any errors during the process, a <code>400 Bad Request</code> status code will be returned with the error message.</p>\n</li>\n</ul>\n<h1 id=\"4-save-file-to-organisation\">4. Save file to Organisation</h1>\n<p><code>POST /v1/sources/upload</code></p>\n<h3 id=\"endpoint-description-1\"><strong>Endpoint Description:</strong></h3>\n<p>This endpoint facilitates the uploading of files to a organisation's resource pool. It supports file uploads along with metadata about the file and an option to specify whether the file should be embedded directly within the project database or referenced externally.</p>\n<h3 id=\"headers-1\"><strong>Headers:</strong></h3>\n<ul>\n<li><strong>x-api-key: Used for secure access to the API</strong></li>\n</ul>\n<h3 id=\"body-form-data\"><strong>Body (form-data):</strong></h3>\n<ul>\n<li><p><strong>file:</strong> Path to the file on the user’s device (e.g., <code>/Users/username/Downloads/file.pdf</code>). The user selects the file through the Postman interface.</p>\n</li>\n<li><p><strong>metadata:</strong> JSON string containing additional metadata about the file.</p>\n</li>\n<li><p><strong>callback</strong>: URL where API can you call when file is ready</p>\n<ul>\n<li>Call will pe [POST] with body:<ul>\n<li><code>{ \"sourceId\":1234, \"status\": \"complete\", \"text\":\"text\"}</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"usage-example-1\"><strong>Usage Example:</strong></h3>\n<p>Use this endpoint when you need to upload documents or other files related to a specific organisation. The metadata can include details like the file’s origin, its intended use, or any other relevant information that helps manage the file within the project.</p>\n<h1 id=\"5-link-source-to-project\">5. Link Source to Project</h1>\n<p><code>POST /v1/sources/link</code></p>\n<h5 id=\"endpoint-description-2\"><strong>Endpoint Description:</strong></h5>\n<p>This can be done only with an x-api-key generated in the projects api keys.</p>\n<p>This endpoint is used for link sources to a project. It accepts an id of source. The request must include an API key for authentication and the content type should be set to <code>application/json</code>.</p>\n<h3 id=\"headers-2\"><strong>Headers:</strong></h3>\n<ul>\n<li><p><strong>x-api-key:</strong> - This header is used for API authentication.</p>\n</li>\n<li><p><strong>Content-Type:</strong> <code>application/json</code> - Specifies the media type of the resource.</p>\n</li>\n</ul>\n<h3 id=\"body-json-1\"><strong>Body (JSON):</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sourceIds\": [1,2,3,4]\n}\n\n</code></pre>\n<h3 id=\"key-descriptions-1\">Key Descriptions</h3>\n<ul>\n<li>sourceId: This key holds the actual id of source data.</li>\n</ul>\n<h3 id=\"example-response-2\">Example Response:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 200,\n    \"payload\": \"Sources will be linked to project, the embedding process started\"\n}\n\n</code></pre>\n<h3 id=\"usage-example-2\"><strong>Usage Example:</strong></h3>\n<p>This request is typically used when users need to register new content sources for a project. The body of the request specifies each source’s details, enabling the API to process and store them appropriately.</p>\n","_postman_id":"f6ba0af5-c2d2-4a6e-bcc1-692693d94682","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}}},{"name":"NER","item":[{"name":"List workflows","id":"b7f19167-12a6-4fef-a3d9-44ab2e7d4a71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/ner/list-workflows?limit=10&offset=0","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","ner","list-workflows"],"host":["https://api.sferal.ai"],"query":[{"disabled":true,"key":"model","value":""},{"disabled":true,"key":"type","value":null},{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[],"_postman_id":"b7f19167-12a6-4fef-a3d9-44ab2e7d4a71"},{"name":"List workflow runs","id":"d332b8a3-87cf-40dd-911d-877b5839ec3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/ner/list-workflow-runs?workflowId=8&limit=10&offset=0","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","ner","list-workflow-runs"],"host":["https://api.sferal.ai"],"query":[{"key":"workflowId","value":"8"},{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[],"_postman_id":"d332b8a3-87cf-40dd-911d-877b5839ec3f"},{"name":"Results","id":"becdd57c-d0ad-4e7d-9aad-c8bcd50f65d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.sferal.ai/v1/ner/results?workflowId=8&workflowRunId=24&exportBy=sources","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","ner","results"],"host":["https://api.sferal.ai"],"query":[{"key":"workflowId","value":"8"},{"key":"workflowRunId","value":"24"},{"description":{"content":"<p>sources</p>\n","type":"text/plain"},"key":"exportBy","value":"sources"}],"variable":[]}},"response":[],"_postman_id":"becdd57c-d0ad-4e7d-9aad-c8bcd50f65d0"},{"name":"Create workflow preview","id":"afda5cd2-af87-4b45-9061-1ca79cf004e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"sources\":[1022],\n    \"workflowId\":8\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/ner/create-workflow-preview","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","ner","create-workflow-preview"],"host":["https://api.sferal.ai"],"query":[{"disabled":true,"key":"workflowId","value":"8"}],"variable":[]}},"response":[],"_postman_id":"afda5cd2-af87-4b45-9061-1ca79cf004e7"},{"name":"Run workflow","id":"de877029-2158-43d3-9b66-7e829ddb8cb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"resetResults\":false,\n    \"workflowId\":8,\n    \"workflowRunId\":24\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sferal.ai/v1/ner/run-workflow","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}},"urlObject":{"path":["v1","ner","run-workflow"],"host":["https://api.sferal.ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"de877029-2158-43d3-9b66-7e829ddb8cb6"}],"id":"f2934fbc-ffc2-453c-8f00-4edf6208aef0","description":"<h1 id=\"ner-api-documentation\">NER API Documentation</h1>\n<p>This documentation covers the endpoints related to NER workflows and their executions.</p>\n<h2 id=\"base-url\">Base URL</h2>\n<p>All endpoints are prefixed with <code>https://api.sferal.ai</code></p>\n<h2 id=\"endpoints\">Endpoints</h2>\n<h3 id=\"list-workflows\">List Workflows</h3>\n<p><code>GET /v1/ner/list-workflows</code></p>\n<p>Retrieves a paginated list of NER workflows.</p>\n<p><strong>Query Parameters:</strong></p>\n<ul>\n<li><p><code>limit</code> (optional): Number of items per page. Default: 10</p>\n</li>\n<li><p><code>offset</code> (optional): Pagination offset. Default: 0</p>\n</li>\n<li><p><code>model</code> (optional): Filter by model</p>\n</li>\n<li><p><code>type</code> (optional): Filter by type</p>\n</li>\n</ul>\n<p><strong>Example Request:</strong></p>\n<p><strong><code>GET</code></strong> <code>/v1/ner/list-workflows?limit=10&amp;offset=0</code></p>\n<h3 id=\"list-workflow-runs\">List Workflow Runs</h3>\n<p><code>GET /v1/ner/list-workflow-runs</code></p>\n<p>Retrieves a paginated list of execution runs for a specific workflow.</p>\n<p><strong>Query Parameters:</strong></p>\n<ul>\n<li><p><code>workflowId</code> (required): ID of the workflow</p>\n</li>\n<li><p><code>limit</code> (optional): Number of items per page. Default: 10</p>\n</li>\n<li><p><code>offset</code> (optional): Pagination offset. Default: 0</p>\n</li>\n</ul>\n<p><strong>Example Request:****<code>GET</code></strong> <code>/v1/ner/list-workflow-runs?workflowId=8&amp;limit=10&amp;offset=0</code></p>\n<h3 id=\"get-results\">Get Results</h3>\n<p><code>GET /v1/ner/results</code></p>\n<p>Retrieves the results of a specific workflow run.</p>\n<p><strong>Query Parameters:</strong></p>\n<ul>\n<li><p><code>workflowId</code> (required): ID of the workflow</p>\n</li>\n<li><p><code>workflowRunId</code> (required): ID of the workflow run</p>\n</li>\n<li><p><code>exportBy</code> (required): Export format, e.g., \"sources\"</p>\n</li>\n</ul>\n<p><strong>Example Request:****<code>GET</code></strong> <code>/v1/ner/results?workflowId=8&amp;workflowRunId=24&amp;exportBy=sources</code></p>\n<h3 id=\"create-workflow-preview\">Create Workflow Preview</h3>\n<p><code>POST /v1/ner/create-workflow-preview</code></p>\n<p>Creates a preview for a workflow execution.</p>\n<p><strong>Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"sources\": [1022],\n    \"workflowId\": 8\n}\n\n</code></pre>\n<h3 id=\"run-workflow\">Run Workflow</h3>\n<p><code>POST /v1/ner/run-workflow</code></p>\n<p>Executes a workflow with specified parameters.</p>\n<p><strong>Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"resetResults\": false,\n    \"workflowId\": 8,\n    \"workflowRunId\": 24\n}\n\n</code></pre>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><p><code>resetResults</code>: Boolean flag to reset previous results</p>\n</li>\n<li><p><code>workflowId</code>: ID of the workflow to execute</p>\n</li>\n<li><p><code>workflowRunId</code>: ID of the workflow run</p>\n</li>\n</ul>\n<h2 id=\"typical-workflow\">Typical Workflow</h2>\n<ol>\n<li><p>List available workflows using <code>GET /list-workflows</code></p>\n</li>\n<li><p>Create a preview for specific sources using <code>POST /create-workflow-preview</code></p>\n</li>\n<li><p>Execute the workflow using <code>POST /run-workflow</code></p>\n</li>\n<li><p>Monitor execution status using <code>GET /list-workflow-runs</code></p>\n</li>\n<li><p>Retrieve results using <code>GET /results</code></p>\n</li>\n</ol>\n","_postman_id":"f2934fbc-ffc2-453c-8f00-4edf6208aef0","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]},"isInherited":true,"source":{"_postman_id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","id":"4f86d1d7-e2e7-4669-a21e-db9065f56fa8","name":"API documentation","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"fx-xxxx"}]}},"event":[{"listen":"prerequest","script":{"id":"428d6af6-8e0e-4c9f-a9b3-ff19015a6716","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d52811c8-778e-4a15-806f-e7960d70f655","type":"text/javascript","exec":[""]}}],"variable":[{"key":"apiUrl","value":"https://api.sferal.ai"},{"key":"x-api-key","value":"fx-xxxx","type":"string"}]}