Use when an agent must publish or unpublish a stored file
Use when an agent must publish or unpublish a stored file. Pay from the wallet that uploaded it (USDC on any EVM network in the 402 quote). Input: id, visibility (public or private). Output: the file with its url if now public. Public files download from 1storage.dev without a signature; private ones need /v1/files/sign. Missing file: 404, not charged. Example: ?id=0123456789abcdef0123456789abcdef&visibility=public
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://1gateway.dev/v1/files/visibility
| Category | Market data |
|---|---|
| Provider host | 1gateway.dev |
| Networks | eip155:137, eip155:143, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"id": "0123456789abcdef0123456789abcdef",
"visibility": "public"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"id": {
"description": "File id returned by /v1/files/upload (owned by the paying wallet)",
"pattern": "^[0-9a-f]{32}$",
"type": "string"
},
"visibility": {
"description": "New visibility",
"enum": [
"private",
"public"
],
"type": "string"
}
},
"required": [
"id",
"visibility"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": true,
"properties": {
"createdAt": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"filename": {
"type": "string"
},
"id": {
"type": "string"
},
"mime": {
"type": "string"
},
"sha256": {
"type": "string"
},
"size": {
"type": "integer"
},
"status": {
"type": "string"
},
"url": {
"type": "string"
},
"visibility": {
"type": "string"
}
},
"required": [
"status",
"id",
"visibility",
"mime",
"size",
"sha256",
"filename",
"createdAt",
"expiresAt",
"url"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}