List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location’s top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn’t exist or you can’t see it.
Cursor for the next page, or null on the last page.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Parley","description":"Documentation and guides for Parley, the legal agent that delivers finished work and helps law firms manage cases: drafting, exhibit assembly, research, and more.","colors":{"primary":"#000000","light":"#B7FF26","dark":"#000000"},"logo":{"light":"https://mintcdn.com/parley/YL1E5_EdTTw7eyg7/images/NewLogo.png?fit=max\u0026auto=format\u0026n=YL1E5_EdTTw7eyg7\u0026q=85\u0026s=8eb221eb344e5cb883733328ef22443a","dark":"https://mintcdn.com/parley/YL1E5_EdTTw7eyg7/images/NewLogo.png?fit=max\u0026auto=format\u0026n=YL1E5_EdTTw7eyg7\u0026q=85\u0026s=8eb221eb344e5cb883733328ef22443a","href":"https://www.parley.so/"},"favicon":{"light":"https://mintcdn.com/parley/YL1E5_EdTTw7eyg7/images/NewLogo.png?fit=max\u0026auto=format\u0026n=YL1E5_EdTTw7eyg7\u0026q=85\u0026s=8eb221eb344e5cb883733328ef22443a","dark":"https://mintcdn.com/parley/YL1E5_EdTTw7eyg7/images/NewLogo.png?fit=max\u0026auto=format\u0026n=YL1E5_EdTTw7eyg7\u0026q=85\u0026s=8eb221eb344e5cb883733328ef22443a"},"appearance":{"default":"dark"},"background":{"color":{"dark":"#000000"}},"navbar":{"links":[{"href":"/help/getting-support","label":"Support"}],"primary":{"type":"button","label":"Open Parley","href":"https://app.parley.so"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/parley-legal-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"parley","hasAudioNarration":false,"actualSubdomain":"parley","customDomains":["docs.parley.so"],"gitSource":{"type":"github","owner":"parley-dev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ae8c8dff0ba2d6fcdc16756","collectionId":"93ebf876-81d7-46e8-81d3-9fcd4b6d85dc","liveDeploymentHistoryId":"6ae8c8dff0ba2d6fcdc16756","schemaVersion":"v3"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee7201b15ce5dc996dc7d6","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":75},{"language":"default","tag":"Documentation","count":29},{"language":"default","tag":"Files","count":9},{"language":"default","tag":"Skills","count":8},{"language":"default","tag":"Sessions","count":8},{"language":"default","tag":"Projects","count":7},{"language":"default","tag":"Automations","count":7},{"language":"default","tag":"Self-driving","count":5},{"language":"default","tag":"Accounts","count":5},{"language":"default","tag":"Contacts","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"llms-txt-v2","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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/files/list-files","slug":"/api-reference/files/list-files","pageMetadata":{"title":"List files","description":"List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location's top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn't exist or you can't see it.","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /files","href":"/api-reference/files/list-files","autogeneratedByOpenApi":true},"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: \"List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location’s top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn’t exist or you can’t see it.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"List files","description":"List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location's top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn't exist or you can't see it.","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /files","href":"/api-reference/files/list-files","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"listFiles","summary":"List files","description":"List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location's top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn't exist or you can't see it.","tags":["Files"],"parameters":["3c595f5e-66a3-41b0-9941-106ea33fecd7","3e88036e-14ef-40d6-ba88-b2639b871c97","ab064a56-0979-4715-8f56-72e8d1c2a7d2","d6d499d4-0744-4978-8020-0931da1b9cd1","63a58124-6e3e-4cec-8b38-fb770ece2698","2f90b39f-7f9d-4b20-bf77-b9211e0cedee","7685de5d-79b5-43bd-8ca1-32d60fe9045c","1c60f696-fad1-4f62-a140-dffd37215c77","b6d2ef19-4ef1-46d2-8dda-16b7abdd263d","9f3152f8-5536-4b82-a536-861ee64c9677","9827450e-b75d-4e3e-bfab-82cc1f147b5b","431c4ebb-3654-4a49-b558-de7c38949975","e19307a0-2f55-4362-9d2d-8558603f8838","80baa330-cf0d-43e9-b2a6-251b9074257b","767abb7b-8365-4bdc-be1a-891f85891234","ef1100ae-86f0-4138-be81-c8a12bed67d1"],"responses":{"200":"063e43d6-18ad-4681-9328-7ee9dbdeb477","400":"785bb895-81a3-4b9f-a75c-1ee05a4d18a9","401":"eb46738a-b0f1-4c1b-a906-43d99ee77ed3","403":"bbbd6ba5-1829-43d9-8e1a-35e0083959ab","429":"df5eecde-22c9-4f51-945d-28bc278f53d7"},"method":"get","type":"path","servers":["3863000f-3077-458c-b70e-a54d7d00d2dd"],"security":["0b5d493d-55f0-440f-a252-26d571d350e1"],"path":"/files","baseUrlOptions":["https://api.parley.so/v1"],"title":"List files","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"3c595f5e-66a3-41b0-9941-106ea33fecd7":{"name":"projectId","in":"query","schema":{"type":"string","minLength":1,"description":"List this project's files. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"3e88036e-14ef-40d6-ba88-b2639b871c97":{"name":"accountId","in":"query","schema":{"type":"string","minLength":1,"description":"List this account's files. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"ab064a56-0979-4715-8f56-72e8d1c2a7d2":{"name":"contactId","in":"query","schema":{"type":"string","minLength":1,"description":"List this contact's files. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"d6d499d4-0744-4978-8020-0931da1b9cd1":{"name":"sharedSpaceId","in":"query","schema":{"type":"string","minLength":1,"description":"List this shared space's files. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"63a58124-6e3e-4cec-8b38-fb770ece2698":{"name":"library","in":"query","schema":{"const":true,"description":"true for the organization's Library. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"","typeLabel":"any"},"allowEmptyValue":true,"allowReserved":true},"2f90b39f-7f9d-4b20-bf77-b9211e0cedee":{"name":"folderId","in":"query","schema":{"type":"string","minLength":1,"description":"List inside this folder, which must be in the location. Omit to start at the top level.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"7685de5d-79b5-43bd-8ca1-32d60fe9045c":{"name":"recursive","in":"query","schema":{"type":"boolean","default":false,"description":"Include everything below the starting point, not just the files and folders directly in it.","uniqueKey":"","typeLabel":"boolean"},"allowEmptyValue":true,"allowReserved":true},"1c60f696-fad1-4f62-a140-dffd37215c77":{"name":"search","in":"query","schema":{"type":"string","minLength":1,"description":"Case-insensitive. Only files and folders whose name contains this text.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"b6d2ef19-4ef1-46d2-8dda-16b7abdd263d":{"name":"type","in":"query","schema":{"enum":["file","folder"],"type":"string","description":"Only files, or only folders.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"allowEmptyValue":true,"allowReserved":true},"9f3152f8-5536-4b82-a536-861ee64c9677":{"name":"createdSince","in":"query","schema":{"type":"string","description":"Only records created at or after this time. An ISO 8601 date (YYYY-MM-DD, read as UTC midnight) or date-time.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"9827450e-b75d-4e3e-bfab-82cc1f147b5b":{"name":"createdBefore","in":"query","schema":{"type":"string","description":"Only records created before this time. An ISO 8601 date (YYYY-MM-DD, read as UTC midnight) or date-time.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"431c4ebb-3654-4a49-b558-de7c38949975":{"name":"updatedSince","in":"query","schema":{"type":"string","description":"Only records last updated at or after this time. An ISO 8601 date (YYYY-MM-DD, read as UTC midnight) or date-time.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"e19307a0-2f55-4362-9d2d-8558603f8838":{"name":"updatedBefore","in":"query","schema":{"type":"string","description":"Only records last updated before this time. An ISO 8601 date (YYYY-MM-DD, read as UTC midnight) or date-time.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"80baa330-cf0d-43e9-b2a6-251b9074257b":{"name":"sort","in":"query","schema":{"enum":["name","-name","createdAt","-createdAt","updatedAt","-updatedAt"],"type":"string","default":"-createdAt","description":"Sort order: a field name, prefixed with - for descending. Defaults to -createdAt.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"allowEmptyValue":true,"allowReserved":true},"767abb7b-8365-4bdc-be1a-891f85891234":{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"description":"Opaque cursor from nextCursor. Pass the same filters and sort. Omit for the first page.","uniqueKey":"","typeLabel":"string"},"allowEmptyValue":true,"allowReserved":true},"ef1100ae-86f0-4138-be81-c8a12bed67d1":{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":250,"default":50,"description":"Maximum number of items to return.","uniqueKey":"","typeLabel":"integer"},"allowEmptyValue":true,"allowReserved":true}},"responses":{"063e43d6-18ad-4681-9328-7ee9dbdeb477":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"oneOf":[{"type":"object","description":"A file or a folder, told apart by type.","required":["type","id","name","location","folder","createdAt","updatedAt","mediaType","status"],"example":{"type":"file","id":"cmf2y1a2b0003abcd","name":"engagement-letter.pdf","location":{"type":"project","id":"cmf2x8k0q0001abcd","name":"Acme Corp H-1B petition"},"folder":{"type":"folder","id":"cmf2y0z9x0004abcd","name":"Evidence"},"mediaType":"application/pdf","status":"ready","createdAt":"2026-10-03T12:00:00.000Z","updatedAt":"2026-10-03T12:01:30.000Z"},"properties":{"type":{"const":"file","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.type","typeLabel":"any"},"id":{"type":"string","minLength":1,"description":"The file or folder ID.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"The name, including any file extension.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.name","typeLabel":"string"},"location":{"oneOf":[{"type":"object","description":"Whose files these are: a project's, an account's, a contact's, or a shared space's, or the organization's Library.","required":["type","id","name"],"properties":{"type":{"enum":["project","account","contact"],"type":"string","description":"The kind of record: project, account, or contact.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"The record's name. A contact's is its first and last name, or an email address when it has no name.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whose files these are: a project's, an account's, a contact's, or a shared space's, or the organization's Library.","required":["type","id","name"],"properties":{"type":{"const":"shared_space","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.1.type","typeLabel":"any"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"The shared space title.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.1.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.1","typeLabel":"object"},{"type":"object","description":"Whose files these are: a project's, an account's, a contact's, or a shared space's, or the organization's Library.","required":["type"],"properties":{"type":{"const":"library","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.2.type","typeLabel":"any"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.location","typeLabel":"object"},"folder":{"oneOf":[{"type":"object","description":"The folder it is in, or null at the top level.","required":["type","id","name"],"properties":{"type":{"const":"folder","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.folder.oneOf.0.type","typeLabel":"any"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.folder.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"The folder name.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.folder.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.folder.oneOf.0","typeLabel":"object"},{"type":"null","description":"The folder it is in, or null at the top level.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.folder.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.folder","typeLabel":"object | null"},"createdAt":{"type":"string","format":"date-time","description":"When it was added.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"When it was last updated, including processing, renames, and moves.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"},"mediaType":{"oneOf":[{"type":"string","description":"The file's media type, such as application/pdf, from its extension, or null when the extension isn't recognized.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.mediaType.oneOf.0","typeLabel":"string"},{"type":"null","description":"The file's media type, such as application/pdf, from its extension, or null when the extension isn't recognized.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.mediaType.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.mediaType","typeLabel":"string | null"},"status":{"enum":["pending","processing","ready","failed"],"type":"string","description":"Whether Parley has extracted the file's text: pending (queued), processing, ready (its text can be read), or failed (download it instead).","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.0.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A file or a folder, told apart by type.","required":["type","id","name","location","folder","createdAt","updatedAt"],"example":{"type":"file","id":"cmf2y1a2b0003abcd","name":"engagement-letter.pdf","location":{"type":"project","id":"cmf2x8k0q0001abcd","name":"Acme Corp H-1B petition"},"folder":{"type":"folder","id":"cmf2y0z9x0004abcd","name":"Evidence"},"createdAt":"2026-10-03T12:00:00.000Z","updatedAt":"2026-10-03T12:01:30.000Z"},"properties":{"type":{"const":"folder","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.type","typeLabel":"any"},"id":{"type":"string","minLength":1,"description":"The file or folder ID.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"The name, including any file extension.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.name","typeLabel":"string"},"location":{"oneOf":[{"type":"object","description":"Whose files these are: a project's, an account's, a contact's, or a shared space's, or the organization's Library.","required":["type","id","name"],"properties":{"type":{"enum":["project","account","contact"],"type":"string","description":"The kind of record: project, account, or contact.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"The record's name. A contact's is its first and last name, or an email address when it has no name.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whose files these are: a project's, an account's, a contact's, or a shared space's, or the organization's Library.","required":["type","id","name"],"properties":{"type":{"const":"shared_space","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.1.type","typeLabel":"any"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"The shared space title.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.1.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.1","typeLabel":"object"},{"type":"object","description":"Whose files these are: a project's, an account's, a contact's, or a shared space's, or the organization's Library.","required":["type"],"properties":{"type":{"const":"library","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.2.type","typeLabel":"any"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.location","typeLabel":"object"},"folder":{"oneOf":[{"type":"object","description":"The folder it is in, or null at the top level.","required":["type","id","name"],"properties":{"type":{"const":"folder","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.folder.oneOf.0.type","typeLabel":"any"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.folder.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"The folder name.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.folder.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.folder.oneOf.0","typeLabel":"object"},{"type":"null","description":"The folder it is in, or null at the top level.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.folder.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.folder","typeLabel":"object | null"},"createdAt":{"type":"string","format":"date-time","description":"When it was added.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"When it was last updated, including processing, renames, and moves.","isRequired":true,"uniqueKey":"data.items.[INDEX].oneOf.1.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data","typeLabel":"object[]"},"nextCursor":{"oneOf":[{"type":"string","description":"Cursor for the next page, or null on the last page.","isRequired":true,"uniqueKey":"nextCursor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cursor for the next page, or null on the last page.","isRequired":true,"uniqueKey":"nextCursor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"nextCursor","typeLabel":"string | null"}},"required":["data","nextCursor"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":[{"type":"file","id":"cmf2y1a2b0003abcd","name":"engagement-letter.pdf","location":{"type":"project","id":"cmf2x8k0q0001abcd","name":"Acme Corp H-1B petition"},"folder":{"type":"folder","id":"cmf2y0z9x0004abcd","name":"Evidence"},"mediaType":"application/pdf","status":"ready","createdAt":"2026-10-03T12:00:00.000Z","updatedAt":"2026-10-03T12:01:30.000Z"}],"nextCursor":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"785bb895-81a3-4b9f-a75c-1ee05a4d18a9":{"description":"The request was invalid. VALIDATION_FAILED, INVALID_CURSOR, INVALID_REFERENCE.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string","const":"VALIDATION_FAILED","isRequired":true,"uniqueKey":"oneOf.0.error.code","typeLabel":"string"},"message":{"type":"string","examples":["The request is invalid."],"isRequired":true,"uniqueKey":"oneOf.0.error.message","typeLabel":"string"},"details":{"type":"object","properties":{"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Where the problem is, as a dotted path into the input such as accountIds.add.0 or reminder.remindAt. Empty for the input as a whole.","isRequired":true,"uniqueKey":"oneOf.0.error.details.issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","description":"What is wrong with the value.","isRequired":true,"uniqueKey":"oneOf.0.error.details.issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"oneOf.0.error.details.issues.items.[INDEX]","typeLabel":"object"},"description":"Each problem with the input.","isRequired":true,"uniqueKey":"oneOf.0.error.details.issues","typeLabel":"object[]"}},"required":["issues"],"isRequired":true,"uniqueKey":"oneOf.0.error.details","typeLabel":"object"}},"required":["code","message","details"],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string","const":"INVALID_CURSOR","isRequired":true,"uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"message":{"type":"string","examples":["The cursor is invalid, or was issued for different filters or sort."],"isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string","const":"INVALID_REFERENCE","isRequired":true,"uniqueKey":"oneOf.2.error.code","typeLabel":"string"},"message":{"type":"string","examples":["The request refers to a record or user that doesn't exist or that you can't use."],"isRequired":true,"uniqueKey":"oneOf.2.error.message","typeLabel":"string"},"details":{"type":"object","properties":{"field":{"type":"string","description":"The input that holds the reference, such as accountIds.","isRequired":true,"uniqueKey":"oneOf.2.error.details.field","typeLabel":"string"},"ids":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.2.error.details.ids.items.[INDEX]","typeLabel":"string"},"description":"The IDs that could not be used.","isRequired":true,"uniqueKey":"oneOf.2.error.details.ids","typeLabel":"string[]"}},"required":["field","ids"],"isRequired":true,"uniqueKey":"oneOf.2.error.details","typeLabel":"object"}},"required":["code","message","details"],"isRequired":true,"uniqueKey":"oneOf.2.error","typeLabel":"object"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_FAILED","message":"The request is invalid.","details":{"issues":[{"path":"\u003cstring>","message":"\u003cstring>"}]}}}}},"exampleType":"generated"}},"exampleType":"generated"},"eb46738a-b0f1-4c1b-a906-43d99ee77ed3":{"description":"Missing or invalid credentials. UNAUTHORIZED.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","const":"UNAUTHORIZED","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","examples":["Missing or invalid credentials."],"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"Missing or invalid credentials."}}}},"exampleType":"generated"}},"exampleType":"generated"},"bbbd6ba5-1829-43d9-8e1a-35e0083959ab":{"description":"You don't have permission. FORBIDDEN.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","const":"FORBIDDEN","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","examples":["You don't have permission to do this."],"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"FORBIDDEN","message":"You don't have permission to do this."}}}},"exampleType":"generated"}},"exampleType":"generated"},"df5eecde-22c9-4f51-945d-28bc278f53d7":{"description":"Too many requests, or a usage limit was reached. TOO_MANY_REQUESTS.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","const":"TOO_MANY_REQUESTS","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","examples":["Too many requests."],"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"TOO_MANY_REQUESTS","message":"Too many requests."}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"0b5d493d-55f0-440f-a252-26d571d350e1":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A Parley API key.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"3863000f-3077-458c-b70e-a54d7d00d2dd":{"url":"https://api.parley.so/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A Parley API key.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A Parley API key.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"https://api.parley.so/openapi.json"},"subdomain":"parley","siteName":"Parley","title":"List files - Parley","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T23:49:30.572Z","originalFileLocation":"api-reference/files/list-files.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=\"dark\"}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=\"List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location\u0026#x27;s top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn\u0026#x27;t exist or you can\u0026#x27;t see it.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Parley\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/parley/X5NF_zI6lhIz-JiF/_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/parley/X5NF_zI6lhIz-JiF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/parley/X5NF_zI6lhIz-JiF/_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/parley/X5NF_zI6lhIz-JiF/_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/parley/X5NF_zI6lhIz-JiF/_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/parley/X5NF_zI6lhIz-JiF/_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/parley/X5NF_zI6lhIz-JiF/_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/parley/X5NF_zI6lhIz-JiF/_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/parley/X5NF_zI6lhIz-JiF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List files - Parley\">\u003cmeta data-mint-head property=\"og:description\" content=\"List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location\u0026#x27;s top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn\u0026#x27;t exist or you can\u0026#x27;t see it.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Parley\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.parley.so/api-reference/files/list-files\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://parley.mintlify.site/_mintlify/api/og/v2?division=Files\u0026amp;title=List+files\u0026amp;description=List+the+files+and+folders+of+one+location%2C+newest+first+by+default%3A+pass+exactly+one+of+projectId%2C+accountId%2C+contactId%2C+sharedSpaceId%2C+or+library%3Dtrue.+Starts\u0026amp;theme=bf0bc078082bec6aca3afa9c\u0026amp;signature=914b78bd79c8224a6f214dc51a252c113df0d651fe8f64d0314e715e780a84f4\">\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=\"List files - Parley\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location\u0026#x27;s top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn\u0026#x27;t exist or you can\u0026#x27;t see it.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://parley.mintlify.site/_mintlify/api/og/v2?division=Files\u0026amp;title=List+files\u0026amp;description=List+the+files+and+folders+of+one+location%2C+newest+first+by+default%3A+pass+exactly+one+of+projectId%2C+accountId%2C+contactId%2C+sharedSpaceId%2C+or+library%3Dtrue.+Starts\u0026amp;theme=bf0bc078082bec6aca3afa9c\u0026amp;signature=914b78bd79c8224a6f214dc51a252c113df0d651fe8f64d0314e715e780a84f4\">\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/parley/X5NF_zI6lhIz-JiF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Parley\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.parley.so/api-reference/files/list-files\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/files/list-files.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.parley.so/#organization\",\"name\":\"Parley\",\"url\":\"https://docs.parley.so\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/parley/YL1E5_EdTTw7eyg7/images/NewLogo.png?fit=max\u0026auto=format\u0026n=YL1E5_EdTTw7eyg7\u0026q=85\u0026s=8eb221eb344e5cb883733328ef22443a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.parley.so#website\",\"name\":\"Parley\",\"url\":\"https://docs.parley.so\",\"publisher\":{\"@id\":\"https://docs.parley.so/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.parley.so/api-reference/files/list-files#webpage\",\"url\":\"https://docs.parley.so/api-reference/files/list-files\",\"name\":\"List files\",\"description\":\"List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location's top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn't exist or you can't see it.\",\"dateModified\":\"2026-11-06T23:49:30.572Z\",\"isPartOf\":{\"@id\":\"https://docs.parley.so#website\"},\"breadcrumb\":{\"@id\":\"https://docs.parley.so/api-reference/files/list-files#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.parley.so/api-reference/files/list-files#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Parley\",\"item\":\"https://docs.parley.so\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List files\",\"item\":\"https://docs.parley.so/api-reference/files/list-files\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.parley.so/api-reference/files/list-files#apireference\",\"headline\":\"List files\",\"name\":\"List files\",\"description\":\"List the files and folders of one location, newest first by default: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library=true. Starts at the location's top level: pass folderId to list inside a folder, and recursive=true to include everything below. Returns 400 INVALID_REFERENCE when the location or folder doesn't exist or you can't see it.\",\"url\":\"https://docs.parley.so/api-reference/files/list-files\",\"mainEntityOfPage\":{\"@id\":\"https://docs.parley.so/api-reference/files/list-files#webpage\"},\"dateModified\":\"2026-11-06T23:49:30.572Z\",\"publisher\":{\"@id\":\"https://docs.parley.so/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.parley.so#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Parley\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Parley","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/get-started/quickstart"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Core concepts","icon":"book","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Pagination","href":"/api-reference/pagination"},{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Projects","pages":[{"title":"List projects","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /projects","href":"/api-reference/projects/list-projects"},{"title":"Create a project","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /projects","href":"/api-reference/projects/create-a-project"},{"title":"Get a project","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /projects/{id}","href":"/api-reference/projects/get-a-project"},{"title":"Delete a project","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /projects/{id}","href":"/api-reference/projects/delete-a-project"},{"title":"Update a project","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /projects/{id}","href":"/api-reference/projects/update-a-project"}]},{"group":"Accounts","pages":[{"title":"List accounts","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /accounts","href":"/api-reference/accounts/list-accounts"},{"title":"Create an account","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /accounts","href":"/api-reference/accounts/create-an-account"},{"title":"Get an account","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /accounts/{id}","href":"/api-reference/accounts/get-an-account"},{"title":"Delete an account","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /accounts/{id}","href":"/api-reference/accounts/delete-an-account"},{"title":"Update an account","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /accounts/{id}","href":"/api-reference/accounts/update-an-account"}]},{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /contacts","href":"/api-reference/contacts/create-a-contact"},{"title":"Get a contact","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /contacts/{id}","href":"/api-reference/contacts/get-a-contact"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /contacts/{id}","href":"/api-reference/contacts/delete-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /contacts/{id}","href":"/api-reference/contacts/update-a-contact"}]},{"group":"Tasks","pages":[{"title":"List tasks","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /tasks","href":"/api-reference/tasks/list-tasks"},{"title":"Create a task","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /tasks","href":"/api-reference/tasks/create-a-task"},{"title":"Get a task","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /tasks/{id}","href":"/api-reference/tasks/get-a-task"},{"title":"Delete a task","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /tasks/{id}","href":"/api-reference/tasks/delete-a-task"},{"title":"Update a task","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /tasks/{id}","href":"/api-reference/tasks/update-a-task"}]},{"group":"Fields","pages":[{"title":"List fields","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /fields","href":"/api-reference/fields/list-fields"},{"title":"Create a field","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /fields","href":"/api-reference/fields/create-a-field"},{"title":"Get a field","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /fields/{id}","href":"/api-reference/fields/get-a-field"},{"title":"Delete a field","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /fields/{id}","href":"/api-reference/fields/delete-a-field"},{"title":"Update a field","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /fields/{id}","href":"/api-reference/fields/update-a-field"}]},{"group":"Notes","pages":[{"title":"List notes","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /notes","href":"/api-reference/notes/list-notes"},{"title":"Create a note","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /notes","href":"/api-reference/notes/create-a-note"},{"title":"Get a note","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /notes/{id}","href":"/api-reference/notes/get-a-note"},{"title":"Delete a note","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /notes/{id}","href":"/api-reference/notes/delete-a-note"},{"title":"Update a note","description":"Rename a note or replace its content. Pass the version you last read as expectedVersion: if someone changed the note since, this returns 409 VERSION_CONFLICT and changes nothing. Omitted fields are left unchanged.","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /notes/{id}","href":"/api-reference/notes/update-a-note"}]},{"group":"Files","pages":[{"title":"List files","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /files","href":"/api-reference/files/list-files"},{"title":"Add a file","description":"Add an uploaded file to a project, account, contact, shared space, or the Library: pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library. Create the upload with POST /uploads and PUT the file's bytes to its url first. Parley then extracts the file's text in the background, and the file can be read once its status is ready. Adding the same upload again returns the same file; adding it anywhere else returns 409 UPLOAD_ALREADY_ADDED.","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /files","href":"/api-reference/files/add-a-file"},{"title":"Get a file","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /files/{id}","href":"/api-reference/files/get-a-file"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /files/{id}","href":"/api-reference/files/delete-a-file"},{"title":"Update a file","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /files/{id}","href":"/api-reference/files/update-a-file"},{"title":"Read a file","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /files/{id}/text","href":"/api-reference/files/read-a-file"},{"title":"Get a file download URL","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /files/{id}/download","href":"/api-reference/files/get-a-file-download-url"},{"title":"Create a folder","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /folders","href":"/api-reference/files/create-a-folder"},{"title":"Create an upload","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /uploads","href":"/api-reference/files/create-an-upload"}]},{"group":"Syncs","pages":[{"title":"List syncs","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /syncs","href":"/api-reference/syncs/list-syncs"},{"title":"Sync a folder","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /syncs","href":"/api-reference/syncs/sync-a-folder"},{"title":"Run a sync now","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /syncs/{id}/run","href":"/api-reference/syncs/run-a-sync-now"},{"title":"Delete a sync","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /syncs/{id}","href":"/api-reference/syncs/delete-a-sync"}]},{"group":"Activity","pages":[{"title":"List account activity","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /accounts/{accountId}/activity","href":"/api-reference/activity/list-account-activity"},{"title":"List activity","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /activity","href":"/api-reference/activity/list-activity"},{"title":"List contact activity","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /contacts/{contactId}/activity","href":"/api-reference/activity/list-contact-activity"},{"title":"List project activity","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /projects/{projectId}/activity","href":"/api-reference/activity/list-project-activity"}]},{"group":"Sessions","pages":[{"title":"List sessions","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /sessions","href":"/api-reference/sessions/list-sessions"},{"title":"Start a session","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /sessions","href":"/api-reference/sessions/start-a-session"},{"title":"Get a session","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /sessions/{id}","href":"/api-reference/sessions/get-a-session"},{"title":"Delete a session","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /sessions/{id}","href":"/api-reference/sessions/delete-a-session"},{"title":"Rename a session","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /sessions/{id}","href":"/api-reference/sessions/rename-a-session"},{"title":"Stop a session","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /sessions/{id}/stop","href":"/api-reference/sessions/stop-a-session"},{"title":"List a session's messages","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /sessions/{id}/messages","href":"/api-reference/sessions/list-a-sessions-messages"},{"title":"Send a message","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /sessions/{id}/messages","href":"/api-reference/sessions/send-a-message"}]},{"group":"Automations","pages":[{"title":"List automations","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /automations","href":"/api-reference/automations/list-automations"},{"title":"Create an automation","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /automations","href":"/api-reference/automations/create-an-automation"},{"title":"Get an automation","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /automations/{id}","href":"/api-reference/automations/get-an-automation"},{"title":"Delete an automation","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /automations/{id}","href":"/api-reference/automations/delete-an-automation"},{"title":"Update an automation","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /automations/{id}","href":"/api-reference/automations/update-an-automation"},{"title":"List an automation's runs","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /automations/{id}/runs","href":"/api-reference/automations/list-an-automations-runs"},{"title":"Run an automation now","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /automations/{id}/runs","href":"/api-reference/automations/run-an-automation-now"}]},{"group":"Skills","pages":[{"title":"List skills","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /skills","href":"/api-reference/skills/list-skills"},{"title":"Create a skill","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /skills","href":"/api-reference/skills/create-a-skill"},{"title":"Get a skill","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /skills/{slug}","href":"/api-reference/skills/get-a-skill"},{"title":"Delete a skill","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json delete /skills/{slug}","href":"/api-reference/skills/delete-a-skill"},{"title":"Update a skill","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json patch /skills/{slug}","href":"/api-reference/skills/update-a-skill"},{"title":"Get a skill download URL","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /skills/{slug}/download","href":"/api-reference/skills/get-a-skill-download-url"}]},{"group":"Users","pages":[{"title":"Get the current user","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /me","href":"/api-reference/users/get-the-current-user"},{"title":"List users","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /users","href":"/api-reference/users/list-users"},{"title":"Get a user","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json get /users/{id}","href":"/api-reference/users/get-a-user"}]}]}]},"basePath":"","title":"List files - Parley","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}