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.
The id of an upload, once its bytes have been PUT to its url, holding the file to add. It keeps its file name. Adding the same upload again returns the same file.
Whether Parley has extracted the file's text: pending (queued), processing, ready (its text can be read), or failed (download it instead).
Available options:
pending,
processing,
ready,
failed
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/add-a-file","slug":"/api-reference/files/add-a-file","pageMetadata":{"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","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: \"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.\"\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":"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","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createFile","summary":"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.","tags":["Files"],"requestBody":"4125741a-2075-4af0-8f8c-1881309bf166","responses":{"201":"6b08cf06-49d5-4d39-b199-229e4d4a0b14","400":"a2bb63ce-9211-43ee-84f4-8445081f28d4","401":"21b19389-8a30-443f-badc-656a008ac268","403":"4adc2c43-517f-459c-81e0-7aa8b87cfe2e","409":"c659752f-45fa-4710-bd45-457a47a51d75","429":"fe04eb6c-bac5-4b6e-9b20-37994797fd67"},"method":"post","type":"path","servers":["3863000f-3077-458c-b70e-a54d7d00d2dd"],"security":["0b5d493d-55f0-440f-a252-26d571d350e1"],"path":"/files","baseUrlOptions":["https://api.parley.so/v1"],"title":"Add a file","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uploadId":{"type":"string","minLength":1,"description":"The id of an upload, once its bytes have been PUT to its url, holding the file to add. It keeps its file name. Adding the same upload again returns the same file.","isRequired":true,"uniqueKey":"uploadId","typeLabel":"string"},"projectId":{"type":"string","minLength":1,"description":"Add it to this project's files. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"projectId","typeLabel":"string"},"accountId":{"type":"string","minLength":1,"description":"Add it to this account's files. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"accountId","typeLabel":"string"},"contactId":{"type":"string","minLength":1,"description":"Add it to this contact's files. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"contactId","typeLabel":"string"},"sharedSpaceId":{"type":"string","minLength":1,"description":"Add it to this shared space's files. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"sharedSpaceId","typeLabel":"string"},"library":{"const":true,"description":"true for the organization's Library. Pass exactly one of projectId, accountId, contactId, sharedSpaceId, or library.","uniqueKey":"library","typeLabel":"any"},"folderId":{"type":"string","minLength":1,"description":"Put it inside this folder. Omit for the top level.","uniqueKey":"folderId","typeLabel":"string"}},"required":["uploadId"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"uploadId":"\u003cstring>","projectId":"\u003cstring>","accountId":"\u003cstring>","contactId":"\u003cstring>","sharedSpaceId":"\u003cstring>","library":true,"folderId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6b08cf06-49d5-4d39-b199-229e4d4a0b14":{"description":"Created.","content":{"application/json":{"schema":{"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":"oneOf.0.type","typeLabel":"any"},"id":{"type":"string","minLength":1,"description":"The file or folder ID.","isRequired":true,"uniqueKey":"oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"The name, including any file extension.","isRequired":true,"uniqueKey":"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":"oneOf.0.location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"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":"oneOf.0.location.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"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":"oneOf.0.location.oneOf.1.type","typeLabel":"any"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"oneOf.0.location.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"The shared space title.","isRequired":true,"uniqueKey":"oneOf.0.location.oneOf.1.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"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":"oneOf.0.location.oneOf.2.type","typeLabel":"any"}},"isRequired":true,"uniqueKey":"oneOf.0.location.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"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":"oneOf.0.folder.oneOf.0.type","typeLabel":"any"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"oneOf.0.folder.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"The folder name.","isRequired":true,"uniqueKey":"oneOf.0.folder.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.0.folder.oneOf.0","typeLabel":"object"},{"type":"null","description":"The folder it is in, or null at the top level.","isRequired":true,"uniqueKey":"oneOf.0.folder.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.folder","typeLabel":"object | null"},"createdAt":{"type":"string","format":"date-time","description":"When it was added.","isRequired":true,"uniqueKey":"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":"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":"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":"oneOf.0.mediaType.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"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":"oneOf.0.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"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":"oneOf.1.type","typeLabel":"any"},"id":{"type":"string","minLength":1,"description":"The file or folder ID.","isRequired":true,"uniqueKey":"oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"The name, including any file extension.","isRequired":true,"uniqueKey":"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":"oneOf.1.location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"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":"oneOf.1.location.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"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":"oneOf.1.location.oneOf.1.type","typeLabel":"any"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"oneOf.1.location.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"The shared space title.","isRequired":true,"uniqueKey":"oneOf.1.location.oneOf.1.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"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":"oneOf.1.location.oneOf.2.type","typeLabel":"any"}},"isRequired":true,"uniqueKey":"oneOf.1.location.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"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":"oneOf.1.folder.oneOf.0.type","typeLabel":"any"},"id":{"type":"string","description":"Its ID.","isRequired":true,"uniqueKey":"oneOf.1.folder.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"The folder name.","isRequired":true,"uniqueKey":"oneOf.1.folder.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.folder.oneOf.0","typeLabel":"object"},{"type":"null","description":"The folder it is in, or null at the top level.","isRequired":true,"uniqueKey":"oneOf.1.folder.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.folder","typeLabel":"object | null"},"createdAt":{"type":"string","format":"date-time","description":"When it was added.","isRequired":true,"uniqueKey":"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":"oneOf.1.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"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"}}},"exampleType":"generated"}},"headers":{"Location":{"description":"The URL of the created resource.","schema":{"type":"string"}}},"exampleType":"generated"},"a2bb63ce-9211-43ee-84f4-8445081f28d4":{"description":"The request was invalid. VALIDATION_FAILED, 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_REFERENCE","isRequired":true,"uniqueKey":"oneOf.1.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.1.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.1.error.details.field","typeLabel":"string"},"ids":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.error.details.ids.items.[INDEX]","typeLabel":"string"},"description":"The IDs that could not be used.","isRequired":true,"uniqueKey":"oneOf.1.error.details.ids","typeLabel":"string[]"}},"required":["field","ids"],"isRequired":true,"uniqueKey":"oneOf.1.error.details","typeLabel":"object"}},"required":["code","message","details"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","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"},"21b19389-8a30-443f-badc-656a008ac268":{"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"},"4adc2c43-517f-459c-81e0-7aa8b87cfe2e":{"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"},"c659752f-45fa-4710-bd45-457a47a51d75":{"description":"The request conflicts with the current state. UPLOAD_ALREADY_ADDED.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","const":"UPLOAD_ALREADY_ADDED","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","examples":["This upload was already added somewhere else."],"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":"UPLOAD_ALREADY_ADDED","message":"This upload was already added somewhere else."}}}},"exampleType":"generated"}},"exampleType":"generated"},"fe04eb6c-bac5-4b6e-9b20-37994797fd67":{"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":"Add a file - Parley","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T23:49:30.588Z","originalFileLocation":"api-reference/files/add-a-file.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=\"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\u0026#x27;s bytes to its url first. Parley then extracts the file\u0026#x27;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.\">\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=\"Add a file - Parley\">\u003cmeta data-mint-head property=\"og:description\" content=\"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\u0026#x27;s bytes to its url first. Parley then extracts the file\u0026#x27;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.\">\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/add-a-file\">\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=Add+a+file\u0026amp;description=Add+an+uploaded+file+to+a+project%2C+account%2C+contact%2C+shared+space%2C+or+the+Library%3A+pass+exactly+one+of+projectId%2C+accountId%2C+contactId%2C+sharedSpaceId%2C+or+librar\u0026amp;theme=bf0bc078082bec6aca3afa9c\u0026amp;signature=eac73be028516ce3f073002b22f28ec7145b7b8b11ccad38068f63f07919cdd9\">\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=\"Add a file - Parley\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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\u0026#x27;s bytes to its url first. Parley then extracts the file\u0026#x27;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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://parley.mintlify.site/_mintlify/api/og/v2?division=Files\u0026amp;title=Add+a+file\u0026amp;description=Add+an+uploaded+file+to+a+project%2C+account%2C+contact%2C+shared+space%2C+or+the+Library%3A+pass+exactly+one+of+projectId%2C+accountId%2C+contactId%2C+sharedSpaceId%2C+or+librar\u0026amp;theme=bf0bc078082bec6aca3afa9c\u0026amp;signature=eac73be028516ce3f073002b22f28ec7145b7b8b11ccad38068f63f07919cdd9\">\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/add-a-file\">\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/add-a-file.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/add-a-file#webpage\",\"url\":\"https://docs.parley.so/api-reference/files/add-a-file\",\"name\":\"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.\",\"dateModified\":\"2026-11-06T23:49:30.588Z\",\"isPartOf\":{\"@id\":\"https://docs.parley.so#website\"},\"breadcrumb\":{\"@id\":\"https://docs.parley.so/api-reference/files/add-a-file#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.parley.so/api-reference/files/add-a-file#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Files\",\"item\":\"https://docs.parley.so/api-reference/files/list-files\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add a file\",\"item\":\"https://docs.parley.so/api-reference/files/add-a-file\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.parley.so/api-reference/files/add-a-file#apireference\",\"headline\":\"Add a file\",\"name\":\"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.\",\"url\":\"https://docs.parley.so/api-reference/files/add-a-file\",\"mainEntityOfPage\":{\"@id\":\"https://docs.parley.so/api-reference/files/add-a-file#webpage\"},\"dateModified\":\"2026-11-06T23:49:30.588Z\",\"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","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","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"},{"title":"Add a file","deprecated":null,"version":null,"openapi":"https://api.parley.so/openapi.json post /files","href":"/api-reference/files/add-a-file"},{"title":"Get a file","description":"Get a file or folder by ID. A file can be read once its status is ready.","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":"Add a file - 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"]}