{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/putput-io/json-schema/putput-io-guest-token-response-schema.json",
  "title": "GuestTokenResponse",
  "description": "Response from creating a guest token.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/putput-io-openapi.json#/components/schemas/GuestTokenResponse",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "Bearer token starting with \"pp_\". Store securely -- it cannot be retrieved after creation."
    },
    "claim_url": {
      "type": "string",
      "format": "uri",
      "description": "URL where the user can claim (upgrade) the guest account by providing an email."
    },
    "limits": {
      "type": "object",
      "description": "Resource limits for this guest account.",
      "properties": {
        "storage_bytes": {
          "type": "integer",
          "description": "Maximum total storage in bytes (1073741824 = 1 GB)."
        },
        "max_file_size_bytes": {
          "type": "integer",
          "description": "Maximum size of a single file upload in bytes (104857600 = 100 MB)."
        },
        "max_files": {
          "type": "integer",
          "description": "Maximum number of files. -1 means unlimited."
        },
        "expires_at": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 datetime when the guest account expires."
        }
      },
      "required": [
        "storage_bytes",
        "max_file_size_bytes",
        "max_files",
        "expires_at"
      ]
    }
  },
  "required": [
    "token",
    "claim_url",
    "limits"
  ]
}