Pinata gives you the ability to query uploaded files based on different filters and attributes such as name, key-values, date, and more. This is different from retrieving the actual contents of a file, which you can learn more about here.Documentation Index
Fetch the complete documentation index at: https://pinata-fix--redirect--docs-to--quickstart.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Basic Usage
You can either use the SDK or the API as see in the examples below.Filters
When listing files there a few ways you can filter the resultsname
- Type:
string
group
- Type:
string
noGroup
- Type:
boolean
cid
- Type:
string
mimeType
- Type:
string
keyvalues
- Type:
Record<string | string>
order
- Type:
"ASC" | "DESC"
limit
- Type:
number
cidPending
- Type:
boolean
cid is still pending
Auto Paginate (SDK)
Thelist method has an auto pagination feature that is triggered when used inside a for await iterator