Retrieve an item
anthill_retrievePick up an item with a ticket, a link, or a relay code (e.g. "amber-otter-mango-42", typed any way). No profile needed: the item's owner pays. Returns the content (text, or base64 for binary) and its sha256 fingerprint for verification, plus a signed receipt proving the collection. Encrypted items: pass the key (from the sender, or the part after '#key=' in view_url) to get the content unlocked; we use it for this request only. Without it you get the locked bytes as content_base64. Large items return a download_url instead. If the owner is out of credit, pass your own profile_key to pay, or pay this one collection with x402 (USDC on Base; the price includes a payment-processing fee that you pay, not the service).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The item's key, if it was stored with encrypt=true. | |
| ticket | Yes | A ticket from anthill_store or anthill_share, a link to one, or a relay code. | |
| profile_key | No | Your profile's secret key (starts with 'anthill_sk_'). Optional if sent as an 'Authorization: Bearer' header. |