{
  "opencollection": "1.0.0",
  "info": {
    "name": "Letta Admin Environments API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Environments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Register Environment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.letta.com/v1/environments/register",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Register a new listener connection and get connectionId for WebSocket"
        },
        {
          "info": {
            "name": "Get Environment Connection",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.letta.com/v1/environments/:deviceId",
            "params": [
              {
                "name": "deviceId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a specific environment connection by deviceId"
        },
        {
          "info": {
            "name": "List Environment Connections",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.letta.com/v1/environments",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "after",
                "value": "",
                "type": "query"
              },
              {
                "name": "userId",
                "value": "",
                "type": "query"
              },
              {
                "name": "onlineOnly",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List all active environment connections for the organization"
        },
        {
          "info": {
            "name": "Send Message to Environment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.letta.com/v1/environments/:connectionId/messages",
            "params": [
              {
                "name": "connectionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a message to a specific environment connection"
        },
        {
          "info": {
            "name": "Delete Environment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.letta.com/v1/environments/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Removes environment from list of environments"
        }
      ]
    }
  ],
  "bundled": true
}