{
  "opencollection": "1.0.0",
  "info": {
    "name": "Alpic analytics environments API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "environments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create an environment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.alpic.ai/v1/environments",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an environment for a project"
        },
        {
          "info": {
            "name": "Get an environment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.alpic.ai/v1/environments/:environmentId",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get an environment by ID"
        },
        {
          "info": {
            "name": "Deploy an environment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.alpic.ai/v1/environments/:environmentId/deploy",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deploy an environment"
        },
        {
          "info": {
            "name": "Get logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.alpic.ai/v1/environments/:environmentId/logs",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path"
              },
              {
                "name": "since",
                "value": "",
                "type": "query"
              },
              {
                "name": "until",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "level",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              },
              {
                "name": "nextToken",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get logs for an environment"
        },
        {
          "info": {
            "name": "Get latest logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.alpic.ai/v1/environments/:environmentId/latest-logs",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "level",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get the N most recent logs for an environment"
        },
        {
          "info": {
            "name": "List environment variables",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.alpic.ai/v1/environments/:environmentId/environment-variables",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List all environment variables for an environment"
        },
        {
          "info": {
            "name": "Add environment variables",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.alpic.ai/v1/environments/:environmentId/environment-variables",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add one or more environment variables to an environment"
        },
        {
          "info": {
            "name": "Update an environment variable",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.alpic.ai/v1/environment-variables/:environmentVariableId",
            "params": [
              {
                "name": "environmentVariableId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an environment variable by ID"
        },
        {
          "info": {
            "name": "Delete an environment variable",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.alpic.ai/v1/environment-variables/:environmentVariableId",
            "params": [
              {
                "name": "environmentVariableId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete an environment variable by ID"
        },
        {
          "info": {
            "name": "Get playground configuration",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.alpic.ai/v1/environments/:environmentId/playground",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get the playground configuration for an environment"
        },
        {
          "info": {
            "name": "Update playground configuration",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.alpic.ai/v1/environments/:environmentId/playground",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the playground configuration for an environment. All fields are optional — only provided fields are updated."
        }
      ]
    }
  ],
  "bundled": true
}