Attachments

Attachments AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

The Attachments API lets you upload files to multiple chats, users and channels, list and search the attachments you can access, and edit or download them. For the product feature, see Share and view files.

Use the Attachments API to:

  • Upload up to 5 files and share them with chats, users, email addresses or channels in a single request.
  • List the attachments you can access, filtered by media type, creator, chat or time range.
  • Search attachments by file name and comment.
  • Get the details of an attachment.
  • Edit the comment of an attachment or replace its file.
  • Download the file of an attachment.

Upload targets

Specify at least one target when you upload files.

Parameter Target
chat_ids Existing chats
user_ids Users, by user ID or email address
email_ids Email addresses, resolved to direct-message chats
channel_unique_names Channels, by unique name

Download Attachments OpenAPI Document
End Points

Upload and share attachments AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Upload up to 5 files and share them with multiple chats, users or channels in a single request. This endpoint also replaces the v2 send-file APIs for chats, channels, channels by name, buddies and bots. Specify at least one target using chat_ids, user_ids, email_ids or channel_unique_names.

Threshold limit: 10 requests per min per user
Maximum API calls allowed within the window.

Lock period: 2 minutes
Cooldown period applied after threshold exhaustion.


OAuth Scope : ZohoCliq.Attachments.CREATE

Arguments

files
array
(Required)
Files to upload.
  • Minimum items: 1
  • Maximum items: 5
  • Notes: Each file can be up to the maximum allowed size. The file name can be up to 104 characters long.
chat_ids
string
Comma-separated IDs of the target chats.
Maximum length: 500
Maximum items: 5
user_ids
string
Comma-separated target user IDs or email addresses.
Maximum length: 500
Maximum items: 5
email_ids
string
Comma-separated target email addresses, resolved to direct-message chats.
Maximum length: 500
Maximum items: 5
channel_unique_names
string
Comma-separated unique names of the target channels.
Maximum length: 500
Maximum items: 5
comments
string
Comments for the files, one per file.
  • Maximum length: 25000
  • Maximum items: 5
  • Maximum length of each comment: 4000
  • Format: JSON array serialized as a string
titles
string
Titles for the files.
  • Maximum length: 600
  • Maximum items: 10
  • Maximum length of each title: 50
  • Format: JSON array serialized as a string
buttons
string
Buttons for each file.
  • Maximum length: 12000
  • Maximum items: 10
  • Maximum buttons per file: 2
  • Maximum length of the buttons of one file: 1200
  • Format: JSON array serialized as a string
reply_to
string
ID of the message that the files reply to.
reply_from
string
ID of the chat from which a private reply originates.
Maximum length: 100
thread_message_id
string
ID of the parent message used to create a thread.
post_in_parent
boolean
Set to true to also post in the parent chat when posting to a thread.
bot_unique_name
string
Unique name of a bot. When set, the files are sent as this bot.
Maximum length: 100
bot_image
string
URL or base64 data of a custom sender image.
Maximum length: 1024000
bot_name
string
Custom sender name.
Minimum length: 1
message_topic
string
Topic used as the thread title when a thread originates from this message.
Maximum length: 255
extension_key
string
Encrypted extension key.
Maximum length: 250

Request Example

Click to copy
parameters_data = Map(); parameters_data.put("field1", "value1") parameters_data.put("field2", "value2") headers_data = Map(); headers_data.put("Authorization", "Bearer REPLACE_BEARER_TOKEN"); response = invokeUrl [ url: "https://cliq.zoho.com/api/v3/attachments" type: POST headers: headers_data parameters: parameters_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001"); RequestBody body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n"); Request request = new Request.Builder() .url("https://cliq.zoho.com/api/v3/attachments") .post(body) .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001") .build(); Response response = client.newCall(request).execute();
const form = new FormData(); form.append("field1", "value1"); form.append("field2", "value2"); const options = { method: 'POST', headers: { Authorization: 'Bearer REPLACE_BEARER_TOKEN', 'content-type': 'multipart/form-data; boundary=---011000010111000001101001' } }; options.body = form; fetch('https://cliq.zoho.com/api/v3/attachments', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("cliq.zoho.com") payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n" headers = { 'Authorization': "Bearer REPLACE_BEARER_TOKEN", 'content-type': "multipart/form-data; boundary=---011000010111000001101001" } conn.request("POST", "/api/v3/attachments", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "POST", "hostname": "cliq.zoho.com", "port": null, "path": "/api/v3/attachments", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN", "content-type": "multipart/form-data; boundary=---011000010111000001101001" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n"); req.end();
var client = new RestClient("https://cliq.zoho.com/api/v3/attachments"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); request.AddHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001"); request.AddParameter("multipart/form-data; boundary=---011000010111000001101001", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody); IRestResponse response = client.Execute(request);
var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://cliq.zoho.com/api/v3/attachments"), Headers = { { "Authorization", "Bearer REPLACE_BEARER_TOKEN" }, }, Content = new MultipartFormDataContent { new StringContent("value1") { Headers = { ContentDisposition = new ContentDispositionHeaderValue("form-data") { Name = "field1", } } }, new StringContent("value2") { Headers = { ContentDisposition = new ContentDispositionHeaderValue("form-data") { Name = "field2", } } }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }
package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://cliq.zoho.com/api/v3/attachments" payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer REPLACE_BEARER_TOKEN") req.Header.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
const data = new FormData(); data.append("field1", "value1"); data.append("field2", "value2"); const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("POST", "https://cliq.zoho.com/api/v3/attachments"); xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); xhr.send(data);
curl --request POST \ --url https://cliq.zoho.com/api/v3/attachments \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \ --header 'content-type: multipart/form-data' \ --form field1=value1 \ --form field2=value2

Body Parameters

Click to copy
{ "files": [ "Q4-Sales-Report.pdf" ], "chat_ids": "CT_5337332635256352134_581315020", "user_ids": "198551042,olivia.palmer@zylker.com", "email_ids": "olivia.palmer@zylker.com", "channel_unique_names": "salespipelinereviews", "comments": "[\"Q4 pipeline review deck for the Zylker Sales team\"]", "titles": "[\"Q4 Pipeline Review\"]", "buttons": "[[{\"label\": \"View Pipeline\", \"action\": {\"type\": \"open.url\", \"data\": {\"web\": \"https://www.zylker.com/sales/pipeline\"}}}]]", "reply_to": "9064563923721%140546835004", "reply_from": "CT_5337332635256352134_581315020", "thread_message_id": "9064563923721%140546835004", "post_in_parent": true, "bot_unique_name": "zylkernotifications", "bot_image": "https://www.zylker.com/images/zylker-notifications.png", "bot_name": "Zylker Notifications", "message_topic": "Q4 pipeline review", "extension_key": "ZW5jcnlwdGVkX3p5bGtlcl9leHRlbnNpb25fa2V5" }

Response Example

{ "message": "The request cannot be performed. Usually because of malformed parameter or missing parameter." }
{ "message": "Request was rejected because of invalid AuthToken." }
{ "message": "The user does not have enough permission or possibly not an user of the respective organization to access the resource." }
{ "message": "The requested resource does not exist." }
{ "message": "The HTTP method used is not supported for this endpoint." }
{ "message": "The requested response format is not supported." }
{ "message": "The number of API requests has exceeded the threshold limit. Retry after the lock period." }
{ "message": "Cliq server encountered an error which prevents it from fulfilling the request." }

List attachments AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Retrieve the attachments visible to the current user. Filter by media type, creator, chat or time range, or search by file name and comment. Use next_token to paginate.

Threshold limit: 20 requests per min per user
Maximum API calls allowed within the window.

Lock period: 5 minutes
Cooldown period applied after threshold exhaustion.


OAuth Scope : ZohoCliq.Attachments.READ

Query Parameters

user_ids
string
Comma-separated user IDs or email addresses of the creators.
Maximum length: 500
Maximum items: 10
chat_ids
string
Comma-separated chat IDs to filter by.
Maximum length: 1000
Maximum items: 10
next_token
string
Pagination cursor from the previous response.
Maximum length: 250
from_time
long
Start of the time range.
Format: int64
Unit: Epoch milliseconds
to_time
long
End of the time range.
Format: int64
Unit: Epoch milliseconds
limit
integer
Maximum number of results per page.
Default: 50
Maximum: 50

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Bearer REPLACE_BEARER_TOKEN"); response = invokeUrl [ url: "https://cliq.zoho.com/api/v3/attachments" type: GET headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://cliq.zoho.com/api/v3/attachments") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
const options = {method: 'GET', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'}}; fetch('https://cliq.zoho.com/api/v3/attachments', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("cliq.zoho.com") headers = { 'Authorization': "Bearer REPLACE_BEARER_TOKEN" } conn.request("GET", "/api/v3/attachments", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "GET", "hostname": "cliq.zoho.com", "port": null, "path": "/api/v3/attachments", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
var client = new RestClient("https://cliq.zoho.com/api/v3/attachments"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); IRestResponse response = client.Execute(request);
var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://cliq.zoho.com/api/v3/attachments"), Headers = { { "Authorization", "Bearer REPLACE_BEARER_TOKEN" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://cliq.zoho.com/api/v3/attachments" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer REPLACE_BEARER_TOKEN") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
const data = null; const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("GET", "https://cliq.zoho.com/api/v3/attachments"); xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); xhr.send(data);
curl --request GET \ --url https://cliq.zoho.com/api/v3/attachments \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Response Example

{ "url": "/api/v3/attachments", "type": "attachment", "data": [ { "name": "Q4-Sales-Report.pdf", "creator": { "name": "Olivia Palmer", "id": "198551042" }, "creation_time": "2026-10-20T04:24:37-07:00", "attachment_id": "a_76375330320155450239021227_2_581315020", "message_id": "9064563923721%140546835004", "content_type": "application/pdf", "permissions": { "download": true, "edit": true, "forward": true, "delete": true }, "meta": { "width": 2133, "height": 2133, "thumbnail_width": 230, "thumbnail_height": 230 }, "has_thumbnail": false, "message_type": "file", "chat": { "title": "#Sales Pipeline Reviews", "id": "CT_5337332635256352134_581315020" }, "size": "283296" }, {...}, {...} ], "next_token": "eyJsaW1pdCI6MSwicGdubyI6MX0=" }
{ "message": "The request cannot be performed. Usually because of malformed parameter or missing parameter." }
{ "message": "Request was rejected because of invalid AuthToken." }
{ "message": "The user does not have enough permission or possibly not an user of the respective organization to access the resource." }
{ "message": "The requested resource does not exist." }
{ "message": "The HTTP method used is not supported for this endpoint." }
{ "message": "The requested response format is not supported." }
{ "message": "The number of API requests has exceeded the threshold limit. Retry after the lock period." }
{ "message": "Cliq server encountered an error which prevents it from fulfilling the request." }

Edit an attachment AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Edit the comment of an attachment or replace its file.

Threshold limit: 5 requests per min per user
Maximum API calls allowed within the window.

Lock period: 2 minutes
Cooldown period applied after threshold exhaustion.


OAuth Scope : ZohoCliq.Attachments.UPDATE

Arguments

file
binary
Replacement file for the attachment.
Notes: The file name can be up to 104 characters long.
comment
string
Edited comment for the file.
Maximum length: 5000
message_id
string
Unique ID of the message that carries the attachment.
notify_edit
boolean
Set to true to notify the chat participants about the edit.

Path Parameters

ATTACHMENT_ID
string
(Required)
Unique ID of the attachment. Get it from the List attachments response.
Pattern: ^[a-zA-Z0-9_]+$

Request Example

Click to copy
parameters_data = Map(); parameters_data.put("field1", "value1") parameters_data.put("field2", "value2") headers_data = Map(); headers_data.put("Authorization", "Bearer REPLACE_BEARER_TOKEN"); response = invokeUrl [ url: "https://cliq.zoho.com/api/v3/attachments/987000000654321" type: PUT headers: headers_data parameters: parameters_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001"); RequestBody body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n"); Request request = new Request.Builder() .url("https://cliq.zoho.com/api/v3/attachments/987000000654321") .put(body) .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001") .build(); Response response = client.newCall(request).execute();
const form = new FormData(); form.append("field1", "value1"); form.append("field2", "value2"); const options = { method: 'PUT', headers: { Authorization: 'Bearer REPLACE_BEARER_TOKEN', 'content-type': 'multipart/form-data; boundary=---011000010111000001101001' } }; options.body = form; fetch('https://cliq.zoho.com/api/v3/attachments/987000000654321', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("cliq.zoho.com") payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n" headers = { 'Authorization': "Bearer REPLACE_BEARER_TOKEN", 'content-type': "multipart/form-data; boundary=---011000010111000001101001" } conn.request("PUT", "/api/v3/attachments/987000000654321", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "PUT", "hostname": "cliq.zoho.com", "port": null, "path": "/api/v3/attachments/987000000654321", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN", "content-type": "multipart/form-data; boundary=---011000010111000001101001" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n"); req.end();
var client = new RestClient("https://cliq.zoho.com/api/v3/attachments/987000000654321"); var request = new RestRequest(Method.PUT); request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); request.AddHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001"); request.AddParameter("multipart/form-data; boundary=---011000010111000001101001", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody); IRestResponse response = client.Execute(request);
var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Put, RequestUri = new Uri("https://cliq.zoho.com/api/v3/attachments/987000000654321"), Headers = { { "Authorization", "Bearer REPLACE_BEARER_TOKEN" }, }, Content = new MultipartFormDataContent { new StringContent("value1") { Headers = { ContentDisposition = new ContentDispositionHeaderValue("form-data") { Name = "field1", } } }, new StringContent("value2") { Headers = { ContentDisposition = new ContentDispositionHeaderValue("form-data") { Name = "field2", } } }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }
package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://cliq.zoho.com/api/v3/attachments/987000000654321" payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("Authorization", "Bearer REPLACE_BEARER_TOKEN") req.Header.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
const data = new FormData(); data.append("field1", "value1"); data.append("field2", "value2"); const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("PUT", "https://cliq.zoho.com/api/v3/attachments/987000000654321"); xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); xhr.send(data);
curl --request PUT \ --url https://cliq.zoho.com/api/v3/attachments/987000000654321 \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \ --header 'content-type: multipart/form-data' \ --form field1=value1 \ --form field2=value2

Body Parameters

Click to copy
{ "file": "string", "comment": "Updated with the final Q4 pipeline numbers", "message_id": "9064563923721%140546835004", "notify_edit": true }

Response Example

{ "message": "The request cannot be performed. Usually because of malformed parameter or missing parameter." }
{ "message": "Request was rejected because of invalid AuthToken." }
{ "message": "The user does not have enough permission or possibly not an user of the respective organization to access the resource." }
{ "message": "The requested resource does not exist." }
{ "message": "The HTTP method used is not supported for this endpoint." }
{ "message": "The requested response format is not supported." }
{ "message": "The number of API requests has exceeded the threshold limit. Retry after the lock period." }
{ "message": "Cliq server encountered an error which prevents it from fulfilling the request." }

Get an attachment AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Retrieve the details of a single attachment.

Threshold limit: 15 requests per min per user
Maximum API calls allowed within the window.

Lock period: 3 minutes
Cooldown period applied after threshold exhaustion.


OAuth Scope : ZohoCliq.Attachments.READ

Path Parameters

ATTACHMENT_ID
string
(Required)
Unique ID of the attachment. Get it from the List attachments response.
Pattern: ^[a-zA-Z0-9_]+$

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Bearer REPLACE_BEARER_TOKEN"); response = invokeUrl [ url: "https://cliq.zoho.com/api/v3/attachments/987000000654321" type: GET headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://cliq.zoho.com/api/v3/attachments/987000000654321") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
const options = {method: 'GET', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'}}; fetch('https://cliq.zoho.com/api/v3/attachments/987000000654321', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("cliq.zoho.com") headers = { 'Authorization': "Bearer REPLACE_BEARER_TOKEN" } conn.request("GET", "/api/v3/attachments/987000000654321", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "GET", "hostname": "cliq.zoho.com", "port": null, "path": "/api/v3/attachments/987000000654321", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
var client = new RestClient("https://cliq.zoho.com/api/v3/attachments/987000000654321"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); IRestResponse response = client.Execute(request);
var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://cliq.zoho.com/api/v3/attachments/987000000654321"), Headers = { { "Authorization", "Bearer REPLACE_BEARER_TOKEN" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://cliq.zoho.com/api/v3/attachments/987000000654321" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer REPLACE_BEARER_TOKEN") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
const data = null; const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("GET", "https://cliq.zoho.com/api/v3/attachments/987000000654321"); xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); xhr.send(data);
curl --request GET \ --url https://cliq.zoho.com/api/v3/attachments/987000000654321 \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Response Example

{ "url": "/api/v3/attachments", "type": "attachment", "data": { "name": "Q4-Sales-Report.pdf", "creator": { "name": "Olivia Palmer", "id": "198551042" }, "creation_time": "2026-10-20T04:24:37-07:00", "attachment_id": "a_76375330320155450239021227_2_581315020", "message_id": "9064563923721%140546835004", "content_type": "application/pdf", "permissions": { "download": true, "edit": true, "forward": true, "delete": true }, "meta": { "width": 2133, "height": 2133, "thumbnail_width": 230, "thumbnail_height": 230 }, "has_thumbnail": false, "message_type": "file", "chat": { "title": "#Sales Pipeline Reviews", "id": "CT_5337332635256352134_581315020" }, "size": "283296" } }
{ "message": "The request cannot be performed. Usually because of malformed parameter or missing parameter." }
{ "message": "Request was rejected because of invalid AuthToken." }
{ "message": "The user does not have enough permission or possibly not an user of the respective organization to access the resource." }
{ "message": "The requested resource does not exist." }
{ "message": "The HTTP method used is not supported for this endpoint." }
{ "message": "The requested response format is not supported." }
{ "message": "The number of API requests has exceeded the threshold limit. Retry after the lock period." }
{ "message": "Cliq server encountered an error which prevents it from fulfilling the request." }

Download an attachment file AI Tools

Open in ChatGPT

Open in ChatGPT to ask questions about this page

Open in Claude

Open in Claude to ask questions about this page

Copy as Markdown

Copy this page as markdown to use with AI assistants

View as Markdown

Open this page as markdown in a new tab

Download the binary content of an attachment.

Threshold limit: 15 requests per min per user
Maximum API calls allowed within the window.

Lock period: 3 minutes
Cooldown period applied after threshold exhaustion.


OAuth Scope : ZohoCliq.Attachments.READ

Path Parameters

ATTACHMENT_ID
string
(Required)
Unique ID of the attachment. Get it from the List attachments response.
Pattern: ^[a-zA-Z0-9_]+$

Request Example

Click to copy
headers_data = Map(); headers_data.put("Authorization", "Bearer REPLACE_BEARER_TOKEN"); response = invokeUrl [ url: "https://cliq.zoho.com/api/v3/attachments/987000000654321/file" type: GET headers: headers_data connection: <connection_name> ]; info response;
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://cliq.zoho.com/api/v3/attachments/987000000654321/file") .get() .addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN") .build(); Response response = client.newCall(request).execute();
const options = {method: 'GET', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'}}; fetch('https://cliq.zoho.com/api/v3/attachments/987000000654321/file', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
import http.client conn = http.client.HTTPSConnection("cliq.zoho.com") headers = { 'Authorization': "Bearer REPLACE_BEARER_TOKEN" } conn.request("GET", "/api/v3/attachments/987000000654321/file", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
const http = require("https"); const options = { "method": "GET", "hostname": "cliq.zoho.com", "port": null, "path": "/api/v3/attachments/987000000654321/file", "headers": { "Authorization": "Bearer REPLACE_BEARER_TOKEN" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
var client = new RestClient("https://cliq.zoho.com/api/v3/attachments/987000000654321/file"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); IRestResponse response = client.Execute(request);
var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://cliq.zoho.com/api/v3/attachments/987000000654321/file"), Headers = { { "Authorization", "Bearer REPLACE_BEARER_TOKEN" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://cliq.zoho.com/api/v3/attachments/987000000654321/file" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer REPLACE_BEARER_TOKEN") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
const data = null; const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("GET", "https://cliq.zoho.com/api/v3/attachments/987000000654321/file"); xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); xhr.send(data);
curl --request GET \ --url https://cliq.zoho.com/api/v3/attachments/987000000654321/file \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Response Example

{ "message": "The request cannot be performed. Usually because of malformed parameter or missing parameter." }
{ "message": "Request was rejected because of invalid AuthToken." }
{ "message": "The user does not have enough permission or possibly not an user of the respective organization to access the resource." }
{ "message": "The requested resource does not exist." }
{ "message": "The HTTP method used is not supported for this endpoint." }
{ "message": "The requested response format is not supported." }
{ "message": "The number of API requests has exceeded the threshold limit. Retry after the lock period." }
{ "message": "Cliq server encountered an error which prevents it from fulfilling the request." }