Zoho Forms Files API
Uploads file attachments for use in Upload fields and downloads file attachments from Zoho Forms records, served from Zoho's upload host.
Uploads file attachments for use in Upload fields and downloads file attachments from Zoho Forms records, served from Zoho's upload host.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/zoho-forms:zoho-forms-files-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Files API
version: 1.0.0
contact:
name: Zoho Forms
description: 'The Files APIs let you upload files for the file fields of a form and download the files attached to records.
To add a record with a file, first upload the file, then send the returned path in Add a record.
Use the upload and download servers of the data center where your Zoho account is hosted, in the same way you use the API domain. The URL path is the same for every data center: https://{server}/v3/files/formsapi-v1.
Data centerUpload serverDownload server
United Statesupload.zoho.comdownload.zoho.com
Europeupload.zoho.eudownload.zoho.eu
Indiaupload.zoho.indownload.zoho.in
Australiaupload.zoho.com.audownload.zoho.com.au
Japanupload.zoho.jpdownload.zoho.jp
Canadaupload.zohocloud.cadownload.zohocloud.ca
Saudi Arabiaupload.zoho.sadownload.zoho.sa
United Arab Emiratesupload.zoho.aedownload.zoho.ae
United Kingdomupload.zoho.ukdownload.zoho.uk
Chinaupload.zoho.com.cndownload.zoho.com.cn'
servers:
- url: https://upload.zoho.com/v3/files/formsapi-v1
description: Zoho Forms file upload server.
tags:
- name: Files
description: 'The Files APIs let you upload files for the file fields of a form and download the files attached to records.
To add a record with a file, first upload the file, then send the returned path in Add a record.
Use the upload and download servers of the data center where your Zoho account is hosted, in the same way you use the API domain. The URL path is the same for every data center: https://{server}/v3/files/formsapi-v1.
Data centerUpload serverDownload server
United Statesupload.zoho.comdownload.zoho.com
Europeupload.zoho.eudownload.zoho.eu
Indiaupload.zoho.indownload.zoho.in
Australiaupload.zoho.com.audownload.zoho.com.au
Japanupload.zoho.jpdownload.zoho.jp
Canadaupload.zohocloud.cadownload.zohocloud.ca
Saudi Arabiaupload.zoho.sadownload.zoho.sa
United Arab Emiratesupload.zoho.aedownload.zoho.ae
United Kingdomupload.zoho.ukdownload.zoho.uk
Chinaupload.zoho.com.cndownload.zoho.com.cn'
paths:
/supload:
post:
operationId: Upload_File_Attachment
summary: Upload a file
description: Uploads a file attachment to a specific form field. The uploaded file path returned in the response can be referenced when creating a record through the Create Record API.
tags:
- Files
servers:
- url: https://upload.zoho.com/v3/files/formsapi-v1
description: Zoho Forms file upload server.
security:
- Zoho_Auth:
- ZohoForms.api.files.CREATE
- ZohoFiles.files.WRITE
parameters:
- name: upload-id
in: header
required: true
description: Reference identifier used to uniquely identify the request. Provide a 5-10 character alphanumeric value.
schema:
type: string
minLength: 5
maxLength: 10
pattern: ^[A-Za-z0-9]+$
example: upl12345
- name: x-form_id
in: header
required: true
description: The unique ID of the form to which you want to upload the file.
schema:
type: string
pattern: ^[0-9]{1,19}$
example: '4883000019233001'
- name: x-field_id
in: header
required: true
description: The unique ID of the form field to which you want to upload the file.
schema:
type: string
pattern: ^[0-9]{1,19}$
example: '4883000019271002'
- name: x-filename
in: header
required: true
description: The name of the file you want to upload.
schema:
type: string
minLength: 1
example: Resume.pdf
requestBody:
required: true
description: The file content.
content:
application/octet-stream:
schema:
type: string
format: binary
description: The file content.
example: (The file content, for example the bytes of Resume.pdf)
responses:
'200':
description: File uploaded. data.path is the path to send in Add a record.
content:
application/json:
schema:
$ref: '#/components/schemas/FileUploadResponse'
examples:
uploaded:
summary: File uploaded
value:
code: SUCCESS
data:
path: /Employee/FileUpload/1785732832776_Employee_Resume
status: success
timestamp: '2026-08-03T04:53:53Z'
'400':
description: The request is not valid. Required headers may be missing, x-field_id may not be a file field of this form, or the file was rejected.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
missingParams:
summary: Missing headers
value:
status: error
code: VALIDATION_FAILED
message: Required parameters are missing in the request.
details: []
timestamp: '2026-10-17T07:10:00Z'
'401':
$ref: '#/components/responses/Error'
'403':
description: You cannot upload files to this form. You may not own the form, or the form may be deactivated.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
error:
summary: UNAUTHORIZED
value:
status: error
code: UNAUTHORIZED
message: You are not authorized to perform this action.
details: []
timestamp: '2026-10-17T07:10:00Z'
'404':
description: '"Invalid form ID." x-form_id is not a form in your organization.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
error:
summary: RESOURCE_NOT_FOUND
value:
status: error
code: RESOURCE_NOT_FOUND
message: Invalid form ID.
details: []
timestamp: '2026-10-17T07:10:00Z'
/download/{formId}:
get:
operationId: Download_File_Attachment
summary: Download a file
description: 'Downloads a file attached to a form record. The response is the file content.
This API uses the download server of your data center, not the API domain. To get a file''s path, use the value of the record''s File Upload, Image Upload or Media Upload field in Get a record or List records.'
tags:
- Files
servers:
- url: https://download.zoho.com/v3/files/formsapi-v1
description: Zoho Forms file download server.
security:
- Zoho_Auth:
- ZohoForms.api.files.READ
- ZohoFiles.files.READ
parameters:
- name: formId
in: path
required: true
description: The unique ID of the form you own whose files you want to download.
schema:
type: string
pattern: ^[0-9]{1,19}$
example: '2000022823087'
- name: x-cli-msg
in: query
required: true
description: '<p>Tells the server which file to download. To build it:</p><ol><li>Create a JSON object with these keys:<ul><li><code>path</code>: Path of the file. Get it from the file field''s value in <a href="../records/#get-a-record">Get a record</a> or <a href="../records/#list-records">List records</a>.</li><li><code>x-field_id</code>: ID of the file field. To find it, use <a href="../forms/#get-form-details">Get form details</a>.</li><li><code>x-record_id</code>: ID of the record. It is the <code>id</code> in <a href="../records/#list-records">List records</a>.</li><li><code>x-report_id</code>: ID of the report. To find it, use <a href="../reports/#list-reports">List reports</a>. Include it only when you download the file from a report.</li></ul></li><li>URL-encode the JSON.</li><li>Send the result as the value of <code>x-cli-msg</code>.</li></ol><p>JSON before URL encoding:</p><pre>{"path":"/JobApplicationForm/FileUpload/1754035200000_Resume.pdf","x-field_id":"2000022828001","x-record_id":"2000022830001"}</pre><p>After URL encoding (the value to send):</p><pre>%7B%22path%22%3A%22%2FJobApplicationForm%2FFileUpload%2F1754035200000_Resume.pdf%22%2C%22x-field_id%22%3A%222000022828001%22%2C%22x-record_id%22%3A%222000022830001%22%7D</pre>'
schema:
type: string
minLength: 1
example: '{"path":"/JobApplicationForm/FileUpload/1754035200000_Resume.pdf","x-field_id":"2000022828001","x-record_id":"2000022830001"}'
responses:
'200':
description: The file content.
content:
application/octet-stream:
schema:
type: string
format: binary
examples:
file:
summary: File content
value: (The file content, for example the bytes of Resume.pdf)
'400':
description: The request is not valid. x-cli-msg may miss a required key, path may not belong to this form and field, or the file may not exist ("The requested file was not found.").
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
missingParams:
summary: Missing parameters
value:
status: error
code: VALIDATION_FAILED
message: Required parameters are missing in the request.
details: []
timestamp: '2026-10-17T07:10:00Z'
'401':
$ref: '#/components/responses/Error'
'403':
description: You cannot download files of this form. You may not own the form or have access to the report.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
error:
summary: UNAUTHORIZED
value:
status: error
code: UNAUTHORIZED
message: You are not authorized to perform this action.
details: []
timestamp: '2026-10-17T07:10:00Z'
'404':
description: The form, report or record could not be found ("Invalid form ID.", "Invalid report ID." or "Invalid record ID.").
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
form:
summary: Invalid form ID
value:
status: error
code: RESOURCE_NOT_FOUND
message: Invalid form ID.
details: []
timestamp: '2026-10-17T07:10:00Z'
components:
schemas:
ErrorResponse:
type: object
description: Error response. code identifies the error and message describes it. details lists the values that caused the error, and is empty when there are none.
required:
- status
- code
- message
- details
- timestamp
properties:
status:
type: string
enum:
- error
code:
type: string
description: Error category.
enum:
- VALIDATION_FAILED
- UNAUTHENTICATED
- UNAUTHORIZED
- LIMIT_EXCEEDED
- RESOURCE_NOT_FOUND
- INVALID_URL
- METHOD_NOT_ALLOWED
- RATE_LIMIT_EXCEEDED
- PROCESSING_ERROR
message:
type: string
description: Summary of the error. For validation errors it is "Request validation failed." and the reason is in details[].message.
details:
type: array
items:
$ref: '#/components/schemas/ErrorDetail'
timestamp:
type: string
format: date-time
description: Server time of the response, in UTC, in ISO 8601 format without fractions of a second, for example 2026-10-11T09:15:30Z.
ErrorDetail:
type: object
description: One problem in the request. The keys depend on where the error was found.
required:
- message
properties:
message:
type: string
description: Description of the problem, for example "Invalid value." or "parent.column is required.".
field:
type: string
description: Name of the key that failed, for example "id" for "$.parent.id", or the field API name for record data errors.
path:
type: string
description: Location of the failing value in the request body, as a JSON path starting with "$".
parameter_name:
type: string
description: Name of the failing query parameter, for example "limit".
column_details:
type: array
description: Matrix record errors only. Names of the matrix columns that failed in that row.
items:
type: string
FileUploadResponse:
type: object
description: Response of Upload a file.
properties:
status:
type: string
enum:
- success
code:
type: string
enum:
- SUCCESS
data:
type: object
required:
- path
properties:
path:
type: string
description: Path of the uploaded file. Send it in Add a record.
timestamp:
type: string
description: Server time of the response, in UTC.
responses:
Error:
description: The access token is invalid, has expired or does not have the required scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
error:
summary: UNAUTHENTICATED
value:
status: error
code: UNAUTHENTICATED
message: The provided OAuth access token is invalid.
details: []
timestamp: '2026-10-17T07:10:00Z'
securitySchemes:
Zoho_Auth:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.zoho.com/oauth/v2/auth
tokenUrl: https://accounts.zoho.com/oauth/v2/token
scopes:
ZohoForms.api.forms.READ: List forms, read form metadata, pages and fields, list form reports.
ZohoForms.api.forms.CREATE: Create forms, pages and fields, and duplicate fields.
ZohoForms.api.forms.UPDATE: Update form properties, pages and fields, and change field order.
ZohoForms.api.forms.DELETE: Delete pages.
ZohoForms.api.records.READ: List and fetch form records, list and search report records.
ZohoForms.api.records.CREATE: Submit new form records.
ZohoForms.api.files.CREATE: Upload files for File Upload, Image Upload and Media Upload fields.
ZohoForms.api.files.READ: Download files attached to form records.
ZohoFiles.files.READ: Read files in Zoho Files for form attachments.
ZohoFiles.files.WRITE: Write files in Zoho Files for form attachments.
refreshUrl: https://accounts.zoho.com/oauth/v2/token