Custom Email
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
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 Custom Email API lets organisation admins configure the custom sender email address used by Zoho Cliq, and verify its DKIM and CNAME records.
Custom Email lets an organisation send Cliq emails from its own sender address, for example notifications@zylker.com. The sender domain is validated through a CNAME record and a DKIM record provisioned in TransMail.
Use the Custom Email API to:
- Retrieve the configuration with its CNAME and DKIM verification records.
- Add the configuration and generate a DKIM record with a 1024-bit or 2048-bit key.
- Verify a DKIM record for a key size, or verify the CNAME record.
- Update the sender display name.
- Delete the configuration. A sender domain that the custom domain does not use is removed as well.
Update operations: One operation runs for each update request. If you send more than one, the first match in this order runs.
| Priority | Operation | Required fields |
|---|---|---|
| 1 | Verify DKIM | dkim_status set to verified, and email_id. dkim_key_size is optional. |
| 2 | Verify CNAME | cname_status set to verified, and email_id. |
| 3 | Update display name | name |
Access control: Every operation needs the caller to be an organisation admin or a Cliq super-admin.
Possible error codes
| Error code | Description |
|---|---|
invalid_inputs | A required field is missing or invalid. For example, name or email_id is empty when you add the configuration, no valid operation is sent when you update it, or email_id is missing for a verify operation. |
operation_not_allowed | The user is not an organisation admin or a Cliq super-admin. |
custom_email_already_configured | A custom email is already configured, so it cannot be added again. |
custom_email_not_configured | No custom email is configured, so it cannot be updated. |
custom_email_update_not_allowed | The email_id does not match the configured email address. |
custom_email_used_in_other_org | The sender domain is registered to another organisation. |
cname_check_failed | The CNAME record does not point to the expected parent certificate domain. |
custom_email_dkim_record_missing | No DKIM record was found in TransMail for the domain. |
custom_email_dkim_record_invalid | The DKIM record is invalid. |
custom_email_dkim_duplicate_record | A DKIM selector already exists for the domain. |
custom_email_dkim_syntax_error | The DKIM record has a syntax error. |
custom_email_selectors_limit_exceeded | The maximum number of DKIM selectors is reached for the domain. |
rate_limit_exceeded | The request rate limit was exceeded. Retry after the lock period. |
internal_error | An unexpected server error occurred. |
Add custom email configuration
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
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
Add a custom email configuration for the organisation.
Creates the custom email configuration and provisions a DKIM record in TransMail. Only one configuration can exist for an organisation.
Every operation needs the caller to be an organisation admin or a Cliq super-admin.
Threshold limit: 10 requests per min per user
Maximum API calls allowed within the window.
Lock period: 10 minutes
Cooldown period applied after threshold exhaustion.
! Possible Error Codes Click to expand
| Error Code | Description |
|---|---|
| invalid_inputs | The name or email_id is missing or empty. |
| custom_email_already_configured | A custom email is already configured. |
| custom_email_used_in_other_org | The sender domain is registered to another organisation. |
| custom_email_selectors_limit_exceeded | The maximum number of DKIM selectors is reached for the domain. |
| operation_not_allowed | The user is not an organisation admin or a Cliq super-admin. |
| rate_limit_exceeded | The request rate limit was exceeded. Retry after the lock period. |
| internal_error | An unexpected server error occurred. |
OAuth Scope : ZohoCliq.Organisation.CREATE
Arguments
Maximum length:
100
Maximum length:
253Format:
valid email address
Default:
1024Allowed values
1024: Uses a 1024-bit DKIM key.2048: Uses a 2048-bit DKIM key.
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Bearer REPLACE_BEARER_TOKEN");
response = invokeUrl
[
url: "https://cliq.zoho.com/adminapi/v3/email-configs"
type: POST
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
.url("https://cliq.zoho.com/adminapi/v3/email-configs")
.post(body)
.addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Authorization: 'Bearer REPLACE_BEARER_TOKEN',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://cliq.zoho.com/adminapi/v3/email-configs', 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 = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Bearer REPLACE_BEARER_TOKEN",
'content-type': "application/json"
}
conn.request("POST", "/adminapi/v3/email-configs", 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": "/adminapi/v3/email-configs",
"headers": {
"Authorization": "Bearer REPLACE_BEARER_TOKEN",
"content-type": "application/json"
}
};
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(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
var client = new RestClient("https://cliq.zoho.com/adminapi/v3/email-configs");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"field1\":\"value1\",\"field2\":\"value2\"}", 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/adminapi/v3/email-configs"),
Headers =
{
{ "Authorization", "Bearer REPLACE_BEARER_TOKEN" },
},
Content = new StringContent("{\"field1\":\"value1\",\"field2\":\"value2\"}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
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/adminapi/v3/email-configs"
payload := strings.NewReader("{\"field1\":\"value1\",\"field2\":\"value2\"}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
const data = JSON.stringify({
"field1": "value1",
"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/adminapi/v3/email-configs");
xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
xhr.setRequestHeader("content-type", "application/json");
xhr.send(data);
curl --request POST \
--url https://cliq.zoho.com/adminapi/v3/email-configs \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"name": "Zylker Notifications",
"email_id": "notifications@zylker.com",
"dkim_key_size": 1024
}
{
"data": {
"name": "Zylker Notifications",
"email_id": "notifications@zylker.com",
"cname_record": {
"host": "zc238204934034034.zylker.com",
"address": "cliq.zoho.com",
"status": "not_verified"
},
"dkim_records": [
{
"key_size": 1024,
"host": "zc1024._domainkey.zylker.com",
"value": "v=DKIM1; k=rsa; p=MIGfMA0GCSq...",
"status": "not_verified"
}
]
}
}
{
"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."
}
Update custom email configuration
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
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
Update the display name or email, or trigger DKIM or CNAME verification.
Returns the full updated configuration. The email_id cannot be changed, so it must match the configured address.
When the DKIM record is not yet published in DNS, a verify request can return 200 with the record still not_verified. Check the status in the response.
Every operation needs the caller to be an organisation admin or a Cliq super-admin.
Threshold limit: 10 requests per min per user
Maximum API calls allowed within the window.
Lock period: 10 minutes
Cooldown period applied after threshold exhaustion.
! Possible Error Codes Click to expand
| Error Code | Description |
|---|---|
| invalid_inputs | No valid operation is sent, or email_id is missing for a verify operation. |
| custom_email_not_configured | No custom email is configured. |
| custom_email_update_not_allowed | The email_id does not match the configured email address. |
| cname_check_failed | CNAME verification failed. |
| custom_email_dkim_record_missing | No DKIM record was found in TransMail for the domain. |
| operation_not_allowed | The user is not an organisation admin or a Cliq super-admin. |
| rate_limit_exceeded | The request rate limit was exceeded. Retry after the lock period. |
| internal_error | An unexpected server error occurred. |
OAuth Scope : ZohoCliq.Organisation.UPDATE
Arguments
Maximum length:
100
Maximum length:
253
verified to trigger DKIM verification.Maximum length:
20 charactersAllowed values
verified: Triggers verification of the DKIM record.
verified to trigger CNAME verification.Maximum length:
20 charactersAllowed values
verified: Triggers verification of the CNAME record.
Default:
1024Allowed values
1024: Uses a 1024-bit DKIM key.2048: Uses a 2048-bit DKIM key.
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Bearer REPLACE_BEARER_TOKEN");
response = invokeUrl
[
url: "https://cliq.zoho.com/adminapi/v3/email-configs"
type: PUT
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
.url("https://cliq.zoho.com/adminapi/v3/email-configs")
.put(body)
.addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Bearer REPLACE_BEARER_TOKEN',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://cliq.zoho.com/adminapi/v3/email-configs', 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 = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Bearer REPLACE_BEARER_TOKEN",
'content-type': "application/json"
}
conn.request("PUT", "/adminapi/v3/email-configs", 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": "/adminapi/v3/email-configs",
"headers": {
"Authorization": "Bearer REPLACE_BEARER_TOKEN",
"content-type": "application/json"
}
};
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(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
var client = new RestClient("https://cliq.zoho.com/adminapi/v3/email-configs");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"field1\":\"value1\",\"field2\":\"value2\"}", 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/adminapi/v3/email-configs"),
Headers =
{
{ "Authorization", "Bearer REPLACE_BEARER_TOKEN" },
},
Content = new StringContent("{\"field1\":\"value1\",\"field2\":\"value2\"}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
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/adminapi/v3/email-configs"
payload := strings.NewReader("{\"field1\":\"value1\",\"field2\":\"value2\"}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
const data = JSON.stringify({
"field1": "value1",
"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/adminapi/v3/email-configs");
xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
xhr.setRequestHeader("content-type", "application/json");
xhr.send(data);
curl --request PUT \
--url https://cliq.zoho.com/adminapi/v3/email-configs \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"dkim_status": "verified",
"email_id": "notifications@zylker.com",
"dkim_key_size": 1024
}
{
"cname_status": "verified",
"email_id": "notifications@zylker.com"
}
{
"name": "Zylker Alerts"
}
{
"data": {
"name": "Zylker Alerts",
"email_id": "notifications@zylker.com",
"cname_record": {
"host": "zc238204934034034.zylker.com",
"address": "cliq.zoho.com",
"status": "verified"
},
"dkim_records": [
{
"key_size": 1024,
"host": "zc1024._domainkey.zylker.com",
"value": "v=DKIM1; k=rsa; p=MIGfMA0GCSq...",
"status": "verified"
}
]
}
}
{
"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."
}
Retrieve custom email configuration
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
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 custom email configuration of the organisation along with its DKIM verification details.
Returns the custom email configuration with its CNAME and DKIM details. The data object is empty when no custom email is configured.
Every operation needs the caller to be an organisation admin or a Cliq super-admin.
Threshold limit: 30 requests per min per user
Maximum API calls allowed within the window.
Lock period: 5 minutes
Cooldown period applied after threshold exhaustion.
! Possible Error Codes Click to expand
| Error Code | Description |
|---|---|
| operation_not_allowed | The user is not an organisation admin or a Cliq super-admin. |
| rate_limit_exceeded | The request rate limit was exceeded. Retry after the lock period. |
| internal_error | An unexpected server error occurred. |
OAuth Scope : ZohoCliq.Organisation.READ
Query Parameters
Allowed values
1024: Uses a 1024-bit DKIM key.2048: Uses a 2048-bit DKIM key.
headers_data = Map();
headers_data.put("Authorization", "Bearer REPLACE_BEARER_TOKEN");
response = invokeUrl
[
url: "https://cliq.zoho.com/adminapi/v3/email-configs"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://cliq.zoho.com/adminapi/v3/email-configs")
.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/adminapi/v3/email-configs', 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", "/adminapi/v3/email-configs", 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": "/adminapi/v3/email-configs",
"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/adminapi/v3/email-configs");
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/adminapi/v3/email-configs"),
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/adminapi/v3/email-configs"
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/adminapi/v3/email-configs");
xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
xhr.send(data);
curl --request GET \
--url https://cliq.zoho.com/adminapi/v3/email-configs \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{
"data": {
"name": "Zylker Notifications",
"email_id": "notifications@zylker.com",
"cname_record": {
"host": "zc238204934034034.zylker.com",
"address": "cliq.zoho.com",
"status": "verified"
},
"dkim_records": [
{
"key_size": 1024,
"host": "zc1024._domainkey.zylker.com",
"value": "v=DKIM1; k=rsa; p=MIGfMA0GCSq...",
"status": "verified"
},
{
"key_size": 2048,
"host": "zc2048._domainkey.zylker.com",
"value": "v=DKIM1; k=rsa; p=MIIBIjANBgkq...",
"status": "not_verified"
}
]
}
}
{
"data": {...}
}
{
"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."
}
Delete custom email configuration
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
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
Delete the custom email configuration of the organisation.
Deletes the custom email configuration permanently. The sender domain is removed as well when the custom domain does not use it.
Every operation needs the caller to be an organisation admin or a Cliq super-admin.
Threshold limit: 10 requests per min per user
Maximum API calls allowed within the window.
Lock period: 10 minutes
Cooldown period applied after threshold exhaustion.
! Possible Error Codes Click to expand
| Error Code | Description |
|---|---|
| operation_not_allowed | The user is not an organisation admin or a Cliq super-admin. |
| rate_limit_exceeded | The request rate limit was exceeded. Retry after the lock period. |
| internal_error | An unexpected server error occurred. |
OAuth Scope : ZohoCliq.Organisation.DELETE
headers_data = Map();
headers_data.put("Authorization", "Bearer REPLACE_BEARER_TOKEN");
response = invokeUrl
[
url: "https://cliq.zoho.com/adminapi/v3/email-configs"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://cliq.zoho.com/adminapi/v3/email-configs")
.delete(null)
.addHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN")
.build();
Response response = client.newCall(request).execute();
const options = {method: 'DELETE', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'}};
fetch('https://cliq.zoho.com/adminapi/v3/email-configs', 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("DELETE", "/adminapi/v3/email-configs", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "cliq.zoho.com",
"port": null,
"path": "/adminapi/v3/email-configs",
"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/adminapi/v3/email-configs");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
IRestResponse response = client.Execute(request);
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("https://cliq.zoho.com/adminapi/v3/email-configs"),
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/adminapi/v3/email-configs"
req, _ := http.NewRequest("DELETE", 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("DELETE", "https://cliq.zoho.com/adminapi/v3/email-configs");
xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
xhr.send(data);
curl --request DELETE \
--url https://cliq.zoho.com/adminapi/v3/email-configs \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{
"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."
}