# Vaaya File Upload from URL

> Vaaya File Upload from URL is a paid API for AI agents from vaaya.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Downloads a file from a given URL and uploads it into Vaaya's file storage, making it accessible for agent workflows

## Facts

- Endpoint: POST https://vaaya.ai/api/run/files/upload_from_url
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vaaya-file-upload-from-url-e30eda3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y8keOs7Liu9WlsNU5RhS5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability vaaya-file-upload-from-url-e30eda3f -d '<json body>'
```

Example prompt: Grab the PDF at https://example.com/reports/q4.pdf and upload it into Vaaya so my agent can reference it in the next step of the workflow.

## When to prefer this

Use this endpoint when you have a file hosted at a remote URL that needs to be ingested into Vaaya's ecosystem for use by downstream agent steps — particularly when building agent pipelines that need to reference, attach, or process external files without manually downloading and re-uploading them. Prefer this over generic cloud storage uploads when you're already working within the Vaaya agent platform and need the file immediately accessible to other Vaaya capabilities.

## Known failure modes

- Source URL is unreachable or returns a non-200 status — upload fails with a fetch error
- URL points to an unsupported file type or oversized file — rejected with a validation error
- Invalid or malformed URL provided — returns a bad request error
- Network timeout fetching the remote file — returns a timeout error
- Payment not included or insufficient — returns a 402 Payment Required error

## How this service works

Fetch a file from a public URL into your persistent Vaaya file library (server-side — no local download needed). Returns file_id and get_url. Max 100MB per file.

## Output

Returns a reference to the uploaded file within Vaaya's storage system, including a file ID or accessible URL that downstream agent steps can use to retrieve or process the file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "$schema": "http://json-schema.org/draft-07/schema#",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri"
      },
      "note": {
       "type": "string",
       "maxLength": 500
      },
      "tags": {
       "type": "array",
       "items": {
        "type": "string",
        "maxLength": 40,
        "minLength": 1
       },
       "maxItems": 10
      },
      "filename": {
       "type": "string",
       "maxLength": 200,
       "minLength": 1
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vaaya-file-upload-from-url-e30eda3f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vaaya.ai](https://www.zero.xyz/host/vaaya.ai/llms.txt)
