Skip to content
Fourohtwo

Use when an agent must check a stored file

1gateway.dev/v1/files/info

Use when an agent must check a stored file. Pay from the wallet that uploaded it (USDC on any EVM network in the 402 quote). Input: id. Output: mime, size, sha256, filename, visibility, created and expiry times, and the url if public. Another wallet's or a missing file returns 404 and is not charged. Example: ?id=0123456789abcdef0123456789abcdef

BaseMonadPolygonArbitrumSolanaAnswering
GEThttps://1gateway.dev/v1/files/info

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://1gateway.dev/v1/files/info?id=0123456789abcdef0123456789abcdef");
console.log(await res.json());

Example input

{
  "id": "0123456789abcdef0123456789abcdef"
}

More from Agent File Storage