The Files tab gives you four things: a snapshot history of the agent’s workspace, content diffs so you can see what changed between snapshots, a file browser for the agent’s container, and a git URL so you can clone the workspace locally and edit it like any other repo.
Workspace Snapshots
Every minute or so, when the workspace has changed, Pinata captures a snapshot. Each snapshot is the entire workspace pinned to IPFS as a single CID — your full file tree at that point in time, immutable.The summary card at the top shows:
Status — Live, plus how long ago the workspace last synced
Lifecycle Scripts — whether build and start are configured (and their run state if they are)
Scheduled Tasks — whether any tasks are set up
Files — total file count and the current snapshot CID
Below the summary is the snapshot list — newest at the top, labeled LATEST, V9, V8, and so on. Click any version to expand its Content Diff — a file-by-file view of what changed since the previous snapshot, rendered as either a unified or side-by-side diff.Common file you’ll see diffs for: manifest.json. See the manifest reference for what every field means.
Restore an older snapshot
If a recent change broke something, you can roll back.
Find the snapshot you want in the list
Open it
Restore
Under the hood this runs a git --hard reset to the commit associated with that snapshot. The current workspace is replaced — anything that hadn’t been captured into a snapshot yet is lost.
Restore is destructive. Snapshot the current state first if you might want to come back to it.
Force a snapshot now
Snapshots run on their own, but you can trigger one immediately:
curl -X POST \ -H "Authorization: Bearer $PINATA_JWT" \ https://agents.pinata.cloud/v0/agents/$AGENT_ID/snapshots/sync
The same endpoint with GET returns sync status — whether storage is configured, when it last synced, and a human-readable message.
Workspace Files — browse the container
Below the snapshot list, the Workspace Files panel is a live file browser for the agent’s pod filesystem — not just the workspace, the whole container.
Navigate — click a folder to enter it, use the breadcrumb or ← Up to go back, Workspace to jump straight to the workspace root, Refresh to re-read the current directory
View a file — click it. Text and markdown files preview inline with size and MIME type; binary files offer a Download instead
Upload — drop files onto the listing or click Upload to put files into the current directory
Handy for checking what an agent actually wrote, reading logs in place (e.g. /home/hermes/data/logs/ on a Hermes agent), or dropping in a config file without opening the Console.
Editing the workspace locally
The workspace is a git repo, served by Pinata. Clone, edit in your IDE, commit, push.
Click Copy with Token in the Files tab and you get a URL with the gateway token already baked in as HTTP Basic auth — no credential setup, just clone and go.
Pushing changes
# edit files in workspace/ or skills/git add -Agit commit -m "tweak the workspace"git push
When you push, the server commits any pending agent-side changes first, then applies your push on top. That means your push automatically picks up anything the agent has been writing.After a push, the agent’s build script (if you’ve set one) runs automatically. Check the Lifecycle Scripts row to watch its status. Details: Manifest → Scripts.
Pulling agent-side changes
Your agent writes to the same workspace as it works. To sync that locally:
git pull
Persistent credentials
Copying the tokened URL every time gets old. Expand Setup Persistent Credentials in the Files tab and follow the instructions — git stores the credentials, future operations authenticate automatically.
Reading or uploading files programmatically
Two endpoints, both on the agent’s subdomain:
GET /v0/agents/{agentId}/files?path=<path> — read any file inside the container
POST /v0/agents/{agentId}/files/upload — upload a base64-encoded file into <workspace>/uploads/
Both require auth (Pinata JWT or gateway token). See API → Files.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Pinata Docs","colors":{"primary":"#6D6FEB","light":"#5F61EA","dark":"#6D6FEB"},"logo":{"light":"https://mintcdn.com/pinata/1l40stvCFLGKMlbm/logo/light.svg?fit=max\u0026auto=format\u0026n=1l40stvCFLGKMlbm\u0026q=85\u0026s=305c1e8c782e670f10185c0147934643","dark":"https://mintcdn.com/pinata/1l40stvCFLGKMlbm/logo/dark.svg?fit=max\u0026auto=format\u0026n=1l40stvCFLGKMlbm\u0026q=85\u0026s=62b38d97fa820e178051e8ba53f99437"},"favicon":"https://mintcdn.com/pinata/1l40stvCFLGKMlbm/favicon.svg?fit=max\u0026auto=format\u0026n=1l40stvCFLGKMlbm\u0026q=85\u0026s=86bac205666df16404c7e44843af91ff","background":{"color":{"light":"#FFFFFF","dark":"#16141F"}},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Pinata App","href":"https://app.pinata.cloud"}},"footer":{"socials":{"website":"https://warpcast.com/~/channel/pinata","twitter":"https://twitter.com/pinatacloud","github":"https://github.com/PinataCloud","linkedin":"https://www.linkedin.com/company/pinatacloud"}},"seo":{"metatags":{"og:image":"https://docs.mypinata.cloud/ipfs/bafkreicvhjv5mipe2mk4uiq77tg5ykl7qevnj43ubonhtfj5jcseflxvsm","twitter:image":"https://docs.mypinata.cloud/ipfs/bafkreicvhjv5mipe2mk4uiq77tg5ykl7qevnj43ubonhtfj5jcseflxvsm","theme-color":"#16141F"},"indexing":"navigable"},"integrations":{"ga4":{"measurementId":"G-5RMPXG14TE"}},"contextual":{"options":["claude","chatgpt","copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"API Keys","icon":"key-skeleton-left-right","href":"https://app.pinata.cloud/developers/api-keys"},{"anchor":"Blog","icon":"newspaper","href":"https://pinata.cloud/blog"},{"anchor":"Community","icon":"github","href":"https://github.com/PinataCloud"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pinata","hasAudioNarration":false,"actualSubdomain":"pinata","customDomains":["docs.pinata.cloud"],"gitSource":{"type":"github","owner":"pinatacloud","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"edits":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afb75297e21e275fdc59f0b","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"SDK","count":85},{"language":"default","tag":"API Reference","count":81},{"language":"default","tag":"Documentation","count":79},{"language":"default","tag":"Files","count":48},{"language":"default","tag":"Gateways","count":32},{"language":"default","tag":"AI","count":29},{"language":"default","tag":"Groups","count":28},{"language":"default","tag":"private","count":27},{"language":"default","tag":"public","count":27},{"language":"default","tag":"x402 Monetization","count":21}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"agents/snapshots","slug":"/agents/snapshots","pageMetadata":{"title":"Files \u0026 Snapshots","sidebarTitle":"Files","description":"Browse, version, and edit your agent's workspace","icon":"folder-open","href":"/agents/snapshots"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Browse, version, and edit your agent’s workspace\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,OptimizedImage,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Files tab gives you four things: a snapshot history of the agent’s workspace, content diffs so you can see what changed between snapshots, a file browser for the agent’s container, and a git URL so you can clone the workspace locally and edit it like any other repo.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/pinata/p6XBuxeipyyP6Ugl/images/image-39.png?fit=max\u0026auto=format\u0026n=p6XBuxeipyyP6Ugl\u0026q=85\u0026s=bd632531a3b51479f7147fafb5c0cccd`,alt:`Image`,\"data-og-width\":`1969`,width:`1969`,\"data-og-height\":`1358`,height:`1358`,\"data-path\":`images/image-39.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/pinata/p6XBuxeipyyP6Ugl/images/image-39.png?w=280\u0026fit=max\u0026auto=format\u0026n=p6XBuxeipyyP6Ugl\u0026q=85\u0026s=b96290174829fccf001cbc006340dcd1 280w, https://mintcdn.com/pinata/p6XBuxeipyyP6Ugl/images/image-39.png?w=560\u0026fit=max\u0026auto=format\u0026n=p6XBuxeipyyP6Ugl\u0026q=85\u0026s=24ac838f06a21203ae345c05e49743cc 560w, https://mintcdn.com/pinata/p6XBuxeipyyP6Ugl/images/image-39.png?w=840\u0026fit=max\u0026auto=format\u0026n=p6XBuxeipyyP6Ugl\u0026q=85\u0026s=ad08df440d0e4972c2fcdb5d247d465f 840w, https://mintcdn.com/pinata/p6XBuxeipyyP6Ugl/images/image-39.png?w=1100\u0026fit=max\u0026auto=format\u0026n=p6XBuxeipyyP6Ugl\u0026q=85\u0026s=16d75924db5c11bbc4f9b9e3b69f205b 1100w, https://mintcdn.com/pinata/p6XBuxeipyyP6Ugl/images/image-39.png?w=1650\u0026fit=max\u0026auto=format\u0026n=p6XBuxeipyyP6Ugl\u0026q=85\u0026s=98f112323c2df5be1d09c2f0d4fbe415 1650w, https://mintcdn.com/pinata/p6XBuxeipyyP6Ugl/images/image-39.png?w=2500\u0026fit=max\u0026auto=format\u0026n=p6XBuxeipyyP6Ugl\u0026q=85\u0026s=fe17d15ce6306dbbf97ecacd1f7b09a7 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`workspace-snapshots`,children:`Workspace Snapshots`}),`\n`,_jsx(_components.p,{children:`Every minute or so, when the workspace has changed, Pinata captures a snapshot. Each snapshot is the entire workspace pinned to IPFS as a single CID — your full file tree at that point in time, immutable.`}),`\n`,_jsx(_components.p,{children:`The summary card at the top shows:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Status`}),` — `,_jsx(_components.code,{children:`Live`}),`, plus how long ago the workspace last synced`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Lifecycle Scripts`}),` — whether `,_jsx(_components.code,{children:`build`}),` and `,_jsx(_components.code,{children:`start`}),` are configured (and their run state if they are)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Scheduled Tasks`}),` — whether any tasks are set up`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Files`}),` — total file count and the current snapshot CID`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Below the summary is the snapshot list — newest at the top, labeled `,_jsx(_components.code,{children:`LATEST`}),`, `,_jsx(_components.code,{children:`V9`}),`, `,_jsx(_components.code,{children:`V8`}),`, and so on. Click any version to expand its `,_jsx(_components.strong,{children:`Content Diff`}),` — a file-by-file view of what changed since the previous snapshot, rendered as either a unified or side-by-side diff.`]}),`\n`,_jsxs(_components.p,{children:[`Common file you’ll see diffs for: `,_jsx(_components.code,{children:`manifest.json`}),`. See the `,_jsx(_components.a,{href:`/agents/manifest`,children:`manifest reference`}),` for what every field means.`]}),`\n`,_jsx(Heading,{level:`2`,id:`restore-an-older-snapshot`,children:`Restore an older snapshot`}),`\n`,_jsx(_components.p,{children:`If a recent change broke something, you can roll back.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Find the snapshot you want in the list`}),`\n`,_jsx(_components.li,{children:`Open it`}),`\n`,_jsx(_components.li,{children:_jsx(_components.strong,{children:`Restore`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Under the hood this runs a `,_jsx(_components.code,{children:`git --hard`}),` reset to the commit associated with that snapshot. The current workspace is replaced — anything that hadn’t been captured into a snapshot yet is lost.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Restore is destructive. Snapshot the current state first if you might want to come back to it.`})}),`\n`,_jsx(Heading,{level:`2`,id:`force-a-snapshot-now`,children:`Force a snapshot now`}),`\n`,_jsx(_components.p,{children:`Snapshots run on their own, but you can trigger one immediately:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PINATA_JWT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://agents.pinata.cloud/v0/agents/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$AGENT_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/snapshots/sync`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The same endpoint with `,_jsx(_components.code,{children:`GET`}),` returns sync status — whether storage is configured, when it last synced, and a human-readable message.`]}),`\n`,_jsx(Heading,{level:`2`,id:`workspace-files-—-browse-the-container`,children:`Workspace Files — browse the container`}),`\n`,_jsxs(_components.p,{children:[`Below the snapshot list, the `,_jsx(_components.strong,{children:`Workspace Files`}),` panel is a live file browser for the agent’s pod filesystem — not just the workspace, the whole container.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Navigate`}),` — click a folder to enter it, use the breadcrumb or `,_jsx(_components.strong,{children:`← Up`}),` to go back, `,_jsx(_components.strong,{children:`Workspace`}),` to jump straight to the workspace root, `,_jsx(_components.strong,{children:`Refresh`}),` to re-read the current directory`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`View a file`}),` — click it. Text and markdown files preview inline with size and MIME type; binary files offer a `,_jsx(_components.strong,{children:`Download`}),` instead`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Upload`}),` — drop files onto the listing or click `,_jsx(_components.strong,{children:`Upload`}),` to put files into the current directory`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Handy for checking what an agent actually wrote, reading logs in place (e.g. `,_jsx(_components.code,{children:`/home/hermes/data/logs/`}),` on a Hermes agent), or dropping in a config file without opening the `,_jsx(_components.a,{href:`/agents/console`,children:`Console`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`editing-the-workspace-locally`,children:`Editing the workspace locally`}),`\n`,_jsx(_components.p,{children:`The workspace is a git repo, served by Pinata. Clone, edit in your IDE, commit, push.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clone`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://agents.pinata.cloud/v0/agents/{agentId}/git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-agent`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Copy with Token`}),` in the Files tab and you get a URL with the gateway token already baked in as HTTP Basic auth — no credential setup, just clone and go.`]}),`\n`,_jsx(Heading,{level:`3`,id:`pushing-changes`,children:`Pushing changes`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# edit files in workspace/ or skills/`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -A`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` commit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tweak the workspace\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` push`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`When you push, the server commits any pending agent-side changes first, then applies your push on top. That means your push automatically picks up anything the agent has been writing.`}),`\n`,_jsxs(_components.p,{children:[`After a push, the agent’s `,_jsx(_components.code,{children:`build`}),` script (if you’ve set one) runs automatically. Check the `,_jsx(_components.strong,{children:`Lifecycle Scripts`}),` row to watch its status. Details: `,_jsx(_components.a,{href:`/agents/manifest#scripts`,children:`Manifest → Scripts`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`pulling-agent-side-changes`,children:`Pulling agent-side changes`}),`\n`,_jsx(_components.p,{children:`Your agent writes to the same workspace as it works. To sync that locally:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pull`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`persistent-credentials`,children:`Persistent credentials`}),`\n`,_jsxs(_components.p,{children:[`Copying the tokened URL every time gets old. Expand `,_jsx(_components.strong,{children:`Setup Persistent Credentials`}),` in the Files tab and follow the instructions — git stores the credentials, future operations authenticate automatically.`]}),`\n`,_jsx(Heading,{level:`2`,id:`reading-or-uploading-files-programmatically`,children:`Reading or uploading files programmatically`}),`\n`,_jsx(_components.p,{children:`Two endpoints, both on the agent’s subdomain:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`GET /v0/agents/{agentId}/files?path=\u003cpath>`}),` — read any file inside the container`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`POST /v0/agents/{agentId}/files/upload`}),` — upload a base64-encoded file into `,_jsx(_components.code,{children:`\u003cworkspace>/uploads/`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Both require auth (Pinata JWT or gateway token). See `,_jsx(_components.a,{href:`/agents/api#files`,children:`API → Files`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Files \u0026 Snapshots","sidebarTitle":"Files","description":"Browse, version, and edit your agent's workspace","icon":"folder-open","href":"/agents/snapshots"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Workspace Snapshots","slug":"workspace-snapshots","depth":2,"children":[]},{"title":"Restore an older snapshot","slug":"restore-an-older-snapshot","depth":2,"children":[]},{"title":"Force a snapshot now","slug":"force-a-snapshot-now","depth":2,"children":[]},{"title":"Workspace Files — browse the container","slug":"workspace-files-—-browse-the-container","depth":2,"children":[]},{"title":"Editing the workspace locally","slug":"editing-the-workspace-locally","depth":2,"children":[{"title":"Pushing changes","slug":"pushing-changes","depth":3,"children":[]},{"title":"Pulling agent-side changes","slug":"pulling-agent-side-changes","depth":3,"children":[]},{"title":"Persistent credentials","slug":"persistent-credentials","depth":3,"children":[]}]},{"title":"Reading or uploading files programmatically","slug":"reading-or-uploading-files-programmatically","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/pinata/0188189cb1e45a94/reo.js"],"subdomain":"pinata","siteName":"Pinata Docs","title":"Files \u0026 Snapshots - Pinata Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-03T20:13:35.502Z","originalFileLocation":"agents/snapshots.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Browse, version, and edit your agent\u0026#x27;s workspace\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pinata Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Files \u0026amp; Snapshots - Pinata Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Browse, version, and edit your agent\u0026#x27;s workspace\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pinata Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pinata.cloud/agents/snapshots\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.mypinata.cloud/ipfs/bafkreicvhjv5mipe2mk4uiq77tg5ykl7qevnj43ubonhtfj5jcseflxvsm\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Files \u0026amp; Snapshots - Pinata Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Browse, version, and edit your agent\u0026#x27;s workspace\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.mypinata.cloud/ipfs/bafkreicvhjv5mipe2mk4uiq77tg5ykl7qevnj43ubonhtfj5jcseflxvsm\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pinata/819z3Ds6hhZIH97L/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pinata Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6D6FEB\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#16141F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pinata.cloud/agents/snapshots\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/agents/snapshots.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pinata.cloud/#organization\",\"name\":\"Pinata Docs\",\"url\":\"https://docs.pinata.cloud\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pinata/1l40stvCFLGKMlbm/logo/light.svg?fit=max\u0026auto=format\u0026n=1l40stvCFLGKMlbm\u0026q=85\u0026s=305c1e8c782e670f10185c0147934643\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pinata.cloud#website\",\"name\":\"Pinata Docs\",\"url\":\"https://docs.pinata.cloud\",\"publisher\":{\"@id\":\"https://docs.pinata.cloud/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pinata.cloud/agents/snapshots#webpage\",\"url\":\"https://docs.pinata.cloud/agents/snapshots\",\"name\":\"Files \u0026 Snapshots\",\"description\":\"Browse, version, and edit your agent's workspace\",\"dateModified\":\"2026-06-03T20:13:35.502Z\",\"isPartOf\":{\"@id\":\"https://docs.pinata.cloud#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pinata.cloud/agents/snapshots#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pinata.cloud/agents/snapshots#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AI\",\"item\":\"https://docs.pinata.cloud/agents/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agents\",\"item\":\"https://docs.pinata.cloud/agents/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Files \u0026 Snapshots\",\"item\":\"https://docs.pinata.cloud/agents/snapshots\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.pinata.cloud/agents/snapshots#article\",\"headline\":\"Files \u0026 Snapshots\",\"name\":\"Files \u0026 Snapshots\",\"description\":\"Browse, version, and edit your agent's workspace\",\"url\":\"https://docs.pinata.cloud/agents/snapshots\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pinata.cloud/agents/snapshots#webpage\"},\"image\":\"https://docs.mypinata.cloud/ipfs/bafkreicvhjv5mipe2mk4uiq77tg5ykl7qevnj43ubonhtfj5jcseflxvsm\",\"dateModified\":\"2026-06-03T20:13:35.502Z\",\"publisher\":{\"@id\":\"https://docs.pinata.cloud/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pinata.cloud#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pinata Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Pinata Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/agents/snapshots.md","siteName":"Pinata Docs","nav":{"global":{"anchors":[{"anchor":"API Keys","icon":"key-skeleton-left-right","href":"https://app.pinata.cloud/developers/api-keys"},{"anchor":"Blog","icon":"newspaper","href":"https://pinata.cloud/blog"},{"anchor":"Community","icon":"github","href":"https://github.com/PinataCloud"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Quickstart","icon":"stopwatch","href":"/quickstart"},{"group":"Frameworks","icon":"react","pages":[{"title":"Next.js","icon":"n","href":"/frameworks/next-js"},{"title":"Hono","icon":"fire","href":"/frameworks/hono"},{"title":"React","icon":"react","href":"/frameworks/react"},{"title":"SvelteKit","icon":"s","href":"/frameworks/sveltekit"},{"title":"Astro","icon":"rocket-launch","href":"/frameworks/astro"},{"title":"Remix","icon":"compact-disc","href":"/frameworks/remix"},{"title":"Node.js","icon":"node-js","href":"/frameworks/node-js"}]}]},{"group":"AI","pages":[{"group":"Agents","icon":"lobster","pages":[{"title":"Overview","icon":"lobster","href":"/agents/overview"},{"title":"Concepts","icon":"compass","href":"/agents/concepts"},{"title":"Chat","icon":"message","href":"/agents/chat"},{"title":"Issues \u0026 Boards","sidebarTitle":"Issues","icon":"table-columns","href":"/agents/issues"},{"title":"Secrets","icon":"key","href":"/agents/secrets"},{"title":"Models","icon":"microchip","href":"/agents/models"},{"title":"Skills","icon":"wand-magic-sparkles","href":"/agents/skills"},{"title":"Channels","icon":"comments","href":"/agents/channels"},{"title":"Domains \u0026 Routes","sidebarTitle":"Routes","icon":"network-wired","href":"/agents/routes"},{"title":"Tasks","description":"Run prompts on a schedule","icon":"clock","href":"/agents/tasks"},{"title":"Files \u0026 Snapshots","sidebarTitle":"Files","icon":"folder-open","href":"/agents/snapshots"},{"group":"Dev Tools","icon":"terminal","pages":[{"title":"Console","description":"A real terminal inside your agent's container","icon":"terminal","href":"/agents/console"},{"title":"Logs","icon":"scroll","href":"/agents/logs"},{"title":"Danger","icon":"triangle-exclamation","href":"/agents/devtools"}]},{"group":"Build","icon":"code","pages":[{"title":"Manifest Reference","sidebarTitle":"Manifest","icon":"file-code","href":"/agents/manifest"},{"title":"HTTP API","sidebarTitle":"HTTP API","icon":"plug","href":"/agents/api"}]},{"group":"Templates","icon":"clone","pages":[{"title":"Templates","sidebarTitle":"Overview","icon":"grid-2","href":"/agents/templates/overview"},{"title":"Creating Templates","icon":"hammer","href":"/agents/templates/creating"}]},{"group":"Troubleshooting","icon":"wrench","pages":[{"title":"Troubleshooting","icon":"wrench","href":"/agents/troubleshooting"},{"title":"Error Reference","sidebarTitle":"Errors","icon":"circle-exclamation","href":"/agents/errors"}]}]},{"group":"Inference","icon":"bolt","pages":[{"title":"Overview","icon":"bolt","href":"/inference/overview"},{"title":"Chat Completions","icon":"message","href":"/inference/chat-completions"},{"title":"Models","icon":"microchip","href":"/inference/models"}]},{"title":"Credits","icon":"coins","href":"/inference/credits"},{"title":"Agents CLI","icon":"robot","href":"/tools/cli/agents"},{"title":"LLM Docs","icon":"sparkles","href":"/llm-docs"},{"group":"MCP Server","icon":"plug","pages":[{"title":"Overview","href":"/tools/mcp/overview"},{"title":"Tools Reference","href":"/tools/mcp/tools"}]},{"group":"ERC-8004","icon":"robot","pages":[{"title":"Quickstart","href":"/tools/erc-8004/quickstart"},{"title":"Services \u0026 IPFS","href":"/tools/erc-8004/services"}]}]},{"group":"Account Management","pages":[{"title":"API Keys","icon":"key","href":"/account-management/api-keys"},{"title":"Workspaces","icon":"user-group","hidden":false,"href":"/account-management/workspaces"},{"title":"Webhooks","icon":"webhook","href":"/account-management/webhooks"},{"title":"Billing","icon":"money-bill","hidden":false,"href":"/account-management/billing"},{"title":"Limits","icon":"gauge","href":"/account-management/limits"}]},{"group":"Files","pages":[{"title":"Uploading Files","icon":"file-arrow-up","href":"/files/uploading-files"},{"title":"Presigned URLs","icon":"signature","href":"/files/presigned-urls"},{"title":"List \u0026 Query Files","icon":"list","href":"/files/listing-files"},{"title":"Deleting Files","icon":"trash","href":"/files/deleting-files"},{"title":"Retrieving Files","icon":"globe-pointer","href":"/gateways/retrieving-files"},{"title":"Groups","icon":"ball-pile","href":"/files/file-groups"},{"title":"Key-Values","icon":"database","href":"/files/key-values"},{"title":"Private IPFS","icon":"lock","href":"/files/private-ipfs"},{"title":"File Vectors (Beta)","icon":"microchip-ai","href":"/files/vectors"},{"title":"Signatures","icon":"file-signature","href":"/files/signatures"},{"group":"CLI","icon":"terminal","pages":[{"title":"CLI Overview","icon":"terminal","href":"/tools/cli/overview"},{"title":"IPFS","icon":"cube","href":"/tools/cli/ipfs"},{"title":"Agents CLI","icon":"robot","href":"/tools/cli/agents"}]},{"group":"MPP Server","icon":"coins","pages":[{"title":"MPP Server","href":"/files/mpp/overview"},{"title":"Quick Start","href":"/files/mpp/quickstart"}]},{"group":"x402","icon":"sparkle","pages":[{"group":"x402 Monetization","pages":[{"title":"Introduction","href":"/files/x402/intro"},{"title":"Quick Start","href":"/files/x402/x402-quick-start"},{"title":"Payment Instructions Guide","href":"/files/x402/x402-payment-instructions"},{"title":"Accessing Paid Content","href":"/files/x402/x402-accessing-paid-content"}]},{"title":"x402 Services","href":"/files/x402/x402-services"}]},{"group":"NFT Backup","icon":"cloud-arrow-up","pages":[{"title":"Overview","href":"/files/nft-backup/overview"},{"title":"Wallets","href":"/files/nft-backup/wallets"},{"title":"Collections","href":"/files/nft-backup/collections"},{"title":"Sync","href":"/files/nft-backup/sync"}]}]},{"group":"Gateways","pages":[{"title":"Dedicated IPFS Gateways","icon":"globe-pointer","href":"/gateways/dedicated-ipfs-gateways"},{"title":"Gateway Access Controls","icon":"shield-keyhole","href":"/gateways/gateway-access-controls"},{"title":"Image Optimizations","icon":"image","href":"/gateways/image-optimizations"},{"group":"Plugins","icon":"puzzle-piece-simple","pages":[{"title":"Getting Started","icon":"play","href":"/gateways/plugins/getting-started"},{"title":"Content Addressable","icon":"file-signature","href":"/gateways/plugins/content-addressable"},{"title":"Hot Swaps","icon":"rotate","href":"/gateways/plugins/hot-swaps"}]}]},{"group":"Additional Resources","pages":[{"title":"Pinata Expo Hooks","icon":"angle-up","href":"/tools/pinata-expo-hooks"},{"title":"Community SDKs","icon":"laptop-code","href":"/tools/community-sdks"},{"group":"IPFS 101","icon":"cube","pages":[{"title":"What is IPFS?","hidden":false,"href":"/ipfs-101/what-is-ipfs"},{"title":"What is Pinning?","hidden":false,"href":"/ipfs-101/what-is-ipfs-pinning"},{"title":"What are CIDs?","hidden":false,"href":"/ipfs-101/what-are-cids"},{"title":"What are IPFS Gateways?","hidden":false,"href":"/ipfs-101/what-are-ipfs-gateways"},{"title":"How does IPFS work with NFTs?","hidden":false,"href":"/ipfs-101/how-does-ipfs-work-with-nfts"}]}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/getting-started"}]},{"tab":"API Reference","versions":[{"version":"v3","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Uploads","pages":[{"openapi":"post /files","title":"Upload a File","href":"/api-reference/endpoint/upload-a-file"},{"title":"Create Signed Upload URL","openapi":"pinata-api-v3-uploads.yaml post /files/sign","href":"/api-reference/endpoint/create-signed-upload-url"}]},{"group":"Files","pages":[{"openapi":"get /files/{network}","title":"List Files","href":"/api-reference/endpoint/list-files"},{"openapi":"get /files/{network}/{id}","title":"Get File by ID","href":"/api-reference/endpoint/get-file-by-id"},{"title":"Create Download Link","openapi":"pinata-api-v3.yaml post /files/private/download_link","href":"/api-reference/endpoint/get-signed-url"},{"openapi":"put /files/{network}/{id}","title":"Update File","href":"/api-reference/endpoint/update-file"},{"openapi":"delete /files/{network}/{id}","title":"Delete File by ID","href":"/api-reference/endpoint/delete-file-by-id"},{"openapi":"post /vectorize/files/{file_id}","title":"Vectorize a File","href":"/api-reference/endpoint/vectorize-file"},{"openapi":"post /vectorize/groups/{group_id}/query","title":"Query File Vectors","href":"/api-reference/endpoint/query-file-vectors"},{"openapi":"delete /vectorize/files/{file_id}","title":"Delete File Vectors","href":"/api-reference/endpoint/delete-file-vectors"}]},{"group":"Groups","pages":[{"openapi":"post /groups/{network}","title":"Create Group","href":"/api-reference/endpoint/create-group"},{"openapi":"get /groups/{network}/{id}","title":"Get Group","href":"/api-reference/endpoint/get-group"},{"openapi":"get /groups/{network}","title":"List Groups","href":"/api-reference/endpoint/list-groups"},{"openapi":"put /groups/{network}/{id}/ids/{file_id}","title":"Add File To Group","href":"/api-reference/endpoint/add-file-to-group"},{"openapi":"delete /groups/{network}/{id}/ids/{file_id}","title":"Remove File From Group","href":"/api-reference/endpoint/remove-file-from-group"},{"openapi":"put /groups/{network}/{id}","title":"Update Group","href":"/api-reference/endpoint/update-group"},{"openapi":"delete /groups/{network}/{id}","title":"Delete Group","href":"/api-reference/endpoint/delete-group"}]},{"group":"Pin by CID","pages":[{"openapi":"post /files/public/pin_by_cid","title":"Pin by CID","href":"/api-reference/endpoint/pin-by-cid"},{"openapi":"get /files/public/pin_by_cid","title":"Query Pin Requests","href":"/api-reference/endpoint/query-pin-requests"},{"openapi":"DELETE /files/public/pin_by_cid/{id}","title":"Cancel Request","href":"/api-reference/endpoint/cancel-pin-by-cid"}]},{"group":"Swaps","pages":[{"openapi":"put /files/{network}/swap/{cid}","title":"Add Swap","href":"/api-reference/endpoint/add-swap"},{"openapi":"get /files/{network}/swap/{cid}","title":"Get Swap History","href":"/api-reference/endpoint/get-swap-history"},{"openapi":"delete /files/{network}/swap/{cid}","title":"Remove Swap","href":"/api-reference/endpoint/remove-swap"}]},{"group":"API Keys","pages":[{"openapi":"post /api_keys","title":"Create API Key","href":"/api-reference/endpoint/v3-create-api-key"},{"openapi":"get /api_keys","title":"List API Keys","href":"/api-reference/endpoint/v3-list-api-keys"},{"openapi":"delete /api_keys/{key}","title":"Revoke API Key","href":"/api-reference/endpoint/v3-revoke-api-key"}]},{"group":"Signatures","pages":[{"openapi":"get /files/{network}/signature/{cid}","title":"Get Signature for a CID","href":"/api-reference/endpoint/get-signature-for-a-cid"},{"openapi":"post /files/{network}/signature/{cid}","title":"Add Signature to CId","href":"/api-reference/endpoint/add-signature-to-cid"},{"openapi":"delete /files/{network}/signature/{cid}","title":"Remove Signature from CID","href":"/api-reference/endpoint/remove-signature-from-cid"}]},{"group":"Gateways","pages":[{"group":"General","pages":[{"openapi":"get /gateways","title":"List Gateways","href":"/api-reference/endpoint/ipfs/list-gateways"},{"openapi":"get /gateways/{id}","title":"Gateway Details","href":"/api-reference/endpoint/ipfs/gateway-details"},{"openapi":"get /gateways/exists/{domain}","title":"Gateway Domain Available","href":"/api-reference/endpoint/ipfs/gateway-domain-available"},{"openapi":"post /gateways","title":"Create Gateway","href":"/api-reference/endpoint/ipfs/create-gateway"},{"openapi":"delete /gateways/{id}","title":"Delete Gateway","href":"/api-reference/endpoint/ipfs/delete-gateway"}]},{"group":"Custom Domains","pages":[{"openapi":"get /gateways/{id}/custom_domain/{custom_domain_id}","title":"Gateway Custom Domain Details","href":"/api-reference/endpoint/ipfs/gateway-custom-domain-details"},{"openapi":"post /gateways/{id}/custom_domain","title":"Create Custom Domain for Gateway","href":"/api-reference/endpoint/ipfs/create-custom-domain-for-gateway"},{"openapi":"delete /gateways/{id}/custom_domain/{custom_domain_id}","title":"Delete Gateway Custom Domain","href":"/api-reference/endpoint/ipfs/delete-gateway-custom-domain"}]},{"group":"Access Controls","pages":[{"openapi":"post /gateways/{id}/access_tokens","title":"Create Gateway Key Restriction","href":"/api-reference/endpoint/ipfs/create-gateway-key-restriction"},{"openapi":"post /gateways/{id}/ips","title":"Create Gateway IP Address Restriction","href":"/api-reference/endpoint/ipfs/create-gateway-ip-address-restriction"},{"openapi":"post /gateways/{id}/hosts","title":"Create Gateway Host Origin Restriction","href":"/api-reference/endpoint/ipfs/create-gateway-host-origin-restriction"},{"openapi":"delete /gateways/{id}/access_tokens/{access_token_id}","title":"Revoke Gateway Key","href":"/api-reference/endpoint/ipfs/revoke-gateway-key"},{"openapi":"delete /gateways/{id}/ips/{ip_id}","title":"Revoke IP Address Restricton","href":"/api-reference/endpoint/ipfs/revoke-ip-address-restricton"},{"openapi":"delete /gateways/{id}/hosts/{host_id}","title":"Revoke Host Origin Restriction","href":"/api-reference/endpoint/ipfs/revoke-host-origin-restriction"}]},{"group":"Gateway Analytics","pages":[{"openapi":"get /analytics/gateways/top","title":"Top Gateway Analytics","href":"/api-reference/endpoint/ipfs/top-gateway-analytics"},{"openapi":"get /analytics/gateways/time_series","title":"Time Interval Gateway Analytics","href":"/api-reference/endpoint/ipfs/time-interval-gateway-analytics"}]},{"group":"Gateway Plugins","pages":[{"openapi":"get /gateways/plugins/marketplace","title":"List Marketplace Plugins","href":"/api-reference/endpoint/ipfs/list-marketplace-plugins"},{"openapi":"get /gateways/plugins/marketplace/{id}","title":"Get Marketplace Plugin Details","href":"/api-reference/endpoint/ipfs/get-marketplace-plugin-details"},{"openapi":"get /ipfs/gateway_plugins/{gateway_id}","title":"List Installed Plugins for Gateway","href":"/api-reference/endpoint/ipfs/list-installed-plugins-for-gateway"},{"openapi":"post /gateways/plugins/{gateway_id}","title":"Install Gateway Plugin","href":"/api-reference/endpoint/ipfs/install-gateway-plugin"},{"openapi":"get /gateways/plugins","title":"List Gateway Plugins","href":"/api-reference/endpoint/ipfs/list-gateway-plugins"},{"openapi":"delete /gateways/plugins/{gateway_id}/plugin/{plugin_id}","title":"Uninstall Gateway Plugin","href":"/api-reference/endpoint/ipfs/uninstall-gateway-plugin"}]}]},{"group":"x402","pages":[{"group":"x402 Monetization","pages":[{"group":"Payment Instructions","pages":[{"openapi":"get /x402/payment_instructions","title":"List Payment Instructions","href":"/api-reference/endpoint/x402/payment-instructions-list"},{"openapi":"post /x402/payment_instructions","title":"Create Payment Instruction","href":"/api-reference/endpoint/x402/payment-instructions-create"},{"openapi":"get /x402/payment_instructions/{id}","title":"Get Payment Instruction","href":"/api-reference/endpoint/x402/payment-instructions-get"},{"openapi":"patch /x402/payment_instructions/{id}","title":"Update Payment Instruction","href":"/api-reference/endpoint/x402/payment-instructions-update"},{"openapi":"delete /x402/payment_instructions/{id}","title":"Delete Payment Instruction","href":"/api-reference/endpoint/x402/payment-instructions-delete"}]},{"group":"CID Management","pages":[{"openapi":"get /x402/payment_instructions/{id}/cids","title":"List CIDs for Payment Instruction","href":"/api-reference/endpoint/x402/cids-list"},{"openapi":"put /x402/payment_instructions/{id}/cids/{cid}","title":"Add CID to Payment Instruction","href":"/api-reference/endpoint/x402/cids-add"},{"openapi":"delete /x402/payment_instructions/{id}/cids/{cid}","title":"Remove CID from Payment Instruction","href":"/api-reference/endpoint/x402/cids-remove"}]}]},{"group":"x402 Services","pages":[{"title":"Upload a File","openapi":"pinata-x402-api-v1.yaml post /pin/{network}","href":"/api-reference/endpoint/x402/pin"},{"title":"Retrieve a Private File","openapi":"pinata-x402-api-v1.yaml get /retrieve/private/{cid}","href":"/api-reference/endpoint/x402/retrieve"}]}]}]},{"version":"legacy","pages":[{"title":"legacy","href":"/api-reference/introduction"}]}]}]},"basePath":"","title":"Files \u0026 Snapshots - Pinata Docs","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-1H5zLJUq.js","DynamicMarkdown-RhjEuCHC.js","zoom-image-lightbox-CkI5al_8.js","lightbox-handle-r17bVUz3.js"]}