{
  "components": {
    "responses": {
      "RateLimited": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Envelope"
            }
          }
        },
        "description": "Rate limit exceeded. Inspect the `X-RateLimit-*` and `Retry-After`\nresponse headers to back off correctly.\n",
        "headers": {
          "Retry-After": {
            "schema": {
              "description": "Seconds until the caller can safely retry.",
              "type": "integer"
            }
          },
          "X-RateLimit-Limit": {
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Remaining": {
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Reset": {
            "schema": {
              "description": "Unix timestamp (seconds) when the bucket clears.",
              "type": "integer"
            }
          }
        }
      },
      "Unauthorized": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Envelope"
            }
          }
        },
        "description": "Missing or invalid bearer."
      },
      "Validation": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Envelope"
            }
          }
        },
        "description": "Request failed validation."
      }
    },
    "schemas": {
      "AgentProfile": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "did": {
            "description": "Canonical agent DID, e.g. `agent:retransfer.com/u/\u003cuuid\u003e`.",
            "type": "string"
          },
          "inbox_url": {
            "description": "Webhook delivery target for Phase 5 agent-to-agent transfers.",
            "format": "uri",
            "type": "string"
          },
          "manifest_url": {
            "format": "uri",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "signing_key_jwk": {
            "description": "Cached JWK. Verify signed requests against the original key, not this copy, if you can refetch the manifest cheaply.",
            "type": "object"
          },
          "type": {
            "enum": [
              "agent"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiError": {
        "properties": {
          "code": {
            "description": "Machine-readable identifier (e.g. RATE_LIMITED, OTP_INVALID).",
            "type": "string"
          },
          "details": {
            "additionalProperties": true,
            "type": "object"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "Envelope": {
        "properties": {
          "data": {
            "nullable": true
          },
          "error": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiError"
              }
            ],
            "nullable": true
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "error"
        ],
        "type": "object"
      },
      "File": {
        "properties": {
          "folder_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "mime": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "size": {
            "format": "int64",
            "type": "integer"
          },
          "status": {
            "enum": [
              "pending",
              "ready",
              "deleted"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "Folder": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parent_id": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "TokenPair": {
        "properties": {
          "access_token": {
            "type": "string"
          },
          "refresh_token": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "access_token",
          "refresh_token"
        ],
        "type": "object"
      },
      "Transfer": {
        "properties": {
          "access_control": {
            "enum": [
              "public",
              "email",
              "password",
              "private"
            ],
            "type": "string"
          },
          "downloads": {
            "type": "integer"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "link_url": {
            "format": "uri",
            "type": "string"
          },
          "message": {
            "nullable": true,
            "type": "string"
          },
          "previews": {
            "type": "integer"
          },
          "recipients": {
            "items": {
              "properties": {
                "downloaded_at": {
                  "format": "date-time",
                  "nullable": true,
                  "type": "string"
                },
                "email": {
                  "format": "email",
                  "type": "string"
                },
                "previewed_at": {
                  "format": "date-time",
                  "nullable": true,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "title": {
            "nullable": true,
            "type": "string"
          },
          "token": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "User": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "email": {
            "format": "email",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "storage_quota_bytes": {
            "format": "int64",
            "type": "integer"
          },
          "storage_used_bytes": {
            "format": "int64",
            "type": "integer"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "contact": {
      "name": "ReTransfer",
      "url": "https://retransfer.com"
    },
    "description": "Encrypted file transfer for humans and AI agents. Send files via\nshort-lived, signed links; recipients verify by email OTP or open the\npublic link directly. Browser-side AES-256-GCM, at-rest server-side\nencryption, automatic expiry.\n\nAll endpoints return a `{ data, error, request_id }` envelope. On success\n`error` is null; on failure `data` is null and `error.code` carries a\nstable machine-readable identifier (e.g. `OTP_INVALID`, `RATE_LIMITED`).\n\nRate-limited routes publish `X-RateLimit-Limit`, `X-RateLimit-Remaining`,\n`X-RateLimit-Reset` (unix seconds), and `Retry-After` on 429.\n",
    "title": "ReTransfer API",
    "version": "0.18.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/agents/u/{id}": {
      "get": {
        "description": "Public, unauthenticated. Returns the agent's manifest URL, inbox\nURL, and cached signing JWK so a remote can verify a signed request\nattributed to this DID. Returns 404 for unknown UUIDs and for\nUUIDs that exist as human accounts — we don't leak which UUIDs\nare taken.\n",
        "parameters": [
          {
            "description": "The UUID portion of the DID `agent:\u003chost\u003e/u/\u003cuuid\u003e`.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/AgentProfile"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Public agent profile."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            },
            "description": "No agent registered for that id."
          }
        },
        "security": [],
        "summary": "Resolve an agent DID to its public profile",
        "tags": [
          "agents"
        ]
      }
    },
    "/auth/logout": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "refresh_token": {
                    "type": "string"
                  }
                },
                "required": [
                  "refresh_token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            },
            "description": "Refresh token revoked. Existing access tokens remain valid until expiry."
          }
        },
        "security": [],
        "summary": "Revoke a refresh token",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/otp/request": {
      "post": {
        "description": "Rate-limited: 5 per email per 15min and 10 per IP per 15min. Idempotent\nwithin the window — repeated requests don't open a second code.\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "email": {
                    "format": "email",
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            },
            "description": "Code dispatched. Body is the standard envelope with empty data."
          },
          "400": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [],
        "summary": "Send a 6-digit OTP to the caller's email",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/otp/verify": {
      "post": {
        "description": "Verifying for the first time auto-creates a free ReTransfer account\nbound to the email. The response carries an access + refresh token\nand the user record. Access token TTL is configured server-side\n(default 15 min); refresh tokens rotate on every use.\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "pattern": "^[0-9]{6}$",
                    "type": "string"
                  },
                  "email": {
                    "format": "email",
                    "type": "string"
                  }
                },
                "required": [
                  "email",
                  "code"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/TokenPair"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Token pair issued."
          },
          "400": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [],
        "summary": "Exchange an OTP code for a token pair",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/refresh": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "refresh_token": {
                    "type": "string"
                  }
                },
                "required": [
                  "refresh_token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/TokenPair"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "New token pair issued; the old refresh token is invalidated."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [],
        "summary": "Rotate an access token using a refresh token",
        "tags": [
          "auth"
        ]
      }
    },
    "/files/init": {
      "post": {
        "description": "Rate-limited: 60 inits per minute per bearer. Upload directly to the\nreturned `upload_url` with a PUT request, then call\n`/files/{id}/complete` to mark the file ready.\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "folder_id": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "size": {
                    "description": "Plaintext size in bytes (server adjusts for at-rest envelope).",
                    "format": "int64",
                    "type": "integer"
                  }
                },
                "required": [
                  "folder_id",
                  "name",
                  "size",
                  "mime"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "file": {
                              "$ref": "#/components/schemas/File"
                            },
                            "upload_url": {
                              "format": "uri",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "File row reserved and presigned URL issued."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "summary": "Reserve a file slot and obtain a presigned upload URL",
        "tags": [
          "files"
        ]
      }
    },
    "/files/{id}/complete": {
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            },
            "description": "File marked ready; at-rest re-encryption is kicked off asynchronously."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "summary": "Mark a previously uploaded file as ready",
        "tags": [
          "files"
        ]
      }
    },
    "/folders": {
      "get": {
        "parameters": [
          {
            "description": "Parent folder ID. Omit (or pass null) for the root level.",
            "in": "query",
            "name": "parent",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "$ref": "#/components/schemas/Folder"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Folders directly under the requested parent."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "summary": "List the caller's folders",
        "tags": [
          "folders"
        ]
      },
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "parent_id": {
                    "format": "uuid",
                    "nullable": true,
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/Folder"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Folder created."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            },
            "description": "A folder with the same name already exists under that parent."
          }
        },
        "summary": "Create a folder",
        "tags": [
          "folders"
        ]
      }
    },
    "/me": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/User"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The current user record."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "summary": "Return the authenticated user's account",
        "tags": [
          "me"
        ]
      }
    },
    "/me/agent": {
      "post": {
        "description": "Fetches the manifest at `agent_url`, validates the JWK + DID, and\nstamps the agent fields on the caller's user row. The manifest's\n`did` must match the canonical `agent:\u003chost\u003e/u/\u003cyour-uuid\u003e`.\nRe-call to rotate the cached JWK if your signing key changes.\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "agent_inbox_url": {
                    "description": "HTTPS URL Phase 5 webhooks will be POSTed to.",
                    "format": "uri",
                    "type": "string"
                  },
                  "agent_url": {
                    "description": "HTTPS URL to your agent manifest. SSRF-checked.",
                    "format": "uri",
                    "type": "string"
                  }
                },
                "required": [
                  "agent_url",
                  "agent_inbox_url"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "allOf": [
                            {
                              "$ref": "#/components/schemas/AgentProfile"
                            },
                            {
                              "properties": {
                                "webhook_secret": {
                                  "description": "One-time URL-safe base64 secret. Only present on first registration.",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Agent registered (or rotated). The response on *first*\nregistration includes `webhook_secret` — a one-time HMAC\nshared secret receivers use to verify Phase 5 webhooks. Capture\nit then; re-registration will not echo it.\n"
          },
          "400": {
            "$ref": "#/components/responses/Validation"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "summary": "Upgrade the caller's account to an agent identity",
        "tags": [
          "agents"
        ]
      }
    },
    "/transfers": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "$ref": "#/components/schemas/Transfer"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "All transfers owned by the caller, newest first."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "summary": "List transfers created by the caller",
        "tags": [
          "transfers"
        ]
      }
    },
    "/transfers/init": {
      "post": {
        "description": "Rate-limited: 30 inits per minute per bearer. The draft must be\nfinalized via `/transfers/{id}/finalize` before recipients can open\nthe link.\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "file_ids": {
                    "items": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "message": {
                    "maxLength": 2000,
                    "type": "string"
                  },
                  "title": {
                    "maxLength": 120,
                    "type": "string"
                  }
                },
                "required": [
                  "file_ids"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/Transfer"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Draft transfer created."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "summary": "Create a draft transfer from one or more uploaded files",
        "tags": [
          "transfers"
        ]
      }
    },
    "/transfers/{id}": {
      "delete": {
        "description": "Revokes the share link immediately. Recipients lose access on their\nnext request. The files themselves are deleted in the background by\nthe cleanup loop.\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            },
            "description": "Transfer revoked."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "summary": "Revoke a transfer",
        "tags": [
          "transfers"
        ]
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/Transfer"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Transfer detail."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            },
            "description": "Transfer not found or owned by another user."
          }
        },
        "summary": "Get a transfer by id (sender view, incl. per-recipient activity)",
        "tags": [
          "transfers"
        ]
      }
    },
    "/transfers/{id}/finalize": {
      "post": {
        "description": "Rate-limited: 30 finalize calls per minute per bearer.\nSets the access mode (public / email-OTP / password / private),\nexpiration, recipient list, and optional encryption envelope. After\nthis call the link is live; recipients can open it via /t/{token}.\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "access_control": {
                    "enum": [
                      "public",
                      "email",
                      "password",
                      "private"
                    ],
                    "type": "string"
                  },
                  "expiration_days": {
                    "enum": [
                      3,
                      7,
                      30,
                      90
                    ],
                    "type": "integer"
                  },
                  "message": {
                    "nullable": true,
                    "type": "string"
                  },
                  "password": {
                    "description": "Required when `access_control` is `password`.",
                    "type": "string"
                  },
                  "recipients": {
                    "description": "Mix of email addresses and agent DIDs (Phase 5). An\nentry that matches `agent:\u003chost\u003e/u/\u003cuuid\u003e` is bound to\nthe corresponding agent account at finalize time and\nnotified via a signed webhook to its registered inbox\nURL instead of the email/OTP gate.\n",
                    "items": {
                      "description": "Either an RFC 5322 email or an agent DID.",
                      "type": "string"
                    },
                    "maxItems": 10,
                    "type": "array"
                  },
                  "title": {
                    "nullable": true,
                    "type": "string"
                  }
                },
                "required": [
                  "access_control",
                  "expiration_days"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/Transfer"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Transfer finalized; the response carries the share link."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "summary": "Finalize a draft and dispatch recipient notifications",
        "tags": [
          "transfers"
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "Production",
      "url": "https://api.retransfer.com/v1"
    },
    {
      "description": "Local development",
      "url": "http://localhost:8081/v1"
    }
  ],
  "tags": [
    {
      "description": "OTP-by-email sign-in flow. Agents that own an inbox can self-onboard.",
      "name": "auth"
    },
    {
      "description": "Caller's account.",
      "name": "me"
    },
    {
      "description": "User-owned folder tree (file organization).",
      "name": "folders"
    },
    {
      "description": "Upload registration, completion, and metadata.",
      "name": "files"
    },
    {
      "description": "Bundle of files shared with one or more recipients.",
      "name": "transfers"
    },
    {
      "description": "Agent identity (Phase 4). Upgrade a user to an autonomous agent that\ncan be addressed via a DID (agent:\u003chost\u003e/u/\u003cuuid\u003e) and resolved\npublicly. The cached signing key from the agent's manifest is what\nwe'll verify signed agent-to-agent requests against in Phase 5.\n",
      "name": "agents"
    }
  ]
}