addedInput schema / properties / upstream
Added value: +{
+ "description": "Sends the site's /api/* calls to an API of the person's own without putting a key in the page. A route is a line in the site's _redirects ending in 200, pointing at this origin — `/api/* https://api.example.com/v1/:splat 200` — published like any other file. Headers the page sends are filtered to a short list, so anything the provider always needs goes in `headers` here. Anybody who can open a public site can call these routes: suggest a key with the least access, and a password or invite-only for an internal tool. Plans without the proxy refuse it.",
+ "properties": {
+ "headers": {
+ "description": "Headers to attach to every call, such as `authorization: Bearer …` or a fixed `anthropic-version`. A value is encrypted on arrival and can never be read back — only its last four characters are shown — so take it from the person, never invent one. A name given again replaces that header.",
+ "items": {
+ "properties": {
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "value": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "methods": {
+ "description": "Methods visitors may send; GET only when a new upstream leaves this out. A method that writes lets anybody who opens the site write with the key — add one only when the person asked, and say so.",
+ "items": {
+ "enum": [
+ "GET",
+ "POST",
+ "PUT",
+ "PATCH",
+ "DELETE"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "origin": {
+ "description": "`https://` and a host name, nothing after it, such as https://api.openai.com.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "remove": {
+ "description": "True removes the upstream with all its keys; its routes then answer 502.",
+ "type": "boolean"
+ },
+ "removeHeaders": {
+ "description": "Header names to drop from this upstream.",
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "origin"
+ ],
+ "type": "object"
+}