Skip to content
Fourohtwo

Use when an agent must share a private file for a limited time

1gateway.dev/v1/files/sign

Use when an agent must share a private file for a limited time. Pay from the wallet that uploaded it (Base or Monad USDC). Input: id, expires_in seconds (60-604800, default 3600, capped at the file's expiry). Output: a signed https://1storage.dev link anyone can use until it expires or the file is deleted. Missing file: 404, not charged. Example: ?id=0123456789abcdef0123456789abcdef&expires_in=360

BaseMonadSolanaAnswering
POSThttps://1gateway.dev/v1/files/sign

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/files/sign", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"expires_in":3600,"id":"0123456789abcdef0123456789abcdef"}),
});
console.log(await res.json());

Example input

{
  "expires_in": 3600,
  "id": "0123456789abcdef0123456789abcdef"
}

More from Agent File StorageProvider status