{"info":{"_postman_id":"c5f9f5bf-4f6b-4c3e-93a6-b7266e74f76f","name":"SuperAGI","description":"<html><head></head><body><p>A dev-first open source autonomous AI agent framework enabling developers to build, manage &amp; run useful autonomous agents. You can run concurrent agents seamlessly, extend agent capabilities with tools. The agents efficiently perform a variety of tasks and continually improve their performance with each subsequent run.</p>\n<h2 id=\"generate-api-key\">Generate API Key</h2>\n<ul>\n<li><p>To use the key in your API call, pass it in the headers as shown below:</p>\n</li>\n<li><p>To generate a new API key, navigate to the <code>API Keys Dashboard</code> on the <code>Settings</code> page in SuperAGI.</p>\n  <img src=\"https://superagi.com/wp-content/uploads/2023/08/API_dashboard.png\">\n  </li>\n<li><p>Click on <code>Create key</code> and give a name for your API key.</p>\n  <img src=\"https://superagi.com/wp-content/uploads/2023/08/create_api.png\">\n  </li>\n<li><p><strong>Copy the key generated</strong> and click on <code>OK</code>.</p>\n  <img src=\"https://superagi.com/wp-content/uploads/2023/08/OKay.png\">\n  </li>\n<li><p>You will be able to view, edit or delete your keys in your SuperAGI dashboard.</p>\n  <img src=\"https://superagi.com/wp-content/uploads/2023/08/delete.png\"></li>\n</ul>\n<h2 id=\"authentication\">Authentication</h2>\n<p>Authentication to the SuperAGI API is performed by passing <code>X-API-Key</code> in headers.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>X-API-Key: yoursuperagiapikey\n\n</code></pre><h2 id=\"cloud-api-baseurl\">Cloud API baseurl</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Cloud baseurl\nhttps://app.superagi.com\nEg. On SuperAGI cloud, create agent API endpoint would look like\nhttps://app.superagi.com/api/v1/agent\n\n</code></pre><h2 id=\"local-api-baseurl\">Local API baseurl</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Local baseurl\nhttp://localhost:3000\nEg. On SuperAGI local, create agent API endpoint would look like\nhttp://localhost:3000/api/v1/agent\n\n</code></pre></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28438662","collectionId":"c5f9f5bf-4f6b-4c3e-93a6-b7266e74f76f","publishedId":"2s9Xy6rqP5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"8B3FD9"},"publishDate":"2023-08-17T12:15:08.000Z"},"item":[{"name":"Agent","item":[{"name":"Create","id":"f5238abe-e2f5-45ae-97f3-f201f8791435","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-API-Key","value":"110e030a-2d27-4d6d-90ba-4f7b7ceee4e2","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Aug 17 MS 2606\",\n    \"description\": \"AI assistant to solve complex problems\",\n    \"goal\": [\"create a photo of a cat\"],\n    \"agent_workflow\": \"Goal Based Workflow\", \n    \"constraints\": [\n        \"~4000 word limit for short term memory.\",\n        \"Your short term memory is short, so immediately save important information to files.\",\n        \"If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\",\n        \"No user assistance\",\n        \"Exclusively use the commands listed in double quotes e.g. \\\"command name\\\"\"\n    ],\n    \"instruction\": [],\n    \"tools\":[\n        {   \n            \"name\":\"Image Generation Toolkit\"\n        },\n        {   \n            \"name\":\"DuckDuckGo Search Toolkit\"\n        }\n    ],\n    \"iteration_interval\": 500,\n    \"model\": \"gpt-4\",\n    \"max_iterations\": 25,\n    \"schedule\": { // can be null if for agent without schedule\n        \"start_time\": \"2023-08-14 21:32:00\",\n        \"recurrence_interval\": \"2 Minutes\",\n        \"expiry_runs\": 2,\n        \"expiry_date\": null\n      }\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent","description":"<p>This endpoint allows users to create agents</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parmeter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the agent.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Desciption of the agent.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>goals</td>\n<td>array of strings</td>\n<td>What the agent is supposed to achieve.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>agent_workflow</td>\n<td>string</td>\n<td>Below are supported values for agent workflow:  <br />  <br /><code>Goal Based Workflow</code>  <br /><code>Dynamic Task Workflow</code>  <br /><code>Fixed Task Workflow</code>  <br />  <br />These values are case sensitive.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>constraints</td>\n<td>array of strings</td>\n<td>Agent contraints like like use as mininum tokens and interations as possible. See API example to know more.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>instructions</td>\n<td>array of strings</td>\n<td>These are very specific instructions</td>\n<td></td>\n</tr>\n<tr>\n<td>tools</td>\n<td>array of maps</td>\n<td>Supported toolkit names are:  <br /><code>CodingToolkit</code>  <br /><code>Email Toolkit</code>  <br /><code>File Toolkit</code>  <br /><code>GitHub Toolkit</code>  <br /><code>Google Calendar Toolkit</code>  <br /><code>Google Search Toolkit</code>  <br /><code>Google SERP Toolkit</code>  <br /><code>Image Generation Toolkit</code>  <br /><code>Jira Toolkit</code>  <br /><code>Searx Toolkit</code>  <br /><code>Slack Toolkit</code>  <br /><code>Web Scraper Toolkit</code>  <br /><code>Twitter Toolkit</code>  <br /><code>Knowledge Search Toolkit</code>  <br /><code>DuckDuckGo Search Toolkit</code>  <br /><code>Notion Toolkit</code>  <br /><code>Instagram Toolkit</code>  <br />  <br />Pass `[]` if you don't want to use any tool.  <br />  <br />NOTE: Some tools like Instagram and Notion are required to be installed from marketplace before they can be used in APIs.  <br />  <br />In case of a custom toolkit, the value of <code>name</code> property of the toolkit needs to be passed in tools. Check this example toolkit <a href=\"https://github.com/TransformerOptimus/SuperAGI/blob/main/superagi/tools/duck_duck_go/duck_duck_go_search_toolkit.py\">https://github.com/TransformerOptimus/SuperAGI/blob/main/superagi/tools/duck_duck_go/duck_duck_go_search_toolkit.py</a></td>\n<td>yes</td>\n</tr>\n<tr>\n<td>iteration_interval</td>\n<td>int</td>\n<td>Time to wait between each iterations</td>\n<td></td>\n</tr>\n<tr>\n<td>model</td>\n<td>string</td>\n<td>Below are supported values for models:  <br /><code>gpt-4</code>  <br /><code>gpt-3.5-turbo</code>  <br /><code>gpt-3.5-turbo-16k</code></td>\n<td>yes</td>\n</tr>\n<tr>\n<td>max_iterations</td>\n<td>int</td>\n<td>Max number of iterations agent can run for.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>schedule</td>\n<td>object</td>\n<td>Run schudule for an agent</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"schedule-object\">Schedule object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start_time</td>\n<td>string</td>\n<td>Start time of agent schedule.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>recurrence_interval</td>\n<td>string</td>\n<td>Time interval after which agent run is triggered. Eg.  <br /><code>3 hours</code>  <br /><code>5 days</code></td>\n<td>no</td>\n</tr>\n<tr>\n<td>expiry_runs</td>\n<td>int</td>\n<td>After how many runs the scheduled agent should stop</td>\n<td>no</td>\n</tr>\n<tr>\n<td>expiry_date</td>\n<td>string</td>\n<td>Expiry time of agent schedule. Can be `null` if expiry_data is not required.</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","agent"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"df61955f-93a2-4290-b6c7-83b59f663c66","name":"Create","originalRequest":{"method":"POST","header":[{"key":"X-API-Key","value":"bf2b13a0-c5d3-403f-a887-ac8849b8304b","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"test final 100212dsaCXZCa33\",\n    \"description\": \"AI assistant to solve complex problems\",\n    \"goal\": [\"CREATE A PHOTO OF A CAT\"],\n    \"agent_workflow\": \"Goal Based Workflow\", \n    \"constraints\": [\n        \"~4000 word limit for short term memory.\",\n        \"Your short term memory is short, so immediately save important information to files.\",\n        \"If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\",\n        \"No user assistance\",\n        \"Exclusively use the commands listed in double quotes e.g. \\\"command name\\\"\"\n    ],\n    \"instruction\": [],\n    \"tools\":[\n        {   \n            \"name\":\"Image Generation Toolkit\"\n        },\n        {   \n            \"name\":\"DuckDuckGo Search Toolkit\"\n        }\n    ],\n    \"iteration_interval\": 500,\n    \"model\": \"gpt-4\",\n    \"max_iterations\": 25,\n    \"schedule\": null // Can be null for an agent without a schedule\n    // \"schedule\": { // Use this to run agent with a schedule\n    //     \"start_time\": \"2023-08-14 21:32:00\",\n    //     \"recurrence_interval\": \"2 Hours\",\n    //     \"expiry_runs\": 2,\n    //     \"expiry_date\": null\n    //   }\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0"},{"key":"Date","value":"Wed, 16 Aug 2023 14:13:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"15"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"agent_id\": 28\n}"}],"_postman_id":"f5238abe-e2f5-45ae-97f3-f201f8791435"},{"name":"Pause","id":"3377abbd-ca33-4b65-bcb5-e51dd60fe890","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"576d4db5-03c4-4a2c-92ca-29550eee4180","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"run_ids\":[102]\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/{agent_id}/pause","description":"<p>This endpoint allows users to pause agent runs</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>agent_id</td>\n<td>path param: int</td>\n<td>Id of the agent to pause the runs for.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>run_ids</td>\n<td>array of ints</td>\n<td>Array of agent <code>run_id</code>s to pause. If you pass <code>run_ids</code> as empty array <code>[]</code> , all runs for the <code>agent_id</code> will be paused.</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","agent","{agent_id}","pause"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"67a34561-8ba0-457f-971b-08d575facc8f","name":"Pause","originalRequest":{"method":"POST","header":[{"key":"X-API-Key","value":"bf2b13a0-c5d3-403f-a887-ac8849b8304b","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"run_ids\":[18]\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/{agent_id}/pause"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0"},{"key":"Date","value":"Wed, 16 Aug 2023 14:04:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\"\n}"}],"_postman_id":"3377abbd-ca33-4b65-bcb5-e51dd60fe890"},{"name":"Resume","id":"319870f4-26c5-41ba-b4cf-72a458d45d6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"e3347a48-c4f0-4fcc-b444-7a375473c712","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"run_ids\":[98,100,102]\n} ","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/{agent_id}/resume","description":"<p>This endpoint allows users to resume agent runs</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>agent_id</td>\n<td>path param: int</td>\n<td>Id of the agent for runs to resume.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>run_ids</td>\n<td>array of ints</td>\n<td>Array of agent <code>run_id</code>s to resume. If you pass <code>run_ids</code> as empty array <code>[]</code> to all agent runs will be resumed.</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","agent","{agent_id}","resume"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"13c317dc-b0ee-456c-b40a-854fa409fb25","name":"Resume","originalRequest":{"method":"POST","header":[{"key":"X-API-Key","value":"bf2b13a0-c5d3-403f-a887-ac8849b8304b","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"run_ids\":[25]\n} ","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/{agent_id}/resume"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0"},{"key":"Date","value":"Wed, 16 Aug 2023 14:13:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\"\n}"}],"_postman_id":"319870f4-26c5-41ba-b4cf-72a458d45d6a"},{"name":"Update","id":"5d8b8958-0548-4a33-b6da-078eaa18fbc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-API-Key","value":"e3347a48-c4f0-4fcc-b444-7a375473c712","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Aug 17 0626\",\n    \"description\": \"AI assistant to solve complex problems\",\n    \"goal\": [\"compare iphone 15 and iphone 14 base variant\"],\n    \"agent_workflow\": \"Don't Maintain Task Queue\", \n    \"constraints\": [\n        \"~4000 word limit for short term memory.\",\n        \"Your short term memory is short, so immediately save important information to files.\",\n        \"If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\",\n        \"No user assistance\",\n        \"Exclusively use the commands listed in double quotes e.g. \\\"command name\\\"\"\n    ],\n    \"instruction\": [],\n    \"tools\":[\n        {   \n            \"name\":\"Image Generation Toolkit\"\n        },\n        {   \n            \"name\":\"DuckDuckGo Search Toolkit\"\n        }\n    ],\n    \"iteration_interval\": 500,\n    \"model\": \"gpt-4\",\n    \"max_iterations\": 25\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/{agent_id}","description":"<p>This endpoint allows users to update an existing agent.</p>\n<p><strong>Note</strong>:</p>\n<p>Users can't add schedule to an existing agent using the update end point.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parmeter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>agent_id</td>\n<td>path param: int</td>\n<td>Id of the agent to update.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the agent.</td>\n<td>no</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Desciption of the agent.</td>\n<td>no</td>\n</tr>\n<tr>\n<td>goals</td>\n<td>array of strings</td>\n<td>What the agent is supposed to achieve.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>agent_workflow</td>\n<td>string</td>\n<td>Below are supported values for agent workflow:  <br />  <br /><code>Goal Based Workflow</code>  <br /><code>Dynamic Task Workflow</code>  <br /><code>Fixed Task Workflow</code>  <br />  <br />These values are case sensitive.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>constraints</td>\n<td>array of strings</td>\n<td>Agent contraints like like use as mininum tokens and interations as possible. See API example to know more.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>instruction</td>\n<td>array of strings</td>\n<td>Specific instructions given to agent to complete the goal in a pre-defined way.</td>\n<td></td>\n</tr>\n<tr>\n<td>tools</td>\n<td>array of maps</td>\n<td>Supported toolkit names are:  <br /><code>CodingToolkit</code>  <br /><code>Email Toolkit</code>  <br /><code>File Toolkit</code>  <br /><code>GitHub Toolkit</code>  <br /><code>Google Calendar Toolkit</code>  <br /><code>Google Search Toolkit</code>  <br /><code>Google SERP Toolkit</code>  <br /><code>Image Generation Toolkit</code>  <br /><code>Jira Toolkit</code>  <br /><code>Searx Toolkit</code>  <br /><code>Slack Toolkit</code>  <br /><code>Web Scraper Toolkit</code>  <br /><code>Twitter Toolkit</code>  <br /><code>Knowledge Search Toolkit</code>  <br /><code>DuckDuckGo Search Toolkit</code>  <br /><code>Notion Toolkit</code>  <br /><code>Instagram Toolkit</code>  <br />  <br />Pass `[]` if you don't want to use any tool.  <br />  <br />NOTE: Some tools like Instagram and Notion are required to be installed from marketplace before they can be used in APIs  <br />  <br />In case of a custom toolkit, the value of <code>name</code> property of the toolkit needs to be passed in tools. Check this example toolkit <a href=\"https://github.com/TransformerOptimus/SuperAGI/blob/main/superagi/tools/duck_duck_go/duck_duck_go_search_toolkit.py\">https://github.com/TransformerOptimus/SuperAGI/blob/main/superagi/tools/duck_duck_go/duck_duck_go_search_toolkit.py</a></td>\n<td>yes</td>\n</tr>\n<tr>\n<td>iteration_interval</td>\n<td>int</td>\n<td>Time to wait between each iteration.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>model</td>\n<td>string</td>\n<td>Below are supported values for models:  <br /><code>gpt-4</code>  <br /><code>gpt-3.5-turbo</code>  <br /><code>gpt-3.5-turbo-16k</code></td>\n<td>yes</td>\n</tr>\n<tr>\n<td>max_iterations</td>\n<td>int</td>\n<td>Max number of iterations agent can run for.</td>\n<td>yes</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","agent","{agent_id}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"e447d97f-acba-4d74-bad8-a2e50c7a29f5","name":"Update","originalRequest":{"method":"PUT","header":[{"key":"X-API-Key","value":"c6c2a6b3-3bba-41eb-a031-c767a645e9e9","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"dasdas test_100dasdrreterterteasffffffffffffffffffffff1_updated\",\n    \"org_id\": 1,\n    \"description\": \"AI assistant to solve complex problems\",\n    \"goal\": [\"compare iphone 15 and iphone 14 base variant\"],\n    \"agent_workflow\": \"Don't Maintain Task Queue\", \n    \"constraints\": [\n        \"~4000 word limit for short term memory.\",\n        \"Your short term memory is short, so immediately save important information to files.\",\n        \"If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\",\n        \"No user assistance\",\n        \"Exclusively use the commands listed in double quotes e.g. \\\"command name\\\"\"\n    ],\n    \"instruction\": [],\n    \"tools\":[\n        {   \n            \"name\":\"Image Generation Toolkit\"\n        },\n        {   \n            \"name\":\"DuckDuckGo Search Toolkit\"\n        }\n    ],\n    \"iteration_interval\": 500,\n    \"model\": \"gpt-4\",\n    \"max_iterations\": 25\n    // \"schedule\": { \n    // \"start_time\": \"2023-07-07 06:15:00\",\n    // \"recurrence_interval\": \"5 Minutes\",\n    // \"expiry_runs\": 2,\n    // \"expiry_date\": null\n    // }\n\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/72"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0"},{"key":"Date","value":"Fri, 18 Aug 2023 05:55:07 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"15"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"agent_id\": 72\n}"}],"_postman_id":"5d8b8958-0548-4a33-b6da-078eaa18fbc9"}],"id":"c7ff5722-b3c0-4824-8fe0-e16d0fe1fef1","description":"<p>Agents in SuperAGI are complex systems that leverage the power of LLMs to operate independently, reason, perform tasks, and takes decisions without the constant need for human intervention.</p>\n<p>The Agents, plan, reason, interact with toolkits, and execute based on the user's Goals, Instructions, Resources, and Constraints to achieve the expected results.</p>\n","_postman_id":"c7ff5722-b3c0-4824-8fe0-e16d0fe1fef1"},{"name":"Run","item":[{"name":"Create","id":"e2d5f1ef-d77f-46a3-bbf4-f0a364c6f2a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"776022a2-159e-40b5-8bd6-d733de2ade98","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/{agent_id}/run","description":"<p>This endpoint allows users to create an agent run</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>agent_id</td>\n<td>path param: int</td>\n<td>Id of the agent to create runs for.</td>\n<td>yes</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","agent","{agent_id}","run"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"036f1a50-3e46-4cf1-ab02-eaef9c7fbdaf","name":"Create","originalRequest":{"method":"POST","header":[{"key":"X-API-Key","value":"bf2b13a0-c5d3-403f-a887-ac8849b8304b","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{URL}}/api/v1/agent/{agent_id}/run","host":["{{URL}}"],"path":["api","v1","agent","{agent_id}","run"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0"},{"key":"Date","value":"Wed, 16 Aug 2023 14:14:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"13"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"run_id\": 40\n}"}],"_postman_id":"e2d5f1ef-d77f-46a3-bbf4-f0a364c6f2a0"},{"name":"Retrieve Agent Runs","id":"9ace0499-023c-4738-8a41-1e8082deb935","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"e3347a48-c4f0-4fcc-b444-7a375473c712","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"run_status_filter\":\"RUNNING\" // run_status_filter could be values like RUNNING, PAUSED, COMPLETED\n}\n\n","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/{agent_id}/run-status","description":"<p>This endpoint allows users to retrieve an agent runs</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>agent_id</td>\n<td>path param: int</td>\n<td>Id of the agent to retrieve agent runs for</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>run_status_filter</td>\n<td>string</td>\n<td>Below are the supported values for run_status_filter:  <br /><code>RUNNING</code>  <br /><code>PAUSED</code>  <br /><code>COMPLETED</code>  <br />  <br />Only one value for <code>run_status_filter</code> should be passed at a time.  <br />  <br />If this param is NOT passed in the request body, api will return statuses of all agent runs</td>\n<td>no</td>\n</tr>\n<tr>\n<td>run_ids</td>\n<td>array of int</td>\n<td>List of agent <code>run_id</code>s to fetch run status for.  <br />  <br />If this param is NOT passed in the request body, api will return statuses of all agent runs</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","agent","{agent_id}","run-status"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"run_ids","value":"[78,79]"}],"variable":[]}},"response":[{"id":"d2487715-9a18-4b8e-a202-ccc700435ab9","name":"Retrieve Agent Runs","originalRequest":{"method":"POST","header":[{"key":"X-API-Key","value":"bf2b13a0-c5d3-403f-a887-ac8849b8304b","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"run_status_filter\":\"RUNNING\" // run_status_filter could be values like RUNNING, PAUSED, COMPLETED\n}\n","options":{"raw":{"language":"json"}}},"url":{"raw":"{{URL}}/api/v1/agent/{agent_id}/run-status","host":["{{URL}}"],"path":["api","v1","agent","{agent_id}","run-status"],"query":[{"key":"run_ids","value":"[78,79]","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0"},{"key":"Date","value":"Wed, 16 Aug 2023 14:05:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"34"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"run_id\": 39,\n        \"status\": \"RUNNING\"\n    }\n]"}],"_postman_id":"9ace0499-023c-4738-8a41-1e8082deb935"}],"id":"a8899f37-c6c1-466a-8869-3873aefc7545","description":"<p>An agent run is the end-to-end execution of the goals and instructions that has been assigned to the agent, operating within the set constraints with the necessary tools and resources.</p>\n","_postman_id":"a8899f37-c6c1-466a-8869-3873aefc7545"},{"name":"Resources","item":[{"name":"Retrieve Run Resources","id":"4bc2a1e9-7c2c-4d0d-b34b-7241500a738b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"426436df-e4cb-428d-af9f-65b162d3ada3","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"run_ids\":[97,98,99,100,101,102]\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/resources/output","description":"<p>This endpoint allows users to retrieve resources of an agent run</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>run_ids</td>\n<td>array of int</td>\n<td>List of agent <code>run_id</code>s to fetch resources for.</td>\n<td>yes</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","agent","resources","output"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"2ce9cccd-c440-4a4e-b17e-0f08d1bd232c","name":"Get Run Resources","originalRequest":{"method":"POST","header":[{"key":"X-API-Key","value":"bf2b13a0-c5d3-403f-a887-ac8849b8304b","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"run_ids\":[38]\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/agent/resources/output"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0"},{"key":"Date","value":"Wed, 16 Aug 2023 14:15:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"99"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"38\": [\n        \"https://superagi-instagram-tool.s3.amazonaws.com/public_resources/run_id38/cat_image_running.png\",\n        \"https://superagi-instagram-tool.s3.amazonaws.com/public_resources/run_id38/cat_image_jumping.png\"\n    ],\n    \"39\": [\n        \"https://superagi-instagram-tool.s3.amazonaws.com/public_resources/run_id38/cat_image_small.png\"\n    ]\n}"}],"_postman_id":"4bc2a1e9-7c2c-4d0d-b34b-7241500a738b"}],"id":"c4fa8892-ba9d-4bd1-b4cf-2c78896a016c","description":"<p>Resources are the input/output files used or generated by the agent during its run.</p>\n","_postman_id":"c4fa8892-ba9d-4bd1-b4cf-2c78896a016c"}],"variable":[{"key":"API_KEY","value":"856ab32f-72e5-4d19-8672-f6adb3f0647f"},{"key":"agent_id","value":"2"}]}