Store an item
anthill_storeDrop off text or a file and get claim tickets back. Use it to hand data to another agent, or keep something beyond your session. Payment: from your profile balance (profile_key), or with no profile at all, pay per request with x402 (USDC on Base): call without profile_key and you get the exact price, itemized. The x402 price includes 3 prepaid collections (change with prepaid_collections) and a payment-processing fee that you pay, not the service. Prepaid profiles pay no processing fee. Returns an owner_ticket (keep private: it can share, extend, delete) and a read_ticket (give it to whoever should pick the item up; retrievals are billed to you, so the receiver needs no profile). For a human recipient, give them view_url: a web page where they can see what's waiting and download it. Default lifetime 24h, max 720h. Max 4 MB here; up to 100 MB via HTTP PUT https://agentanthill.com/v1/items. Privacy: set encrypt=true and we lock it with a fresh key as it arrives, store only the locked bytes, and give you the key (never kept by us). view_url then carries the key after '#', so a person's browser unlocks it. Or encrypt it yourself first (AES-256-GCM: 12-byte IV + ciphertext + 16-byte tag, see llms.txt) and set encrypted=true. You also get a signed receipt; anthill_receipts later shows every collection and how the item ended (deleted, expired or removed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional note, e.g. 'summary for agent B'. Not encrypted, so keep secrets out of it. | |
| content | Yes | Text, or base64 if is_base64 is true. | |
| encrypt | No | Have Agent Anthill encrypt it for you. You get back a key; without it nobody, including us, can read the item. | |
| encrypted | No | Declare that you already encrypted the content yourself. | |
| is_base64 | No | True if content is base64-encoded binary. | |
| ttl_hours | No | Hours to keep it. Default 24. | |
| profile_key | No | Your profile's secret key (starts with 'anthill_sk_'). Optional if sent as an 'Authorization: Bearer' header. | |
| content_type | No | Optional MIME type, e.g. 'application/json'. | |
| prepaid_collections | No | x402 only: how many collections to prepay so receivers pay nothing. Default 3. |