{
  "opencollection": "1.0.0",
  "info": {
    "name": "Fly.io Apps Extensions API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Extensions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Provision an extension resource",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{provider_base_url}/extensions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Called by Fly.io when a user provisions an extension via the flyctl CLI. The provider must create the requested resource and respond with its unique ID and a config object containing the environment variables to inject into the user's Fly App. Provisioning must complete within 5 seconds; if the resource takes longer to create, the provider should respond immediately and use the webhook endpoint to notify Fly.io when the resource becomes available."
        },
        {
          "info": {
            "name": "Get extension resource details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{provider_base_url}/extensions/:extension_id",
            "params": [
              {
                "name": "extension_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the extension resource, as returned by the provider."
              }
            ]
          },
          "docs": "Called by Fly.io to fetch the current status and usage information for a specific extension resource. This endpoint is used for polling when an extension is provisioned asynchronously and takes longer than 5 seconds to become ready."
        },
        {
          "info": {
            "name": "Update an extension resource",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{provider_base_url}/extensions/:extension_id",
            "params": [
              {
                "name": "extension_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the extension resource, as returned by the provider."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Called by Fly.io when a user updates the configuration of an extension resource, such as changing the region or plan. The provider applies the updated configuration and returns the updated resource details."
        },
        {
          "info": {
            "name": "Delete an extension resource",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{provider_base_url}/extensions/:extension_id",
            "params": [
              {
                "name": "extension_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the extension resource, as returned by the provider."
              }
            ]
          },
          "docs": "Called by Fly.io when a user removes an extension from their app. The provider should clean up all resources associated with this extension instance and remove the user's environment variables."
        }
      ]
    }
  ],
  "bundled": true
}