{
  "info": {
    "name": "Platica API",
    "description": "Build AI agents with the Platica API, TypeScript SDK and MCP server, and run them on WhatsApp, Instagram, web chat and more.\n\nGenerated automatically from the API reference (content/en/api-reference).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{api_key}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://api.platica.mx",
      "type": "string"
    },
    {
      "key": "api_key",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Agents",
      "item": [
        {
          "name": "Create and manage",
          "item": [
            {
              "name": "List agents",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents"
                  ]
                },
                "description": "Lists workspace agents, their states and their draft and published versions."
              },
              "response": []
            },
            {
              "name": "Get an agent",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Retrieves agent details and the versions used by its draft and publication."
              },
              "response": []
            },
            {
              "name": "Create an agent",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents"
                  ]
                },
                "description": "Create an agent with a name and instructions, then assign channels to receive their messages.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Sales\",\n  \"instructions\": \"You are the sales assistant for Acme Store.\",\n  \"guardrails\": { \"message\": \"I can only help with store topics.\" },\n  \"note\": \"First version\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update an agent",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Changes an agent's name, photo, status or owners. It applies immediately and doesn't create a version.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Acme Sales\",\n  \"status\": \"inactive\",\n  \"owners\": [\"ana@acme.com\", \"luis@acme.com\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Copy an agent",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/copies",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "copies"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Copy an agent’s configuration and choose whether to connect its files.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Sales (copy)\",\n  \"fromVersionId\": \"v3\",\n  \"files\": { \"include\": true }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete an agent",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Deletes an agent. It can't be undone; its files are disconnected and stay in the workspace."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Drafts",
          "item": [
            {
              "name": "Get the draft",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/draft",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "draft"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Gets an agent's draft, the version being edited, with its complete configuration."
              },
              "response": []
            },
            {
              "name": "Update the draft",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/draft",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "draft"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Edit parts of the draft and publish when you want to apply the changes.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"instructions\": \"You are the sales assistant for Acme Store. Answer in under 80 words.\",\n  \"guardrails\": { \"message\": \"I can only help with store topics.\" },\n  \"note\": \"Shorter answers\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Replace the draft",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/draft",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "draft"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Replace the draft with a complete configuration without changing the publication.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"config\": {\n    \"description\": \"Helps people who want to buy\",\n    \"instructions\": \"You are the sales assistant for Acme Store.\"\n  },\n  \"note\": \"Complete configuration\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Validate changes",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/draft/validate",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "draft",
                    "validate"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Checks changes against the draft without saving anything. It tells you whether they could be saved and then published.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"guardrails\": { \"conversationStrikeThreshold\": 50 }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Restore a version",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/draft/restore",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "draft",
                    "restore"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Brings an old version's configuration back into the draft as a new version. It doesn't change the publication.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"versionId\": \"v3\",\n  \"note\": \"Go back to last week's instructions\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Versions",
          "item": [
            {
              "name": "List versions",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/versions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "versions"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Lists an agent's version history, newest first, without each version's configuration."
              },
              "response": []
            },
            {
              "name": "Get a version",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/versions/:versionId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "versions",
                    ":versionId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "versionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Gets an agent's version with its complete configuration, whether it is published or not."
              },
              "response": []
            },
            {
              "name": "Compare versions",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/versions/:versionId/compare?with=v1",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "versions",
                    ":versionId",
                    "compare"
                  ],
                  "query": [
                    {
                      "key": "with",
                      "value": "v1",
                      "description": "La otra versión."
                    }
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "versionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Shows changed configuration sections between two agent versions."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Publications",
          "item": [
            {
              "name": "Get the publication",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/publication",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "publication"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Gets an agent's publication, the version that answers your contacts, and who published it."
              },
              "response": []
            },
            {
              "name": "Publish a version",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/publication",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "publication"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Puts the draft's version into production. From the next incoming message, the agent answers with it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"versionId\": \"v5\",\n  \"note\": \"Shorter answers\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Roll back a publication",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/publication/rollback",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "publication",
                    "rollback"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Puts a version that was already published back into production without touching the draft.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"versionId\": \"v3\",\n  \"note\": \"Go back to the previous version\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "List publications",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/publications",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "publications"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Lists agent creation, publications and rollbacks, newest first."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Agent files",
          "item": [
            {
              "name": "List agent files",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "files"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Lists an agent’s files with each connection’s state and schedule."
              },
              "response": []
            },
            {
              "name": "Connect a file",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/files/:fileId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "files",
                    ":fileId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Connects a file that already exists in the workspace to an agent. It applies immediately and doesn't create a version.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"agentId\": \"Lm4Rt8Wq2Zp6Yb1Nc3Vd\",\n    \"fileId\": \"fH3kL9mQ2xR7\",\n    \"state\": \"active\",\n    \"attachedAt\": \"2026-11-01T12:30:00.000Z\",\n    \"activateOnReady\": false,\n    \"schedule\": null\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Pause or schedule a file",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/files/:fileId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "files",
                    ":fileId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Pauses or resumes the connection between an agent and a file, or schedules a date to activate or pause it on its own.",
                "body": {
                  "mode": "raw",
                  "raw": "{ \"state\": \"paused\" }",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Disconnect a file",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/files/:fileId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "files",
                    ":fileId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Disconnects a file from an agent. It applies immediately; the file isn't deleted."
              },
              "response": []
            },
            {
              "name": "Get processing",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/files/:fileId/jobs/:uploadId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "files",
                    ":fileId",
                    "jobs",
                    ":uploadId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "uploadId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Checks the processing status of a file connected to an agent."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Agent tools",
          "item": [
            {
              "name": "List agent tools",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/tools",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "tools"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Lists the tools connected to an agent, each with the state of its connection."
              },
              "response": []
            },
            {
              "name": "List available tools",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/tools/available",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "tools",
                    "available"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Lists all the workspace's tools and marks which ones are already connected to this agent."
              },
              "response": []
            },
            {
              "name": "Connect a tool",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/tools/:toolId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "tools",
                    ":toolId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "toolId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Connects a tool that already exists in the workspace to an agent. It applies immediately and doesn't create a version.",
                "body": {
                  "mode": "raw",
                  "raw": "{ \"state\": \"paused\" }",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Pause or resume a tool",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/tools/:toolId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "tools",
                    ":toolId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "toolId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Pauses or resumes the connection between an agent and a tool. It applies immediately and only changes this agent.",
                "body": {
                  "mode": "raw",
                  "raw": "{ \"state\": \"paused\" }",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Disconnect a tool",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/tools/:toolId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "tools",
                    ":toolId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "toolId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Disconnects a tool from an agent. It applies immediately; the tool isn't deleted."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Subagents",
          "item": [
            {
              "name": "Create a subagent",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/draft/subagents",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "draft",
                    "subagents"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Creates a new agent and links it as a subagent to the parent agent's draft, in a single step.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"child\": {\n    \"name\": \"Billing\",\n    \"instructions\": \"You help resolve payment and invoice questions for Acme Store.\"\n  },\n  \"link\": {\n    \"alias\": \"Billing\",\n    \"mode\": \"delegate\",\n    \"enabled\": true,\n    \"description\": \"Questions about payments and invoices\",\n    \"delegationCriteria\": \"When the customer asks about a payment or an invoice\",\n    \"completionCriteria\": \"\",\n    \"oneWayDelegation\": false\n  },\n  \"note\": \"Add billing\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Link a subagent",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/draft/subagents/:childId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "draft",
                    "subagents",
                    ":childId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "childId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Adds or replaces a subagent link in the parent’s draft.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"link\": {\n    \"alias\": \"Technical support\",\n    \"mode\": \"assist\",\n    \"enabled\": true,\n    \"description\": \"Technical questions about the product\",\n    \"delegationCriteria\": \"\",\n    \"completionCriteria\": \"\",\n    \"oneWayDelegation\": false\n  },\n  \"note\": \"Add technical support\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Unlink a subagent",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/draft/subagents/:childId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "draft",
                    "subagents",
                    ":childId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "childId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Removes a subagent link from the parent’s draft without deleting the subagent."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Agent escalations",
          "item": [
            {
              "name": "List agent escalations",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/escalations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "escalations"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Returns the escalations connected to the agent's published version, in order, and whether each one is active."
              },
              "response": []
            },
            {
              "name": "Connect an escalation",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/escalations/:escalationId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "escalations",
                    ":escalationId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "escalationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Connects an escalation from the workspace library to an agent, or turns one it already has on or off. It creates a version and publishes it immediately.",
                "body": {
                  "mode": "raw",
                  "raw": "{ \"enabled\": false }",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Disconnect an escalation",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/escalations/:escalationId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "escalations",
                    ":escalationId"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "escalationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Removes an escalation from an agent. It creates a version from the published one and publishes it immediately."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Agent templates",
          "item": [
            {
              "name": "List agent templates",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agent-templates",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agent-templates"
                  ]
                },
                "description": "Returns the published agent templates, with what each one does and the pending items it leaves when installed."
              },
              "response": []
            },
            {
              "name": "Install a template",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agent-templates/:slug/install",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agent-templates",
                    ":slug",
                    "install"
                  ],
                  "variable": [
                    {
                      "key": "slug",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Creates a new agent from a template, as a draft, with the list of pending items to finish it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"Agent created from the template Vendedor de la tienda\",\n  \"data\": {\n    \"agent\": {\n      \"id\": \"Ag6bV8nM1qW3eR5t\",\n      \"name\": \"Vendedor de la tienda\",\n      \"url\": \"https://app.platica.mx/workspace/K7u9rQ2LmZx18BvC5tNd/agents/Ag6bV8nM1qW3eR5t\"\n    },\n    \"setup\": {\n      \"template\": { \"slug\": \"vendedor-de-tienda\", \"name\": \"Vendedor de la tienda\", \"version\": 3 },\n      \"status\": \"in_progress\",\n      \"ready\": false,\n      \"done\": 1,\n      \"total\": 4,\n      \"slots\": [\n        {\n          \"id\": \"negocio\",\n          \"kind\": \"variable\",\n          \"label\": \"Datos del negocio\",\n          \"detail\": \"Horario\",\n          \"required\": true,\n          \"state\": \"pending\",\n          \"variables\": [{ \"key\": \"horario\", \"label\": \"Horario\", \"placeholder\": \"{{horario}}\" }],\n          \"openUrl\": null\n        },\n        {\n          \"id\": \"tool-shopify\",\n          \"kind\": \"tool\",\n          \"label\": \"Shopify\",\n          \"detail\": \"Conéctala y actívala para este agente\",\n          \"required\": false,\n          \"state\": \"done\",\n          \"provider\": { \"type\": \"mcp\", \"id\": \"shopify\" },\n          \"openUrl\": null\n        },\n        {\n          \"id\": \"canal\",\n          \"kind\": \"channel\",\n          \"label\": \"Canal\",\n          \"detail\": \"WhatsApp\",\n          \"required\": true,\n          \"state\": \"pending\",\n          \"channels\": [{ \"id\": \"whatsapp\", \"name\": \"WhatsApp\" }],\n          \"openUrl\": \"https://app.platica.mx/workspace/K7u9rQ2LmZx18BvC5tNd/integrations\"\n        },\n        {\n          \"id\": \"conocimiento\",\n          \"kind\": \"knowledge\",\n          \"label\": \"Catálogo\",\n          \"detail\": \"Tu catálogo de productos con precios\",\n          \"required\": false,\n          \"state\": \"pending\",\n          \"hint\": \"Tu catálogo de productos con precios\",\n          \"openUrl\": null\n        }\n      ]\n    }\n  },\n  \"nextStep\": \"The agent Ag6bV8nM1qW3eR5t was created as a draft with 3 pending items. Datos del negocio: replace {{horario}} in the draft's instructions with PATCH /v1/agents/Ag6bV8nM1qW3eR5t/draft. Canal: connect one of WhatsApp with POST /v1/channels/connections and this agentId, or give this agent an existing channel with PATCH /v1/channels/{channelId}. Catálogo: add files to this agent with PUT /v1/agents/Ag6bV8nM1qW3eR5t/files/{fileId}. Optional items can be skipped with POST /v1/agents/Ag6bV8nM1qW3eR5t/template-setup (action \\\"skip\\\" and slotId). Each item is marked done when Platica sees it in the agent: check again with GET /v1/agents/Ag6bV8nM1qW3eR5t/template-setup. It can also be finished in Platica: https://app.platica.mx/workspace/K7u9rQ2LmZx18BvC5tNd/agents/Ag6bV8nM1qW3eR5t\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Get pending items",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/template-setup",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "template-setup"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Retrieves template setup items and detects which ones are complete."
              },
              "response": []
            },
            {
              "name": "Update pending items",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/template-setup",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "template-setup"
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Skips an optional pending item or brings it back, finishes an agent's template or dismisses it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"action\": \"skip\",\n  \"slotId\": \"conocimiento\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "Evals and chat",
      "item": [
        {
          "name": "Evals",
          "item": [
            {
              "name": "Scenarios",
              "item": [
                {
                  "name": "List profiles",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/evals/profiles",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "evals",
                        "profiles"
                      ]
                    },
                    "description": "The catalog of profiles a scenario's profileId can use."
                  },
                  "response": []
                },
                {
                  "name": "List scenarios",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/evals/scenarios",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "evals",
                        "scenarios"
                      ]
                    },
                    "description": "The newest version of each scenario the workspace sees, its own and the platform's."
                  },
                  "response": []
                },
                {
                  "name": "Create a scenario",
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/evals/scenarios",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "evals",
                        "scenarios"
                      ]
                    },
                    "description": "Create version 1 of a workspace scenario. It is active immediately.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"scenario\": {\n    \"scenarioId\": \"no_invented_prices\",\n    \"title\": \"Asks about prices\",\n    \"type\": \"persona\",\n    \"user\": {\n      \"persona\": \"Customer comparing options. Writes short and wants concrete numbers.\",\n      \"goal\": \"Find out how much it costs and what it includes.\",\n      \"behaviors\": [\"Asks the price in the first message\", \"Asks to confirm whether there are extra costs\"]\n    },\n    \"expect\": {\n      \"outcome\": \"Gives only the prices that are in its knowledge and never makes up figures.\",\n      \"checks\": [{ \"kind\": \"assistance_requested\", \"expected\": false, \"severity\": \"should\" }]\n    },\n    \"run\": { \"nTrials\": 3, \"maxTurns\": 8 }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                },
                {
                  "name": "New version of a scenario",
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/evals/scenarios/:scenarioId/versions",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "evals",
                        "scenarios",
                        ":scenarioId",
                        "versions"
                      ],
                      "variable": [
                        {
                          "key": "scenarioId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Save the next version of a scenario. Earlier versions do not change.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"scenario\": {\n    \"title\": \"Books an appointment\",\n    \"profileId\": \"general\",\n    \"type\": \"script\",\n    \"user\": { \"steps\": [\"Hi, I want to book an appointment\", \"Tuesday afternoon\", \"Under the name Ana López\"] },\n    \"expect\": {\n      \"outcome\": \"The agent asks only for the missing details and confirms the day and time.\",\n      \"checks\": [{ \"kind\": \"tool_called\", \"tool\": \"book_appointment\" }]\n    },\n    \"run\": { \"nTrials\": 3 }\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                },
                {
                  "name": "Archive a scenario",
                  "request": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/evals/scenarios/:scenarioId/archive",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "evals",
                        "scenarios",
                        ":scenarioId",
                        "archive"
                      ],
                      "variable": [
                        {
                          "key": "scenarioId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Remove a scenario from your workspace. All its versions are archived and no run uses it again."
                  },
                  "response": []
                }
              ]
            },
            {
              "name": "Suites",
              "item": [
                {
                  "name": "List suites",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/evals/suites",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "evals",
                        "suites"
                      ]
                    },
                    "description": "All the workspace's suites, including archived ones."
                  },
                  "response": []
                },
                {
                  "name": "Create a suite",
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/evals/suites",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "evals",
                        "suites"
                      ]
                    },
                    "description": "Create a group of scenarios that run together, for the workspace or for an agent.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Sales evals\",\n  \"description\": \"What the sales agent must do well before publishing.\",\n  \"agentId\": \"Xq8mTe2LwP4kZ1aB9cDf\",\n  \"members\": [\n    { \"scenarioId\": \"books_tuesday_appointment\" },\n    { \"scenarioId\": \"no_invented_prices\", \"version\": 2, \"nTrials\": 5 }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                },
                {
                  "name": "Replace a suite",
                  "request": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/evals/suites/:suiteId",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "evals",
                        "suites",
                        ":suiteId"
                      ],
                      "variable": [
                        {
                          "key": "suiteId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Replace a whole suite. It also removes scenarios, moves the suite to another agent or archives it.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Sales evals\",\n  \"members\": [\n    { \"scenarioId\": \"books_tuesday_appointment\", \"version\": null, \"nTrials\": null }\n  ],\n  \"archived\": false\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                }
              ]
            },
            {
              "name": "Runs",
              "item": [
                {
                  "name": "Estimate a run",
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/agents/:agentId/evals/runs/estimate",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "agents",
                        ":agentId",
                        "evals",
                        "runs",
                        "estimate"
                      ],
                      "variable": [
                        {
                          "key": "agentId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Calculates planned trials, their maximum cost and warnings before starting them.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"suiteId\": \"s8Kd2LmQ\",\n  \"versions\": [\"draft\", \"published\"]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                },
                {
                  "name": "Start a run",
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/agents/:agentId/evals/runs",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "agents",
                        ":agentId",
                        "evals",
                        "runs"
                      ],
                      "variable": [
                        {
                          "key": "agentId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Run a suite against one to four versions of an agent in a single launch. It answers right away with the queued launch.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"suiteId\": \"s8Kd2LmQ\",\n  \"versions\": [\"draft\", \"published\"]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                },
                {
                  "name": "List runs",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/agents/:agentId/evals/runs?versionId=published&suiteId=&limit=20&pageToken=",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "agents",
                        ":agentId",
                        "evals",
                        "runs"
                      ],
                      "query": [
                        {
                          "key": "versionId",
                          "value": "published",
                          "description": "draft, published o vN."
                        },
                        {
                          "key": "suiteId",
                          "value": "",
                          "description": "Solo las corridas de esta suite."
                        },
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "De 1 a 100."
                        },
                        {
                          "key": "pageToken",
                          "value": "",
                          "description": "El nextPageToken de la página anterior."
                        }
                      ],
                      "variable": [
                        {
                          "key": "agentId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "An agent's runs, one per version, newest first. It includes the ones that ran on their own on publish."
                  },
                  "response": []
                },
                {
                  "name": "Get a launch",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/agents/:agentId/evals/runs/:launchId",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "agents",
                        ":agentId",
                        "evals",
                        "runs",
                        ":launchId"
                      ],
                      "variable": [
                        {
                          "key": "agentId",
                          "value": "",
                          "type": "string"
                        },
                        {
                          "key": "launchId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Retrieves a launch, its runs, trials and verdicts until it finishes."
                  },
                  "response": []
                },
                {
                  "name": "Get a trial",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/agents/:agentId/evals/runs/:launchId/trials/:runId/:trialId",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "agents",
                        ":agentId",
                        "evals",
                        "runs",
                        ":launchId",
                        "trials",
                        ":runId",
                        ":trialId"
                      ],
                      "variable": [
                        {
                          "key": "agentId",
                          "value": "",
                          "type": "string"
                        },
                        {
                          "key": "launchId",
                          "value": "",
                          "type": "string"
                        },
                        {
                          "key": "runId",
                          "value": "",
                          "type": "string"
                        },
                        {
                          "key": "trialId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Retrieves a trial’s conversation, tool calls and assistance requests."
                  },
                  "response": []
                },
                {
                  "name": "Cancel a launch",
                  "request": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/agents/:agentId/evals/runs/:launchId/cancel",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "agents",
                        ":agentId",
                        "evals",
                        "runs",
                        ":launchId",
                        "cancel"
                      ],
                      "variable": [
                        {
                          "key": "agentId",
                          "value": "",
                          "type": "string"
                        },
                        {
                          "key": "launchId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Stop an agent's launch. Trials that have not started no longer run, finished ones are kept and cancelled ones do not count in the result."
                  },
                  "response": []
                }
              ]
            },
            {
              "name": "On publish",
              "item": [
                {
                  "name": "Get the suites on publish",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/agents/:agentId/evals/on-publish",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "agents",
                        ":agentId",
                        "evals",
                        "on-publish"
                      ],
                      "variable": [
                        {
                          "key": "agentId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Retrieves the suites that run automatically when an agent is published."
                  },
                  "response": []
                },
                {
                  "name": "Choose the suites on publish",
                  "request": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/agents/:agentId/evals/on-publish",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "agents",
                        ":agentId",
                        "evals",
                        "on-publish"
                      ],
                      "variable": [
                        {
                          "key": "agentId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Connect suites to an agent so they run on their own every time it is published. They do not block publishing.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"suiteIds\": [\"s8Kd2LmQ\"]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                }
              ]
            },
            {
              "name": "Compare versions",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/agents/:agentId/evals/compare?suiteId=&versions=published,draft",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "agents",
                    ":agentId",
                    "evals",
                    "compare"
                  ],
                  "query": [
                    {
                      "key": "suiteId",
                      "value": "",
                      "description": "La suite."
                    },
                    {
                      "key": "versions",
                      "value": "published,draft",
                      "description": "De dos a cuatro versiones separadas por comas."
                    }
                  ],
                  "variable": [
                    {
                      "key": "agentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Compares existing results from two to four versions, scenario by scenario."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Chat",
          "item": [
            {
              "name": "Send a message to the agent",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/chat",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "chat"
                  ]
                },
                "description": "Start or continue a chat with an agent, immediately or on a schedule.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"message\": \"Help me choose the right plan for my team.\",\n  \"agentId\": \"agent_01JABCDEF23456789\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "List chats",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/chat",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "chat"
                  ]
                },
                "description": "List API-created workspace chats with filters and pagination."
              },
              "response": []
            },
            {
              "name": "Get a chat",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/chat/:id",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "chat",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read an API chat state and full history."
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "Knowledge and tools",
      "item": [
        {
          "name": "Files",
          "item": [
            {
              "name": "List files",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "files"
                  ]
                },
                "description": "List the workspace's files, with their processing state and how many agents use them."
              },
              "response": []
            },
            {
              "name": "Create a file",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/files",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "files"
                  ]
                },
                "description": "Create a file from text, a web page or a document up to 1 MiB, and optionally connect it to an agent. It is processed in the background.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"type\": \"text\",\n  \"title\": \"Service hours\",\n  \"text\": \"We are open Monday to Friday from 9:00 to 18:00 and on Saturdays from 10:00 to 14:00.\",\n  \"attachment\": { \"agentId\": \"Xq8mTe2LwP4kZ1aB9cDf\" }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Upload a file",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/files/upload",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "files",
                    "upload"
                  ]
                },
                "description": "Uploads documents up to 50 MiB through a private session and processes their content.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"title\": \"Returns manual\",\n  \"fileName\": \"returns-manual.pdf\",\n  \"contentType\": \"application/pdf\",\n  \"byteSize\": 7340032,\n  \"attachment\": { \"agentId\": \"Xq8mTe2LwP4kZ1aB9cDf\" }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Get a file",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/files/:fileId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "files",
                    ":fileId"
                  ],
                  "variable": [
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Retrieves a file and, with include, its content, download or affected agents."
              },
              "response": []
            },
            {
              "name": "Update a file",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/files/:fileId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "files",
                    ":fileId"
                  ],
                  "variable": [
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Change a file's title or description, turn on or off keeping a page up to date, or replace its content. It applies to all agents that use it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"title\": \"Return policies 2026\",\n  \"description\": \"Deadlines, conditions and exceptions for returning a product. Use it when people ask about exchanges or refunds.\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Reprocess a file",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/files/:fileId/reprocess",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "files",
                    ":fileId",
                    "reprocess"
                  ],
                  "variable": [
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Re-read a web file's page or the original document that was uploaded, without changing it. Use it to refresh a page now and to retry a processing that failed.",
                "body": {
                  "mode": "raw",
                  "raw": "{}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Suggest a title and description",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/files/:fileId/metadata/suggestion",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "files",
                    ":fileId",
                    "metadata",
                    "suggestion"
                  ],
                  "variable": [
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Ask the AI for a title and a description for a file based on its content. It saves nothing; to use them, update the file.",
                "body": {
                  "mode": "raw",
                  "raw": "{ \"fields\": [\"title\", \"description\"] }",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a file",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/files/:fileId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "files",
                    ":fileId"
                  ],
                  "variable": [
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete a file from the workspace and disconnect it from all the agents that use it. It requires Integrations and the confirmationToken from the list of affected agents."
              },
              "response": []
            },
            {
              "name": "Get a processing",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/files/:fileId/jobs/:uploadId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "files",
                    ":fileId",
                    "jobs",
                    ":uploadId"
                  ],
                  "variable": [
                    {
                      "key": "fileId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "uploadId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Checks a file processing job’s state and failure reasons."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Tools",
          "item": [
            {
              "name": "GET /v1/tools",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools?kind=&mcpId=&integrationId=",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools"
                  ],
                  "query": [
                    {
                      "key": "kind",
                      "value": "",
                      "description": "mcp, api, database, integration o legacy."
                    },
                    {
                      "key": "mcpId",
                      "value": "",
                      "description": "Solo las herramientas de ese servidor MCP."
                    },
                    {
                      "key": "integrationId",
                      "value": "",
                      "description": "Solo la herramienta de esa API personalizada."
                    }
                  ]
                },
                "description": "Retrieves workspace tools and their parameter schemas."
              },
              "response": []
            },
            {
              "name": "GET /v1/tools/{toolId}",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/:toolId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    ":toolId"
                  ],
                  "variable": [
                    {
                      "key": "toolId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Retrieves workspace tools and their parameter schemas."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Custom APIs",
          "item": [
            {
              "name": "List APIs",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis"
                  ]
                },
                "description": "List the workspace's custom APIs with their state and the result of their last test."
              },
              "response": []
            },
            {
              "name": "Get an API",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis/:integrationId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis",
                    ":integrationId"
                  ],
                  "variable": [
                    {
                      "key": "integrationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Returns a custom API's full definition, the state of its secret slots and what is missing to publish it."
              },
              "response": []
            },
            {
              "name": "Create an API",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis"
                  ]
                },
                "description": "Create a custom API as a draft. You can bind its secrets in the same call.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"order_lookup\",\n  \"description\": \"Looks up the status of an Example Store order by its number. Use it when the customer asks where their order is.\",\n  \"request\": {\n    \"method\": \"GET\",\n    \"url\": \"https://api.example-store.com/orders/{{orderId}}\",\n    \"headers\": [\n      { \"key\": \"Accept\", \"value\": \"application/json\" }\n    ],\n    \"auth\": { \"type\": \"bearer\" }\n  },\n  \"variables\": [\n    {\n      \"name\": \"orderId\",\n      \"type\": \"string\",\n      \"description\": \"Order number, as it appears in the confirmation email.\",\n      \"required\": true\n    }\n  ],\n  \"response\": {\n    \"path\": \"data\",\n    \"exclude\": [\"internal_notes\"]\n  },\n  \"secrets\": {\n    \"auth.token\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update an API",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis/:integrationId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis",
                    ":integrationId"
                  ],
                  "variable": [
                    {
                      "key": "integrationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Change part of an API's definition. It invalidates its test and the authorization of its secrets; a published API goes back to draft.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"description\": \"Looks up the status and estimated delivery date of an Example Store order.\",\n  \"expectedVersion\": 3,\n  \"secrets\": {\n    \"auth.token\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Bind a secret to an API",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis/:integrationId/secrets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis",
                    ":integrationId",
                    "secrets"
                  ],
                  "variable": [
                    {
                      "key": "integrationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Bind a workspace secret to a custom API slot. The secret is authorized only for the API's current destination.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"slot\": \"auth.token\",\n  \"secretId\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Test an API",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis/:integrationId/test",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis",
                    ":integrationId",
                    "test"
                  ],
                  "variable": [
                    {
                      "key": "integrationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Tests a custom API by preparing a request or executing it against your endpoint.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"dryRun\": false,\n  \"input\": {\n    \"orderId\": \"MX-48210\"\n  },\n  \"context\": {\n    \"phoneNumber\": \"+5215512345678\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Publish an API",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis/:integrationId/enable",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis",
                    ":integrationId",
                    "enable"
                  ],
                  "variable": [
                    {
                      "key": "integrationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Publish a custom API to the workspace catalog. It requires a real test of the current configuration.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"API tool enabled successfully\",\n  \"data\": {\n    \"id\": \"RuzoaswTBBrhutHyKYZn\",\n    \"toolName\": \"api_order_lookup\",\n    \"name\": \"order_lookup\",\n    \"description\": \"Looks up the status of an Example Store order by its number. Use it when the customer asks where their order is.\",\n    \"status\": \"enabled\",\n    \"version\": 3,\n    \"variables\": [\n      {\n        \"name\": \"orderId\",\n        \"type\": \"string\",\n        \"description\": \"Order number, as it appears in the confirmation email.\",\n        \"required\": true,\n        \"mode\": \"ai\"\n      }\n    ],\n    \"request\": {\n      \"method\": \"GET\",\n      \"url\": \"https://api.example-store.com/orders/{{orderId}}\",\n      \"headers\": [{ \"key\": \"Accept\", \"value\": \"application/json\" }],\n      \"auth\": { \"type\": \"bearer\" }\n    },\n    \"createdAt\": \"2026-10-28T12:05:03.902Z\",\n    \"updatedAt\": \"2026-10-28T12:18:44.117Z\",\n    \"lastTest\": null,\n    \"verified\": true,\n    \"secrets\": [\n      {\n        \"slot\": \"auth.token\",\n        \"state\": \"authorized\",\n        \"secretId\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n      }\n    ],\n    \"secretsRedacted\": true,\n    \"nextStep\": \"Enabled. Connect it to an agent with PUT /v1/agents/{agentId}/tools/RuzoaswTBBrhutHyKYZn.\",\n    \"toolId\": \"RuzoaswTBBrhutHyKYZn\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Pause an API",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis/:integrationId/pause",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis",
                    ":integrationId",
                    "pause"
                  ],
                  "variable": [
                    {
                      "key": "integrationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Take a custom API out of the catalog and keep its configuration, its secrets and its connections to agents.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"API tool paused successfully\",\n  \"data\": {\n    \"id\": \"RuzoaswTBBrhutHyKYZn\",\n    \"toolName\": \"api_order_lookup\",\n    \"name\": \"order_lookup\",\n    \"description\": \"Looks up the status of an Example Store order by its number. Use it when the customer asks where their order is.\",\n    \"status\": \"paused\",\n    \"version\": 4,\n    \"variables\": [\n      {\n        \"name\": \"orderId\",\n        \"type\": \"string\",\n        \"description\": \"Order number, as it appears in the confirmation email.\",\n        \"required\": true,\n        \"mode\": \"ai\"\n      }\n    ],\n    \"request\": {\n      \"method\": \"GET\",\n      \"url\": \"https://api.example-store.com/orders/{{orderId}}\",\n      \"headers\": [{ \"key\": \"Accept\", \"value\": \"application/json\" }],\n      \"auth\": { \"type\": \"bearer\" }\n    },\n    \"createdAt\": \"2026-10-28T12:05:03.902Z\",\n    \"updatedAt\": \"2026-11-04T09:00:12.540Z\",\n    \"lastTest\": null,\n    \"verified\": true,\n    \"secrets\": [\n      {\n        \"slot\": \"auth.token\",\n        \"state\": \"authorized\",\n        \"secretId\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n      }\n    ],\n    \"secretsRedacted\": true,\n    \"nextStep\": \"Paused: no agent sees it. Publish it again with POST /v1/tools/apis/RuzoaswTBBrhutHyKYZn/enable.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Clone an API",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis/:integrationId/clone",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis",
                    ":integrationId",
                    "clone"
                  ],
                  "variable": [
                    {
                      "key": "integrationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Copy a custom API as a new draft, without its bound secrets.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"order_lookup_test\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete an API",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/apis/:integrationId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "apis",
                    ":integrationId"
                  ],
                  "variable": [
                    {
                      "key": "integrationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete a custom API, its catalog tool and its connections to agents. It does not delete its secrets."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Custom functions",
          "item": [
            {
              "name": "List functions",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions"
                  ]
                },
                "description": "List workspace functions, limits, and current usage."
              },
              "response": []
            },
            {
              "name": "Get a function",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a function draft, verification, and secret slots."
              },
              "response": []
            },
            {
              "name": "Create a function",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions"
                  ]
                },
                "description": "Create a custom function draft.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"tax_id_lookup\",\n  \"displayName\": \"Tax ID lookup\",\n  \"description\": \"Looks up a customer's company name by tax ID. Use it when the customer gives their tax ID.\",\n  \"source\": \"import { z } from \\\"zod\\\";\\nimport { defineFunction } from \\\"@platica/functions\\\";\\n\\nexport default defineFunction({ … });\\n\",\n  \"allowedDomains\": [\"api.example.com\"],\n  \"timeoutSeconds\": 20,\n  \"secretSlots\": [\n    { \"slot\": \"API_KEY\", \"origin\": \"https://api.example.com\" }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update a function",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Update a function draft without changing the published version.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"timeoutSeconds\": 30,\n  \"allowedDomains\": [\"api.example.com\", \"auth.example.com\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Verify a function",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/verify",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "verify"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Review and compile a function without running or deploying it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"source\": \"import { z } from \\\"zod\\\";\\nimport { defineFunction } from \\\"@platica/functions\\\";\\n\\nexport default defineFunction({ … });\\n\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Bind a secret to a function",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/secrets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "secrets"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Bind an existing secret to a function slot.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"slot\": \"API_KEY\",\n  \"secretId\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Test a function",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/test",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "test"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Test the draft without changing the version agents use.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"input\": { \"taxId\": \"XAXX010101000\" }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Publish a function",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/publish",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "publish"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Verify and publish a new version for connected agents.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"notes\": \"First version\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "GET /v1/tools/functions/{functionId}/versions",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/versions",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "versions"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read published versions and the one agents currently use."
              },
              "response": []
            },
            {
              "name": "GET /v1/tools/functions/{functionId}/versions/{version}",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/versions/:version",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "versions",
                    ":version"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "version",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read published versions and the one agents currently use."
              },
              "response": []
            },
            {
              "name": "Go back to a version",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/rollback",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "rollback"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Restore an earlier published version without changing the draft.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"version\": 1\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Run a function",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/run",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "run"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Manually run a function's published version.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"input\": { \"taxId\": \"XAXX010101000\" }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "GET /v1/tools/functions/runs",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/runs",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    "runs"
                  ]
                },
                "description": "Read execution results, logs, and HTTP calls."
              },
              "response": []
            },
            {
              "name": "GET /v1/tools/functions/{functionId}/runs",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/runs",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "runs"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read execution results, logs, and HTTP calls."
              },
              "response": []
            },
            {
              "name": "Pause a function",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/pause",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "pause"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Pause a function to stop agent calls without deleting it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"Function paused: no agent sees it\",\n  \"data\": {\n    \"id\": \"Hk2s9QmXc1\",\n    \"name\": \"tax_id_lookup\",\n    \"status\": \"paused\",\n    \"liveVersion\": 2,\n    \"toolName\": \"fn_tax_id_lookup\",\n    \"toolId\": null,\n    \"nextStep\": \"Paused: no agent sees it. Enable it again with POST /v1/tools/functions/Hk2s9QmXc1/enable.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Activate a function",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId/enable",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId",
                    "enable"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Activate a paused function so agents can use its published version.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"Function enabled: agents connected to it can call it\",\n  \"data\": {\n    \"id\": \"Hk2s9QmXc1\",\n    \"name\": \"tax_id_lookup\",\n    \"status\": \"enabled\",\n    \"liveVersion\": 2,\n    \"toolName\": \"fn_tax_id_lookup\",\n    \"toolId\": \"Hk2s9QmXc1\",\n    \"nextStep\": \"Live (version 2). Connect it to an agent with PUT /v1/agents/{agentId}/tools/Hk2s9QmXc1.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Get usage",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/usage",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    "usage"
                  ]
                },
                "description": "Read workspace function calls, functions, deployments, and limits."
              },
              "response": []
            },
            {
              "name": "Get the environment",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/runtime",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    "runtime"
                  ]
                },
                "description": "Read the environment, packages, limits, and types for writing functions."
              },
              "response": []
            },
            {
              "name": "Delete a function",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/functions/:functionId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "functions",
                    ":functionId"
                  ],
                  "variable": [
                    {
                      "key": "functionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete a function, its code, versions, and agent connections."
              },
              "response": []
            }
          ]
        },
        {
          "name": "MCP servers",
          "item": [
            {
              "name": "List MCP servers",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/mcp",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "mcp"
                  ]
                },
                "description": "List a summary of workspace MCP servers."
              },
              "response": []
            },
            {
              "name": "Get an MCP server",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/mcp/:mcpId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "mcp",
                    ":mcpId"
                  ],
                  "variable": [
                    {
                      "key": "mcpId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read an MCP server, its tools, and pending credential steps."
              },
              "response": []
            },
            {
              "name": "Connect an MCP server",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/mcp",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "mcp"
                  ]
                },
                "description": "Save an MCP server and test it when its credentials are ready.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Linear\",\n  \"description\": \"Support team issues\",\n  \"url\": \"https://mcp.linear.app/mcp\",\n  \"auth\": { \"type\": \"bearer\" },\n  \"secrets\": {\n    \"auth.token\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update an MCP server",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/mcp/:mcpId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "mcp",
                    ":mcpId"
                  ],
                  "variable": [
                    {
                      "key": "mcpId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Update an MCP server and verify it again when the connection changes.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"https://mcp.linear.app/mcp\",\n  \"auth\": { \"type\": \"apikey-header\", \"headerName\": \"X-Api-Key\" },\n  \"expectedVersion\": 3,\n  \"secrets\": {\n    \"auth.token\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Bind a secret to an MCP server",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/mcp/:mcpId/secrets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "mcp",
                    ":mcpId",
                    "secrets"
                  ],
                  "variable": [
                    {
                      "key": "mcpId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Authorize an existing secret for an MCP server slot.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"slot\": \"auth.token\",\n  \"secretId\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Start OAuth for an MCP server",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/mcp/:mcpId/oauth/start",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "mcp",
                    ":mcpId",
                    "oauth",
                    "start"
                  ],
                  "variable": [
                    {
                      "key": "mcpId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Get the link for a person to authorize an MCP server with OAuth.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"A person must authorize this server in Platica\",\n  \"data\": {\n    \"mcpId\": \"QZPHpckDPC58JIVLQA3Z\",\n    \"authorized\": false,\n    \"authorizeIn\": \"https://app.platica.mx/workspace/ws_123/integrations/functions/mcp/QZPHpckDPC58JIVLQA3Z\",\n    \"nextStep\": \"This server uses OAuth: a person signed in to Platica has to authorize it at https://app.platica.mx/workspace/ws_123/integrations/functions/mcp/QZPHpckDPC58JIVLQA3Z. Then test it.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Test an MCP server",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/mcp/:mcpId/test",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "mcp",
                    ":mcpId",
                    "test"
                  ],
                  "variable": [
                    {
                      "key": "mcpId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Verify a connection and discover an MCP server's tools.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"MCP server verified\",\n  \"data\": {\n    \"id\": \"QZPHpckDPC58JIVLQA3Z\",\n    \"name\": \"Linear\",\n    \"description\": \"Support team issues\",\n    \"url\": \"https://mcp.linear.app/mcp\",\n    \"transport\": \"streamable-http\",\n    \"slug\": \"a1b2c3\",\n    \"authType\": \"bearer\",\n    \"auth\": { \"type\": \"bearer\" },\n    \"status\": \"pending_config\",\n    \"lastError\": null,\n    \"serverInfo\": { \"name\": \"linear-mcp\", \"version\": \"1.4.0\" },\n    \"customHeaderNames\": [],\n    \"discoveredToolsCount\": 2,\n    \"installedToolsCount\": 0,\n    \"lastSyncAt\": null,\n    \"createdAt\": \"2026-10-28T12:02:11.410Z\",\n    \"updatedAt\": \"2026-10-28T12:05:02.000Z\",\n    \"version\": 1,\n    \"verified\": true,\n    \"secrets\": [\n      {\n        \"slot\": \"auth.token\",\n        \"state\": \"authorized\",\n        \"secretId\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\"\n      }\n    ],\n    \"discoveredTools\": [\n      {\n        \"name\": \"create_issue\",\n        \"description\": \"Create a new issue in Linear\",\n        \"inputSchema\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"title\": { \"type\": \"string\" },\n            \"teamId\": { \"type\": \"string\" }\n          },\n          \"required\": [\"title\", \"teamId\"]\n        },\n        \"installed\": false\n      },\n      {\n        \"name\": \"search_issues\",\n        \"description\": \"Search issues by text query\",\n        \"inputSchema\": {\n          \"type\": \"object\",\n          \"properties\": { \"query\": { \"type\": \"string\" } }\n        },\n        \"installed\": false\n      }\n    ],\n    \"installedTools\": [],\n    \"verification\": { \"confirmed\": true },\n    \"nextStep\": \"Verified. Choose which tools to install with POST /v1/tools/mcp/QZPHpckDPC58JIVLQA3Z/tools/sync: create_issue, search_issues.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Choose MCP tools",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/mcp/:mcpId/tools/sync",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "mcp",
                    ":mcpId",
                    "tools",
                    "sync"
                  ],
                  "variable": [
                    {
                      "key": "mcpId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Replace the installed tool selection for an MCP server.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"tools\": [\"create_issue\", \"search_issues\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete an MCP server",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/mcp/:mcpId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "mcp",
                    ":mcpId"
                  ],
                  "variable": [
                    {
                      "key": "mcpId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete an MCP server and all its tools, keeping its secrets."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Databases",
          "item": [
            {
              "name": "List databases",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases"
                  ]
                },
                "description": "List all workspace database connections, sorted by name."
              },
              "response": []
            },
            {
              "name": "Get a database",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases/:databaseId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases",
                    ":databaseId"
                  ],
                  "variable": [
                    {
                      "key": "databaseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a connection and check its password authorization."
              },
              "response": []
            },
            {
              "name": "Connect a database",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases"
                  ]
                },
                "description": "Save a database connection and create its four tools.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"store\",\n  \"description\": \"Orders, customers, and inventory of the online store.\",\n  \"engine\": \"postgres\",\n  \"host\": \"db.example.com\",\n  \"database\": \"store\",\n  \"user\": \"readonly\",\n  \"password\": \"<password>\",\n  \"hiddenColumns\": [\"customers.phone\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update a database",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases/:databaseId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases",
                    ":databaseId"
                  ],
                  "variable": [
                    {
                      "key": "databaseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Change a connection or its hidden tables and columns.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"hiddenTables\": [\"payments\"],\n  \"hiddenColumns\": [\"customers.phone\", \"customers.email\"],\n  \"pageSize\": 100\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Test a database",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases/:databaseId/test",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases",
                    ":databaseId",
                    "test"
                  ],
                  "variable": [
                    {
                      "key": "databaseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Test the saved connection and read the tables available to the agent."
              },
              "response": []
            },
            {
              "name": "See the schema",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases/:databaseId/schema?table=",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases",
                    ":databaseId",
                    "schema"
                  ],
                  "query": [
                    {
                      "key": "table",
                      "value": "",
                      "description": "Una tabla, como tabla o esquema.tabla. Sin ella, todas las tablas."
                    }
                  ],
                  "variable": [
                    {
                      "key": "databaseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read tables and columns, including those hidden from agents."
              },
              "response": []
            },
            {
              "name": "Query a database",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases/:databaseId/query",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases",
                    ":databaseId",
                    "query"
                  ],
                  "variable": [
                    {
                      "key": "databaseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Run a SELECT query with the same restrictions as the agent.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"sql\": \"SELECT id, total, status FROM orders ORDER BY id\",\n  \"pageSize\": 2\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Enable a database",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases/:databaseId/enable",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases",
                    ":databaseId",
                    "enable"
                  ],
                  "variable": [
                    {
                      "key": "databaseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Enable a connection and restore its tools for agents."
              },
              "response": []
            },
            {
              "name": "Pause a database",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases/:databaseId/pause",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases",
                    ":databaseId",
                    "pause"
                  ],
                  "variable": [
                    {
                      "key": "databaseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Hide a connection's tools without deleting its settings."
              },
              "response": []
            },
            {
              "name": "Delete a database",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tools/databases/:databaseId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tools",
                    "databases",
                    ":databaseId"
                  ],
                  "variable": [
                    {
                      "key": "databaseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete a connection and its tools, keeping its password secret."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Secrets",
          "item": [
            {
              "name": "List secrets",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/secrets?limit=20&pageToken=",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "secrets"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "De 1 a 50."
                    },
                    {
                      "key": "pageToken",
                      "value": "",
                      "description": "El nextPageToken de la página anterior."
                    }
                  ]
                },
                "description": "List the workspace's secrets, without their values, to reuse one or to find the id you will bind to a slot."
              },
              "response": []
            },
            {
              "name": "Create a secret",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/secrets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "secrets"
                  ]
                },
                "description": "Stores a workspace credential and returns its id without exposing the value in the response.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Acme Store · Orders API\",\n  \"kind\": \"bearer\",\n  \"value\": \"sk_test_example\",\n  \"expiresAt\": \"2027-01-31T06:00:00.000Z\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Get a secret",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/secrets/:secretId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "secrets",
                    ":secretId"
                  ],
                  "variable": [
                    {
                      "key": "secretId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Retrieves secret details and current authorizations without returning its value."
              },
              "response": []
            },
            {
              "name": "Update a secret",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/secrets/:secretId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "secrets",
                    ":secretId"
                  ],
                  "variable": [
                    {
                      "key": "secretId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Change a secret's name, its expiration, or both. It does not change the value.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Acme Store · Orders API (production)\",\n  \"expiresAt\": \"2027-06-30T06:00:00.000Z\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Rotate a secret",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/secrets/:secretId/rotate",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "secrets",
                    ":secretId",
                    "rotate"
                  ],
                  "variable": [
                    {
                      "key": "secretId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Replace a secret's value. Everything that uses it takes the new value on its next call, without binding again.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"value\": \"sk_test_example_new\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Revoke a secret",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/secrets/:secretId/revoke",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "secrets",
                    ":secretId",
                    "revoke"
                  ],
                  "variable": [
                    {
                      "key": "secretId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Stop all uses of a secret right away. The record is kept and still appears in the list.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"Secret revoked successfully\",\n  \"data\": {\n    \"id\": \"5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c\",\n    \"name\": \"Acme Store · Orders API\",\n    \"kind\": \"bearer\",\n    \"status\": \"revoked\",\n    \"revision\": 4,\n    \"createdAt\": \"2026-10-28T12:05:00.000Z\",\n    \"updatedAt\": \"2026-11-06T08:02:11.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a secret",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/secrets/:secretId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "secrets",
                    ":secretId"
                  ],
                  "variable": [
                    {
                      "key": "secretId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete a secret: its value and all the authorizations it had are erased."
              },
              "response": []
            }
          ]
        },
        {
          "name": "AI providers",
          "item": [
            {
              "name": "List AI providers",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/ai-providers",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "ai-providers"
                  ]
                },
                "description": "Read the four providers, their key status, and available models."
              },
              "response": []
            },
            {
              "name": "Connect an AI provider key",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/ai-providers/:provider",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "ai-providers",
                    ":provider"
                  ],
                  "variable": [
                    {
                      "key": "provider",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Store and test an AI provider key.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"value\": \"sk-proj-example\",\n  \"fallback\": \"platform\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Test an AI provider key",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/ai-providers/:provider/verify",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "ai-providers",
                    ":provider",
                    "verify"
                  ],
                  "variable": [
                    {
                      "key": "provider",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Retest a stored key without sending it again."
              },
              "response": []
            },
            {
              "name": "Change the fallback",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/ai-providers/:provider",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "ai-providers",
                    ":provider"
                  ],
                  "variable": [
                    {
                      "key": "provider",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Choose what agents do when a provider key fails.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"fallback\": \"none\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Disconnect an AI provider key",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/ai-providers/:provider",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "ai-providers",
                    ":provider"
                  ],
                  "variable": [
                    {
                      "key": "provider",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Disconnect your key and return to using Platica's account."
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "Channels",
      "item": [
        {
          "name": "Channels",
          "item": [
            {
              "name": "List channels",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/channels",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels"
                  ]
                },
                "description": "List workspace channels with their health and assigned agent."
              },
              "response": []
            },
            {
              "name": "Get a channel",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/channels/:channelId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    ":channelId"
                  ],
                  "variable": [
                    {
                      "key": "channelId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a channel by ID, including its health and assigned agent."
              },
              "response": []
            },
            {
              "name": "Update a channel",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/channels/:channelId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    ":channelId"
                  ],
                  "variable": [
                    {
                      "key": "channelId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Change a channel name or agent, or disconnect it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"defaultAgentId\": \"tVKljCHCNiebQdasHeit\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Disconnect a channel",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/channels/:channelId/disconnect",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    ":channelId",
                    "disconnect"
                  ],
                  "variable": [
                    {
                      "key": "channelId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Stop sending and receiving messages without deleting the channel.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"Channel disconnected\",\n  \"data\": {\n    \"id\": \"104857362918475\",\n    \"prefixedChannelId\": \"fb-104857362918475\",\n    \"platform\": \"messenger\",\n    \"channelType\": \"messenger\",\n    \"isConnected\": false,\n    \"status\": \"DISCONNECTED\",\n    \"defaultAgentId\": \"tVKljCHCNiebQdasHeit\",\n    \"name\": \"Acme Store\",\n    \"displayPhoneNumber\": null,\n    \"phoneNumber\": null,\n    \"businessId\": null,\n    \"wabaId\": null,\n    \"kind\": \"messaging\",\n    \"commentAutoReply\": null,\n    \"creationDate\": \"2026-11-12T18:42:10.000Z\",\n    \"lastUpdate\": \"2026-11-14T10:15:00.000Z\",\n    \"health\": {\n      \"state\": \"disconnected\",\n      \"reason\": \"disconnected\",\n      \"since\": \"2026-11-14T10:15:00.000Z\"\n    },\n    \"nextStep\": \"Disconnected. The channel keeps its history and its agent. To connect it again, start a connection of the same type with POST /v1/channels/connections.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a channel",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/channels/:channelId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    ":channelId"
                  ],
                  "variable": [
                    {
                      "key": "channelId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Remove a channel from the workspace, disconnecting it if necessary."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Channel connections",
          "item": [
            {
              "name": "Connect a channel",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/channels/connections",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    "connections"
                  ]
                },
                "description": "Start a connection that a person completes to create one or more channels.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"type\": \"messenger\",\n  \"agentId\": \"tVKljCHCNiebQdasHeit\",\n  \"expiresInMinutes\": 2880\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "List connections",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/channels/connections",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    "connections"
                  ]
                },
                "description": "List workspace connections and recover their pending links."
              },
              "response": []
            },
            {
              "name": "Get a connection",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/channels/connections/:connectionId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    "connections",
                    ":connectionId"
                  ],
                  "variable": [
                    {
                      "key": "connectionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Check a connection state, available choices, and result."
              },
              "response": []
            },
            {
              "name": "Renew the link",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/channels/connections/:connectionId/link",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    "connections",
                    ":connectionId",
                    "link"
                  ],
                  "variable": [
                    {
                      "key": "connectionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Renew a pending connection link and invalidate the previous one.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"expiresInMinutes\": 4320\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Choose what to connect",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/channels/connections/:connectionId/select",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    "connections",
                    ":connectionId",
                    "select"
                  ],
                  "variable": [
                    {
                      "key": "connectionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Choose the pages, accounts, or numbers to connect as channels.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"assets\": [\"104857362918475\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Cancel a connection",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/channels/connections/:connectionId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "channels",
                    "connections",
                    ":connectionId"
                  ],
                  "variable": [
                    {
                      "key": "connectionId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Cancel a pending connection and invalidate its links."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Web chat",
          "item": [
            {
              "name": "List web chats",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/webchats",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webchats"
                  ]
                },
                "description": "List all workspace web chats without pagination."
              },
              "response": []
            },
            {
              "name": "Create a web chat",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/webchats",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webchats"
                  ]
                },
                "description": "Create and publish a web chat with the code for your site.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Acme Store\",\n  \"agentId\": \"tVKljCHCNiebQdasHeit\",\n  \"allowedDomains\": [\"example.com\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Get a web chat",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/webchats/:webchatId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webchats",
                    ":webchatId"
                  ],
                  "variable": [
                    {
                      "key": "webchatId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a web chat's settings, pending changes, and embed code."
              },
              "response": []
            },
            {
              "name": "Update a web chat",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/webchats/:webchatId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webchats",
                    ":webchatId"
                  ],
                  "variable": [
                    {
                      "key": "webchatId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Update a web chat and save settings changes in its draft.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"config\": {\n    \"appearance\": { \"primary\": \"#E4572E\" },\n    \"content\": { \"welcomeTitle\": \"Hi! Looking for anything in particular?\" }\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Publish a web chat",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/webchats/:webchatId/publish",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webchats",
                    ":webchatId",
                    "publish"
                  ],
                  "variable": [
                    {
                      "key": "webchatId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Publish settings changes without replacing the code on your site.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"Web chat published\",\n  \"data\": {\n    \"id\": \"wc-7Hq2LmN4pR8sT1vX\",\n    \"name\": \"Acme Store\",\n    \"agentId\": \"tVKljCHCNiebQdasHeit\",\n    \"mode\": \"both\",\n    \"allowedDomains\": [\"example.com\"],\n    \"config\": {\n      \"enabled\": true,\n      \"appearance\": {\n        \"mode\": \"light\",\n        \"primary\": \"#E4572E\",\n        \"radius\": 16,\n        \"font\": \"system\",\n        \"colors\": {\n          \"canvas\": \"#f7f8f5\",\n          \"surface\": \"#ffffff\",\n          \"surfaceMuted\": \"#f4f5f1\",\n          \"text\": \"#343434\",\n          \"textMuted\": \"#666666\",\n          \"border\": \"#111111\",\n          \"headerBackground\": \"#ffffff\",\n          \"headerText\": \"#343434\",\n          \"headerIcons\": \"#666666\",\n          \"visitorBackground\": \"#eef0e9\",\n          \"visitorText\": \"#343434\",\n          \"composerBackground\": \"#ffffff\",\n          \"composerInput\": \"#ffffff\",\n          \"sendBackground\": \"#00C577\",\n          \"sendIcon\": \"#111111\",\n          \"error\": \"#ef4444\",\n          \"online\": \"#00C577\"\n        },\n        \"visualEffects\": { \"enabled\": true, \"intensity\": 60, \"blur\": 80, \"motion\": true }\n      },\n      \"availability\": { \"status\": \"online\" }\n    },\n    \"published\": true,\n    \"hasUnpublishedChanges\": false,\n    \"embed\": {\n      \"publicKey\": \"wc_pub_7Hq2LmN4pR8sT1vX\",\n      \"script\": \"<script\\n  src=\\\"https://chat.platica.mx/widget.js\\\"\\n  data-webchat=\\\"wc_pub_7Hq2LmN4pR8sT1vX\\\"\\n  defer>\\n</script>\",\n      \"inline\": \"<div id=\\\"platica-chat\\\"></div>\\n\\n<script\\n  src=\\\"https://chat.platica.mx/widget.js\\\"\\n  data-webchat=\\\"wc_pub_7Hq2LmN4pR8sT1vX\\\"\\n  data-target=\\\"#platica-chat\\\"\\n  defer>\\n</script>\",\n      \"pageUrl\": \"https://chat.platica.mx/chat?webchat=wc_pub_7Hq2LmN4pR8sT1vX\"\n    },\n    \"health\": { \"state\": \"ok\", \"reason\": null, \"since\": \"2026-11-12T18:30:00.000Z\" },\n    \"creationDate\": \"2026-11-12T18:30:00.000Z\",\n    \"lastUpdate\": \"2026-11-12T19:10:00.000Z\",\n    \"nextStep\": \"Published: the saved configuration is live.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a web chat",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/webchats/:webchatId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webchats",
                    ":webchatId"
                  ],
                  "variable": [
                    {
                      "key": "webchatId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete a web chat, its settings, page, and images."
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "Conversations and cases",
      "item": [
        {
          "name": "Conversations",
          "item": [
            {
              "name": "List conversations",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v2/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations"
                  ]
                },
                "description": "List the conversations of a workspace with filters, sorting and field selection, without their messages."
              },
              "response": []
            },
            {
              "name": "Get a conversation",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Get one conversation by its ID, with the fields you choose and without its messages."
              },
              "response": []
            },
            {
              "name": "Search conversations",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/search",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    "search"
                  ]
                },
                "description": "Find conversations by words, by meaning or both, with filters, ranking control and the same fields as the list.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"ranking\": {\n    \"lexicalWeight\": 0.65,\n    \"semanticWeight\": 0.35,\n    \"rrfK\": 60,\n    \"semanticThreshold\": 0.8\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Count conversations",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/counts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    "counts"
                  ]
                },
                "description": "Get exact counts of conversations, filtered and broken down by operation, status, agent or channel."
              },
              "response": []
            },
            {
              "name": "Update a conversation",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Change the topic of a conversation, or the title of a team chat.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"topic\": \"Refund for order 1042\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "PUT /v2/conversations/{conversationId}/tags",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/tags",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "tags"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Replace the tags of a conversation, or add and remove some in one step.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"tags\": [\"vip\", \"refund\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "PATCH /v2/conversations/{conversationId}/tags",
              "request": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/tags",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "tags"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Replace the tags of a conversation, or add and remove some in one step."
              },
              "response": []
            },
            {
              "name": "PUT /v2/conversations/{conversationId}/assignees",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/assignees",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "assignees"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Replace the team members assigned to a conversation, or add and remove some, and assign it to the whole team.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"assigneeIds\": [\"usr_ana\", \"luis@acme.com\"],\n  \"assignedToTeam\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "PATCH /v2/conversations/{conversationId}/assignees",
              "request": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/assignees",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "assignees"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Replace the team members assigned to a conversation, or add and remove some, and assign it to the whole team."
              },
              "response": []
            },
            {
              "name": "Pause the agent",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/pause",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "pause"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Hand a conversation to your team so a person handles it, and stop a reply the agent is writing.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": \"8Yc2kQ1mZ0rTq4Lp7WvX\",\n    \"operation\": \"supervised\"\n  },\n  \"meta\": {\n    \"fields\": [\"id\", \"operation\"],\n    \"include\": [],\n    \"requestId\": \"req_7f3c\",\n    \"resourceVersion\": \"MTc2NDYxMjAwMC4xMjM0NTY3ODk\",\n    \"action\": \"pause\",\n    \"changed\": true,\n    \"effects\": {\n      \"interrupted\": true\n    },\n    \"replayed\": false\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Resume the agent",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/resume",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "resume"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Give a conversation back to the agent so it replies to the contact now, following your instruction.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"instruction\": \"Apologize for the delay and confirm the refund date.\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Hand back on the next message",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/wait",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "wait"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Give a conversation back to the agent without writing to the contact now, and leave it a note for the contact's next message.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"instruction\": \"The refund was approved today; tell the customer when they write.\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Finish a conversation",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/finish",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "finish"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Mark an active conversation as finished. The thread stays open if the contact writes again.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": \"8Yc2kQ1mZ0rTq4Lp7WvX\",\n    \"status\": \"finished\"\n  },\n  \"meta\": {\n    \"fields\": [\"id\", \"status\"],\n    \"include\": [],\n    \"requestId\": \"req_7f3c\",\n    \"resourceVersion\": \"MTc2NDYxMjAwMC4xMjM0NTY3ODk\",\n    \"action\": \"finish\",\n    \"changed\": true,\n    \"effects\": {\n      \"interrupted\": false\n    },\n    \"replayed\": false\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Archive a conversation",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/archive",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "archive"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Close a conversation: the agent stops, its memory of the conversation is closed and the history stays readable.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": \"8Yc2kQ1mZ0rTq4Lp7WvX\",\n    \"status\": \"archived\"\n  },\n  \"meta\": {\n    \"fields\": [\"id\", \"status\"],\n    \"include\": [],\n    \"requestId\": \"req_7f3c\",\n    \"resourceVersion\": \"MTc2NDYxMjAwMC4xMjM0NTY3ODk\",\n    \"action\": \"archive\",\n    \"changed\": true,\n    \"effects\": {\n      \"interrupted\": false,\n      \"reusable\": false,\n      \"memoryCycleClosed\": true\n    },\n    \"replayed\": false\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Reopen a conversation",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/reopen",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "reopen"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Make a finished or archived conversation active again, handled by your team, without writing to the contact.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": \"8Yc2kQ1mZ0rTq4Lp7WvX\",\n    \"status\": \"active\",\n    \"operation\": \"supervised\"\n  },\n  \"meta\": {\n    \"fields\": [\"id\", \"status\", \"operation\"],\n    \"include\": [],\n    \"requestId\": \"req_7f3c\",\n    \"resourceVersion\": \"MTc2NDYxMjAwMC4xMjM0NTY3ODk\",\n    \"action\": \"reopen\",\n    \"changed\": true,\n    \"effects\": {\n      \"newMemoryCycle\": false\n    },\n    \"replayed\": false\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Change the agent",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/agent",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "agent"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Make another active agent of the workspace the main agent of a conversation.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"agentId\": \"ag_support\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Mark as spam",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/spam",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "spam"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Mark a conversation as spam and say whether to block the contact, or unmark it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"spam\": true,\n  \"blockContact\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Bulk actions",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/bulk",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    "bulk"
                  ]
                },
                "description": "Run one action on up to 100 conversations by ID, with one result per conversation.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"action\": \"assignees\",\n  \"conversationIds\": [\"8Yc2kQ1mZ0rTq4Lp7WvX\", \"Q3m9Zt2Lw8Rk1Vb6Hc0P\"],\n  \"input\": { \"mode\": \"patch\", \"add\": [\"luis@acme.com\"] }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "List messages",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "messages"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read the visible history of a conversation, page by page, newest or oldest first."
              },
              "response": []
            },
            {
              "name": "Get a message",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v2/conversations/:conversationId/messages/:messageId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v2",
                    "conversations",
                    ":conversationId",
                    "messages",
                    ":messageId"
                  ],
                  "variable": [
                    {
                      "key": "conversationId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "messageId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Get one visible message of a conversation by its ID, with fresh attachment URLs."
              },
              "response": []
            },
            {
              "name": "V1 (previous version)",
              "item": [
                {
                  "name": "List conversations",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "conversations"
                      ]
                    },
                    "description": "List conversations with pagination and filters, without downloading their messages."
                  },
                  "response": []
                },
                {
                  "name": "Get a conversation",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/conversations/:id",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "conversations",
                        ":id"
                      ],
                      "variable": [
                        {
                          "key": "id",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Get the current state and message history of one conversation."
                  },
                  "response": []
                },
                {
                  "name": "Search conversations",
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/search/conversations",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "search",
                        "conversations"
                      ]
                    },
                    "description": "Search conversations by words or meaning, choose response fields and export results to CSV.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"query\": \"the customer wants to cancel because the charge was duplicated\",\n  \"mode\": \"hybrid\",\n  \"filters\": {\n    \"start_date\": \"2026-07-01\",\n    \"tags\": { \"any\": [\"cancellation\", \"billing\"], \"none\": [\"test\"] },\n    \"platforms\": [\"whatsapp\", \"instagram\"],\n    \"is_finished\": true\n  },\n  \"page_size\": 20,\n  \"response\": {\n    \"fields\": [\"id\", \"contactName\", \"topic\", \"tags\", \"snippet\", \"score\", \"sources\"]\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                },
                {
                  "name": "Update a conversation",
                  "request": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/conversations/:id",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "conversations",
                        ":id"
                      ],
                      "variable": [
                        {
                          "key": "id",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Update the owners and status of an existing conversation.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"owners\": [\n    \"support@acme.com\",\n    \"sales@acme.com\"\n  ],\n  \"status\": \"finished\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                },
                {
                  "name": "POST /v1/conversations/{conversationId}/pause",
                  "request": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/conversations/:conversationId/pause",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "conversations",
                        ":conversationId",
                        "pause"
                      ],
                      "variable": [
                        {
                          "key": "conversationId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Pause the agent in a conversation so a person can handle it, and give it back when you finish."
                  },
                  "response": []
                },
                {
                  "name": "POST /v1/conversations/{conversationId}/resume",
                  "request": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/conversations/:conversationId/resume",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "conversations",
                        ":conversationId",
                        "resume"
                      ],
                      "variable": [
                        {
                          "key": "conversationId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Pause the agent in a conversation so a person can handle it, and give it back when you finish."
                  },
                  "response": []
                }
              ]
            }
          ]
        },
        {
          "name": "Messages",
          "item": [
            {
              "name": "Send a message",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "messages"
                  ]
                },
                "description": "Send text, media or instructions within a conversation.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"channelId\": \"521234567890\",\n  \"conversationId\": \"521234567890\",\n  \"content\": \"Hi! How can I help you?\",\n  \"client\": {\n    \"name\": \"Ana\",\n    \"customFields\": {\n      \"plate\": \"ABC123\"\n    }\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Send a template",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/messages/template",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "messages",
                    "template"
                  ]
                },
                "description": "Send an approved WhatsApp template and choose who will handle replies.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"channelId\": \"wb-123456789\",\n  \"conversationId\": \"521234567890\",\n  \"responderAgentId\": \"agent_123\",\n  \"campaignId\": \"pV6PvG2lc8ChQb2VmETr\",\n  \"template\": {\n    \"name\": \"welcome_customer\",\n    \"language\": \"es_MX\",\n    \"params\": [\"Ana\", \"Premium\"],\n    \"type\": \"image\",\n    \"file\": \"https://cdn.assets.com/welcome_image.jpg\",\n    \"buttons\": [\n      {\n        \"index\": 0,\n        \"parameters\": [{ \"type\": \"text\", \"text\": \"promo/january\" }]\n      }\n    ]\n  },\n  \"client\": {\n    \"name\": \"Ana\",\n    \"customFields\": {\n      \"plate\": \"ABC123\",\n      \"reception_id\": \"REC001\"\n    }\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Send an email",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/messages/email",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "messages",
                    "email"
                  ]
                },
                "description": "Send or reply to an email from a connected mailbox.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"channelId\": \"em-sales@acme.com\",\n  \"to\": \"ana@example.com\",\n  \"subject\": \"Your quote\",\n  \"text\": \"Hi Ana, here is your quote.\",\n  \"attachments\": [\n    { \"url\": \"https://acme.com/quote.pdf\", \"filename\": \"quote.pdf\" }\n  ],\n  \"agentId\": \"tVKljCHCNiebQdasHeit\",\n  \"client\": { \"name\": \"Ana\" }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "GET /v1/messages/scheduled",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/messages/scheduled",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "messages",
                    "scheduled"
                  ]
                },
                "description": "Read, reschedule and cancel scheduled messages, emails or templates."
              },
              "response": []
            },
            {
              "name": "GET /v1/messages/scheduled/{messageId}",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/messages/scheduled/:messageId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "messages",
                    "scheduled",
                    ":messageId"
                  ],
                  "variable": [
                    {
                      "key": "messageId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read, reschedule and cancel scheduled messages, emails or templates."
              },
              "response": []
            },
            {
              "name": "PATCH /v1/messages/scheduled/{messageId}",
              "request": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/messages/scheduled/:messageId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "messages",
                    "scheduled",
                    ":messageId"
                  ],
                  "variable": [
                    {
                      "key": "messageId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read, reschedule and cancel scheduled messages, emails or templates."
              },
              "response": []
            },
            {
              "name": "DELETE /v1/messages/scheduled/{messageId}",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/messages/scheduled/:messageId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "messages",
                    "scheduled",
                    ":messageId"
                  ],
                  "variable": [
                    {
                      "key": "messageId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read, reschedule and cancel scheduled messages, emails or templates."
              },
              "response": []
            }
          ]
        },
        {
          "name": "WhatsApp templates",
          "item": [
            {
              "name": "List templates",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/whatsapp/templates",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "whatsapp",
                    "templates"
                  ]
                },
                "description": "List workspace templates and filter by status, category, or language."
              },
              "response": []
            },
            {
              "name": "Get a template",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/whatsapp/templates/:name",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "whatsapp",
                    "templates",
                    ":name"
                  ],
                  "variable": [
                    {
                      "key": "name",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a template by name and choose its language version."
              },
              "response": []
            },
            {
              "name": "Template analytics",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/whatsapp/templates/:name/analytics",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "whatsapp",
                    "templates",
                    ":name",
                    "analytics"
                  ],
                  "variable": [
                    {
                      "key": "name",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read sends, reads, clicks, and cost for one template version."
              },
              "response": []
            },
            {
              "name": "Create a template",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/whatsapp/templates",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "whatsapp",
                    "templates"
                  ]
                },
                "description": "Create a WhatsApp template and submit it for Meta review.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"order_update\",\n  \"language\": \"es_MX\",\n  \"category\": \"UTILITY\",\n  \"components\": [\n    {\n      \"type\": \"BODY\",\n      \"text\": \"Hi {{1}}, your order {{2}} is ready for pickup.\",\n      \"example\": { \"body_text\": [[\"Ana\", \"A-1024\"]] }\n    },\n    { \"type\": \"FOOTER\", \"text\": \"Acme\" },\n    { \"type\": \"BUTTONS\", \"buttons\": [{ \"type\": \"QUICK_REPLY\", \"text\": \"On my way\" }] }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update a template",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/whatsapp/templates/:name",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "whatsapp",
                    "templates",
                    ":name"
                  ],
                  "variable": [
                    {
                      "key": "name",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Edit a template version and resubmit it for Meta review.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"language\": \"es_MX\",\n  \"components\": [\n    {\n      \"type\": \"BODY\",\n      \"text\": \"Hi {{1}}, your order {{2}} is waiting for you at the store.\",\n      \"example\": { \"body_text\": [[\"Ana\", \"A-1024\"]] }\n    },\n    { \"type\": \"FOOTER\", \"text\": \"Acme\" }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a template",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/whatsapp/templates/:name",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "whatsapp",
                    "templates",
                    ":name"
                  ],
                  "variable": [
                    {
                      "key": "name",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete all languages of a template or only the selected language."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Posts",
          "item": [
            {
              "name": "GET /v1/posts",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts"
                  ]
                },
                "description": "Read posts with comments and manage their assigned agent."
              },
              "response": []
            },
            {
              "name": "GET /v1/posts/{postId}",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read posts with comments and manage their assigned agent."
              },
              "response": []
            },
            {
              "name": "PATCH /v1/posts/{postId}",
              "request": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read posts with comments and manage their assigned agent."
              },
              "response": []
            },
            {
              "name": "GET /v1/posts/{postId}/threads",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId/threads",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId",
                    "threads"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read and update a post's comment threads."
              },
              "response": []
            },
            {
              "name": "GET /v1/posts/{postId}/threads/{threadId}",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId/threads/:threadId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId",
                    "threads",
                    ":threadId"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "threadId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read and update a post's comment threads."
              },
              "response": []
            },
            {
              "name": "PATCH /v1/posts/{postId}/threads/{threadId}",
              "request": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId/threads/:threadId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId",
                    "threads",
                    ":threadId"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "threadId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read and update a post's comment threads."
              },
              "response": []
            },
            {
              "name": "POST /v1/posts/{postId}/comments",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId/comments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId",
                    "comments"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Publish comments, reply to threads, or send a private reply."
              },
              "response": []
            },
            {
              "name": "POST /v1/posts/{postId}/threads/{threadId}/replies",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId/threads/:threadId/replies",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId",
                    "threads",
                    ":threadId",
                    "replies"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "threadId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Publish comments, reply to threads, or send a private reply."
              },
              "response": []
            },
            {
              "name": "POST /v1/posts/{postId}/threads/{threadId}/private-replies",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId/threads/:threadId/private-replies",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId",
                    "threads",
                    ":threadId",
                    "private-replies"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "threadId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Publish comments, reply to threads, or send a private reply."
              },
              "response": []
            },
            {
              "name": "POST /v1/posts/{postId}/threads/{threadId}/send-to-agent",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId/threads/:threadId/send-to-agent",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId",
                    "threads",
                    ":threadId",
                    "send-to-agent"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "threadId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Publish comments, reply to threads, or send a private reply."
              },
              "response": []
            },
            {
              "name": "Moderate comments",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/posts/:postId/comments/:commentId/moderation",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "posts",
                    ":postId",
                    "comments",
                    ":commentId",
                    "moderation"
                  ],
                  "variable": [
                    {
                      "key": "postId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "commentId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Moderate comments at Meta and in the Platica inbox.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"action\": \"hide\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Cases",
          "item": [
            {
              "name": "List cases",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/cases",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "cases"
                  ]
                },
                "description": "Returns the workspace's cases, newest first, with filters by status, escalation, contact, conversation, comment thread, owner and priority."
              },
              "response": []
            },
            {
              "name": "Open a case",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/cases",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "cases"
                  ]
                },
                "description": "Opens a case or returns the existing case and any missing data.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"escalationId\": \"Et7hQ2mVx9LpRk3s\",\n  \"conversationId\": \"Cv8hN2lP4qR6sT0u\",\n  \"summary\": \"Asks to fix the tax ID on the invoice for order 48213.\",\n  \"fields\": { \"order_number\": \"48213\", \"tax_id\": \"ACME010101AB1\" }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Get a case",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/cases/:caseId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "cases",
                    ":caseId"
                  ],
                  "variable": [
                    {
                      "key": "caseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Returns a case by its id, with its complete log."
              },
              "response": []
            },
            {
              "name": "Update a case",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/cases/:caseId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "cases",
                    ":caseId"
                  ],
                  "variable": [
                    {
                      "key": "caseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Change the priority, owners, data or summary of an open case.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"priority\": \"high\",\n  \"assigneeIds\": [\"billing@acme.com\", \"Us2qW4eR6tY8uI0o\"],\n  \"fields\": { \"email\": \"payments@example.com\" }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Take a case",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/cases/:caseId/accept",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "cases",
                    ":caseId",
                    "accept"
                  ],
                  "variable": [
                    {
                      "key": "caseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Put a person in charge of a case. The conversation moves to that person.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"userId\": \"support@acme.com\",\n  \"notifyCustomer\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Add a note",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/cases/:caseId/notes",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "cases",
                    ":caseId",
                    "notes"
                  ],
                  "variable": [
                    {
                      "key": "caseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Add a note to the log of an open case.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"text\": \"The customer sent a photo of their tax certificate. The tax ID matches.\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Close a case",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/cases/:caseId/close",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "cases",
                    ":caseId",
                    "close"
                  ],
                  "variable": [
                    {
                      "key": "caseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Close a case with its reason. If it was the last one open, the conversation can go back to the agent.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"reason\": \"resolved\",\n  \"note\": \"The invoice was reissued with the correct tax ID.\",\n  \"returnToAgent\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Get the event log",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/cases/:caseId/events",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "cases",
                    ":caseId",
                    "events"
                  ],
                  "variable": [
                    {
                      "key": "caseId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Returns a case's log, from the oldest event to the newest."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Escalations",
          "item": [
            {
              "name": "List escalations",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/escalations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "escalations"
                  ]
                },
                "description": "Returns the workspace's escalations, the active ones or the archived ones too, or only the ones you ask for by id."
              },
              "response": []
            },
            {
              "name": "Create an escalation",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/escalations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "escalations"
                  ]
                },
                "description": "Create an escalation in the workspace library. Then connect it to the agents that can use it.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Invoice error\",\n  \"description\": \"The customer says their invoice has a wrong detail (tax ID, company name or amount) and asks to fix it.\",\n  \"prefix\": \"INV\",\n  \"color\": \"#2563EB\",\n  \"fields\": [\n    { \"key\": \"order_number\", \"label\": \"Order number\", \"kind\": \"text\", \"required\": true },\n    { \"key\": \"tax_id\", \"label\": \"Correct tax ID\", \"kind\": \"text\", \"required\": true },\n    { \"key\": \"email\", \"label\": \"Email for the invoice\", \"kind\": \"email\", \"customFieldId\": \"billing_email\" }\n  ],\n  \"assignment\": { \"mode\": \"contact_owner\", \"userIds\": [\"billing@acme.com\"] },\n  \"agent\": {\n    \"keepReplying\": false,\n    \"waitMessage\": \"I passed your case to the billing team. They will write to you as soon as they can.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Get an escalation",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/escalations/:escalationId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "escalations",
                    ":escalationId"
                  ],
                  "variable": [
                    {
                      "key": "escalationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Retrieves escalation settings, assignment and automatic closing periods."
              },
              "response": []
            },
            {
              "name": "Edit an escalation",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/escalations/:escalationId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "escalations",
                    ":escalationId"
                  ],
                  "variable": [
                    {
                      "key": "escalationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Change an escalation. It applies immediately to every agent that uses it and does not touch open cases.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"defaultPriority\": \"high\",\n  \"lifecycle\": { \"inactivityCloseHours\": 48, \"maxOpenDays\": 7, \"untakenDiscardHours\": 48 }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Archive an escalation",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/escalations/:escalationId/archive",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "escalations",
                    ":escalationId",
                    "archive"
                  ],
                  "variable": [
                    {
                      "key": "escalationId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Archive an escalation. Agents stop using it and no new cases are opened from it; the open ones stay open.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": \"Et7hQ2mVx9LpRk3s\",\n    \"workspaceId\": \"Wk5rT8yUi2OpAs4d\",\n    \"name\": \"Invoice error\",\n    \"description\": \"The customer says their invoice has a wrong detail (tax ID, company name or amount) and asks to fix it.\",\n    \"prefix\": \"INV\",\n    \"color\": \"#2563EB\",\n    \"fields\": [\n      {\"key\": \"order_number\", \"label\": \"Order number\", \"kind\": \"text\", \"required\": true, \"customFieldId\": null, \"sync\": \"fill_empty\"}\n    ],\n    \"defaultPriority\": \"high\",\n    \"assignment\": {\"mode\": \"contact_owner\", \"userIds\": [], \"userEmails\": []},\n    \"agent\": {\"keepReplying\": false, \"canClose\": false, \"waitMessage\": null},\n    \"lifecycle\": {\"inactivityCloseHours\": 48, \"maxOpenDays\": 7, \"untakenDiscardHours\": 72},\n    \"allowManual\": true,\n    \"status\": \"archived\",\n    \"createdAt\": \"2026-11-10T16:20:00.000Z\",\n    \"createdBy\": {\"kind\": \"api\", \"id\": \"Ak7Pz2Lm9Qx4Wc6e\"},\n    \"updatedAt\": \"2026-11-12T18:02:00.000Z\",\n    \"updatedBy\": {\"kind\": \"api\", \"id\": \"Ak7Pz2Lm9Qx4Wc6e\"},\n    \"archivedAt\": \"2026-11-12T18:02:00.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "Contacts and campaigns",
      "item": [
        {
          "name": "Contacts",
          "item": [
            {
              "name": "List contacts",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/clients",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "clients"
                  ]
                },
                "description": "Get the list of contacts of all your workspaces, with pagination and filtering options."
              },
              "response": []
            },
            {
              "name": "Search contacts",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/clients/search",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "clients",
                    "search"
                  ]
                },
                "description": "Search contacts by name, phone number or email, with filters, and use the full result in a campaign or to tag them.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"message\": \"312 contacts found. Page 1 of 13 (25 results).\",\n    \"totalFound\": 312,\n    \"results\": [\n      {\n        \"id\": \"c_8fK2pQx7\",\n        \"name\": \"Ana\",\n        \"phoneNumber\": \"5215512345678\",\n        \"email\": \"ana@acme.com\",\n        \"tags\": [\"vip\"],\n        \"whatsappStatus\": \"active\",\n        \"customFields\": { \"city\": \"CDMX\" }\n      }\n    ],\n    \"pagination\": { \"currentPage\": 1, \"totalPages\": 13, \"perPage\": 25, \"totalResults\": 312, \"hasNextPage\": true, \"hasPreviousPage\": false },\n    \"searchId\": \"srch_4f9a2c\",\n    \"searchExpiresAt\": \"2026-11-24T06:00:00.000Z\",\n    \"searchCachedHits\": 312\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Get a contact",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/clients/:id",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "clients",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Get the detailed information of a specific contact."
              },
              "response": []
            },
            {
              "name": "Create a contact",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/clients",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "clients"
                  ]
                },
                "description": "Create a new contact in the system.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Ana\",\n  \"phoneNumber\": \"524491234567\",\n  \"email\": \"ana@example.com\",\n  \"tags\": [\"vip\"],\n  \"customFields\": {\n    \"plate\": \"ABC123\",\n    \"reception_id\": \"REC001\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update a contact",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/clients/:id",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "clients",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Update the information of a specific contact.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Ana\",\n  \"email\": \"ana@example.com\",\n  \"tags\": [\"vip\"],\n  \"customFields\": {\n    \"plate\": \"ABC123\",\n    \"reception_id\": \"REC001\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a contact",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/clients/:id",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "clients",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete a specific contact from the system."
              },
              "response": []
            },
            {
              "name": "List a contact's conversations",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/clients/:clientId/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "clients",
                    ":clientId",
                    "conversations"
                  ],
                  "variable": [
                    {
                      "key": "clientId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Get all the conversations of a contact across all their channels and agents."
              },
              "response": []
            },
            {
              "name": "Moderate a contact",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/clients/:id/moderation",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "clients",
                    ":id",
                    "moderation"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Block, unblock or reset a contact's moderation strikes in a single call.",
                "body": {
                  "mode": "raw",
                  "raw": "{ \"status\": \"blocked\", \"reason\": \"reported_abuse\" }",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Tag contacts",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/clients/tags",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "clients",
                    "tags"
                  ]
                },
                "description": "Add or remove tags on many contacts at once, by id, phone number or the result of a search.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"operation\": \"add\",\n    \"tags\": [\"spring_sale\"],\n    \"updatedCount\": 310,\n    \"unchangedCount\": 2,\n    \"notFound\": []\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Custom fields",
          "item": [
            {
              "name": "List custom fields",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/custom-fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "custom-fields"
                  ]
                },
                "description": "Returns the list of custom fields configured for your customers in a workspace."
              },
              "response": []
            },
            {
              "name": "Create a custom field",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/custom-fields",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "custom-fields"
                  ]
                },
                "description": "Create a new custom field for the contacts in your workspace.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Membership level\",\n  \"type\": \"text\",\n  \"description\": \"Current membership type of the customer\",\n  \"automatic\": true,\n  \"overwritable\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update a custom field",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/custom-fields/:fieldId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "custom-fields",
                    ":fieldId"
                  ],
                  "variable": [
                    {
                      "key": "fieldId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Updates the editable properties of a custom field.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"description\": \"Current membership type of the customer\",\n  \"automatic\": true,\n  \"overwritable\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a custom field",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/custom-fields/:fieldId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "custom-fields",
                    ":fieldId"
                  ],
                  "variable": [
                    {
                      "key": "fieldId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete an existing custom field and remove its value from every contact in the workspace."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Tags",
          "item": [
            {
              "name": "List tags",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tags",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tags"
                  ]
                },
                "description": "Returns the list of tags in a workspace."
              },
              "response": []
            },
            {
              "name": "Create a tag",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tags",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tags"
                  ]
                },
                "description": "Create a new tag in your workspace.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"VIP\",\n  \"criteria\": \"Apply this tag to customers with a high purchase volume.\",\n  \"automatic\": true,\n  \"owners\": [\"support@acme.com\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update a tag",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/tags/:tagId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tags",
                    ":tagId"
                  ],
                  "variable": [
                    {
                      "key": "tagId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Updates the tag fields you send.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"criteria\": \"Apply this tag to customers with an active premium membership.\",\n  \"automatic\": true,\n  \"owners\": [\"support@acme.com\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a tag",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/tags/:tagId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "tags",
                    ":tagId"
                  ],
                  "variable": [
                    {
                      "key": "tagId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Delete an existing tag."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Campaigns",
          "item": [
            {
              "name": "List campaigns",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns"
                  ]
                },
                "description": "List active workspace campaigns, page by page."
              },
              "response": []
            },
            {
              "name": "Get a campaign",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a campaign and its template."
              },
              "response": []
            },
            {
              "name": "Create a campaign",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns"
                  ]
                },
                "description": "Create a new campaign in your workspace.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"title\": \"Summer promo 2026\",\n  \"category\": \"marketing\",\n  \"platform\": \"whatsapp\",\n  \"templateName\": \"summer_promo_2026\",\n  \"owners\": [\"marketing@acme.com\", \"crm@acme.com\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Update a campaign",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Change only the campaign fields you send.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"title\": \"Summer promo 2025 - Updated\",\n  \"category\": \"marketing\",\n  \"platform\": \"whatsapp\",\n  \"templateName\": \"summer_promo_v2\",\n  \"owners\": [\"marketing@acme.com\"]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a campaign",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Mark a campaign as deleted."
              },
              "response": []
            },
            {
              "name": "POST /v1/campaigns/{campaignId}/send/preview",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId/send/preview",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId",
                    "send",
                    "preview"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Preview a campaign and confirm the send."
              },
              "response": []
            },
            {
              "name": "POST /v1/campaigns/{campaignId}/send",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId/send",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId",
                    "send"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Preview a campaign and confirm the send."
              },
              "response": []
            },
            {
              "name": "GET /v1/campaigns/{campaignId}/goals",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId/goals",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId",
                    "goals"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Define when a campaign conversation meets a goal."
              },
              "response": []
            },
            {
              "name": "POST /v1/campaigns/{campaignId}/goals",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId/goals",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId",
                    "goals"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Define when a campaign conversation meets a goal."
              },
              "response": []
            },
            {
              "name": "PATCH /v1/campaigns/{campaignId}/goals/{goalId}",
              "request": {
                "method": "PATCH",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId/goals/:goalId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId",
                    "goals",
                    ":goalId"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "goalId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Define when a campaign conversation meets a goal."
              },
              "response": []
            },
            {
              "name": "GET /v1/campaigns/{campaignId}/funnel",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId/funnel",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId",
                    "funnel"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a campaign funnel, report, and recipient export."
              },
              "response": []
            },
            {
              "name": "GET /v1/campaigns/{campaignId}/report",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId/report",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId",
                    "report"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a campaign funnel, report, and recipient export."
              },
              "response": []
            },
            {
              "name": "POST /v1/campaigns/{campaignId}/runs/{runId}/export",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/campaigns/:campaignId/runs/:runId/export",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "campaigns",
                    ":campaignId",
                    "runs",
                    ":runId",
                    "export"
                  ],
                  "variable": [
                    {
                      "key": "campaignId",
                      "value": "",
                      "type": "string"
                    },
                    {
                      "key": "runId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a campaign funnel, report, and recipient export."
              },
              "response": []
            },
            {
              "name": "Audience",
              "item": [
                {
                  "name": "Get the audience",
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/campaigns/:campaignId/audience",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "campaigns",
                        ":campaignId",
                        "audience"
                      ],
                      "variable": [
                        {
                          "key": "campaignId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Read the contacts in a campaign audience, page by page."
                  },
                  "response": []
                },
                {
                  "name": "Add contacts to the audience",
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/campaigns/:campaignId/audience",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "campaigns",
                        ":campaignId",
                        "audience"
                      ],
                      "variable": [
                        {
                          "key": "campaignId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Add contacts to a campaign by phone, search, tag, or ID.",
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"clients\": [\n    { \"phoneNumber\": \"521234567890\", \"name\": \"John Smith\" },\n    { \"phoneNumber\": \"521234567891\", \"name\": \"Maria Garcia\" }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "response": []
                },
                {
                  "name": "DELETE /v1/campaigns/{campaignId}/audience/{phoneNumber}",
                  "request": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/campaigns/:campaignId/audience/:phoneNumber",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "campaigns",
                        ":campaignId",
                        "audience",
                        ":phoneNumber"
                      ],
                      "variable": [
                        {
                          "key": "campaignId",
                          "value": "",
                          "type": "string"
                        },
                        {
                          "key": "phoneNumber",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Remove contacts from a campaign by phone, search, or ID."
                  },
                  "response": []
                },
                {
                  "name": "POST /v1/campaigns/{campaignId}/audience/remove",
                  "request": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/campaigns/:campaignId/audience/remove",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "campaigns",
                        ":campaignId",
                        "audience",
                        "remove"
                      ],
                      "variable": [
                        {
                          "key": "campaignId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Remove contacts from a campaign by phone, search, or ID."
                  },
                  "response": []
                },
                {
                  "name": "Clear the audience",
                  "request": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{base_url}}/v1/campaigns/:campaignId/audience",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "campaigns",
                        ":campaignId",
                        "audience"
                      ],
                      "variable": [
                        {
                          "key": "campaignId",
                          "value": "",
                          "type": "string"
                        }
                      ]
                    },
                    "description": "Clear a campaign audience without deleting its contacts."
                  },
                  "response": []
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Webhooks and account",
      "item": [
        {
          "name": "Webhooks",
          "item": [
            {
              "name": "List events",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/webhooks/events",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks",
                    "events"
                  ]
                },
                "description": "List the 29 events available for webhook subscriptions."
              },
              "response": []
            },
            {
              "name": "Create a webhook",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/webhooks",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks"
                  ]
                },
                "description": "Create a webhook, store its credentials, and verify the destination.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Notifications webhook\",\n  \"url\": \"https://example.com/webhook\",\n  \"events\": [\n    \"conversation.created\",\n    \"conversation.status.updated\",\n    \"message.created\",\n    \"client.created\",\n    \"client.customFields.updated\"\n  ],\n  \"active\": true,\n  \"secret\": \"whsec_test_example\",\n  \"headers\": {\n    \"Authorization\": \"Bearer sk_test_example\",\n    \"Custom-Header\": \"custom value\"\n  },\n  \"autoPause\": { \"mode\": \"time\", \"hours\": 24 }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "List webhooks",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/webhooks",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks"
                  ]
                },
                "description": "List the webhooks configured in the workspace."
              },
              "response": []
            },
            {
              "name": "Get a webhook",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/webhooks/:webhookId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks",
                    ":webhookId"
                  ],
                  "variable": [
                    {
                      "key": "webhookId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Read a webhook, its credential states, and pending steps."
              },
              "response": []
            },
            {
              "name": "Update a webhook",
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/webhooks/:webhookId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks",
                    ":webhookId"
                  ],
                  "variable": [
                    {
                      "key": "webhookId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Update a webhook, pause deliveries, or reactivate them.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Updated webhook\",\n  \"events\": [\n    \"conversation.created\",\n    \"conversation.status.updated\",\n    \"conversation.operation.updated\",\n    \"message.created\"\n  ],\n  \"expectedVersion\": 3\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Test a webhook",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/webhooks/:webhookId/test",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks",
                    ":webhookId",
                    "test"
                  ],
                  "variable": [
                    {
                      "key": "webhookId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Verify a webhook destination and activate it if it responds.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"success\",\n  \"message\": \"Webhook verified and active\",\n  \"data\": {\n    \"id\": \"webhook_abc123\",\n    \"name\": \"Notifications webhook\",\n    \"url\": \"https://example.com/webhook\",\n    \"events\": [\n      \"conversation.created\",\n      \"message.created\"\n    ],\n    \"active\": true,\n    \"hasSecret\": true,\n    \"headers\": {\n      \"Custom-Header\": \"custom value\"\n    },\n    \"createdAt\": \"2026-10-28T12:05:00.000Z\",\n    \"updatedAt\": \"2026-10-28T12:20:41.000Z\",\n    \"creationDate\": \"2026-10-28T12:05:00.000Z\",\n    \"lastUpdate\": \"2026-10-28T12:20:41.000Z\",\n    \"lastDeliveryAt\": null,\n    \"lastDeliveryStatus\": null,\n    \"lastDeliveryCode\": null,\n    \"lastDeliveryError\": null,\n    \"status\": \"enabled\",\n    \"version\": 4,\n    \"verified\": true,\n    \"secrets\": [\n      {\n        \"slot\": \"webhook.secret\",\n        \"state\": \"authorized\",\n        \"secretId\": \"a1c3e5f7092b4d6f8a0c2e4f6b8d0a1c3e5f7092b4d6f8a0c2e4f6b8d0a1c3e5\"\n      }\n    ],\n    \"activation\": { \"active\": true },\n    \"workspaceId\": \"ws_123\",\n    \"nextStep\": \"Active. It delivers: conversation.created, message.created.\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Bind secrets",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/webhooks/:webhookId/secrets",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks",
                    ":webhookId",
                    "secrets"
                  ],
                  "variable": [
                    {
                      "key": "webhookId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Bind existing secrets to webhook credentials.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"slot\": \"webhook.secret\",\n  \"secretId\": \"a1c3e5f7092b4d6f8a0c2e4f6b8d0a1c3e5f7092b4d6f8a0c2e4f6b8d0a1c3e5\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "response": []
            },
            {
              "name": "Delete a webhook",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/webhooks/:webhookId",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "webhooks",
                    ":webhookId"
                  ],
                  "variable": [
                    {
                      "key": "webhookId",
                      "value": "",
                      "type": "string"
                    }
                  ]
                },
                "description": "Permanently delete a webhook without deleting its secrets."
              },
              "response": []
            }
          ]
        },
        {
          "name": "Usage",
          "item": [
            {
              "name": "Get the billing period",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/usage/period",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "usage",
                    "period"
                  ]
                },
                "description": "Read the billing period, plan, and included credits."
              },
              "response": []
            },
            {
              "name": "Get the usage summary",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/usage/summary",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "usage",
                    "summary"
                  ]
                },
                "description": "Read a workspace summary of messages, credits, conversations, and autonomy."
              },
              "response": []
            },
            {
              "name": "Get message usage",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/usage/messages",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "usage",
                    "messages"
                  ]
                },
                "description": "Read totals and daily series for billable and non-billable messages."
              },
              "response": []
            },
            {
              "name": "Get conversation usage",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/usage/conversations",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "usage",
                    "conversations"
                  ]
                },
                "description": "Read conversation and autonomy metrics by platform, agent, channel, or tag."
              },
              "response": []
            },
            {
              "name": "Get usage by actor",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/v1/usage/actors",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "usage",
                    "actors"
                  ]
                },
                "description": "Read messages grouped by who generated them."
              },
              "response": []
            }
          ]
        },
        {
          "name": "List workspaces",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/v1/workspaces",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "workspaces"
              ]
            },
            "description": "Retrieves the workspaces available to your credential and their permissions."
          },
          "response": []
        },
        {
          "name": "GET /v1/docs/search",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/v1/docs/search",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "docs",
                "search"
              ]
            },
            "description": "Search and read the official Platica documentation. The same calls as the search_product_docs and get_product_doc MCP tools."
          },
          "response": []
        },
        {
          "name": "GET /v1/docs/{id}",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/v1/docs/:id",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "docs",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "type": "string"
                }
              ]
            },
            "description": "Search and read the official Platica documentation. The same calls as the search_product_docs and get_product_doc MCP tools."
          },
          "response": []
        }
      ]
    }
  ]
}
