Upload a favicon for the trust portal
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/favicon \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "favicon.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgo="
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'favicon.png', fileType: 'image/png', fileData: 'iVBORw0KGgo='})
};
fetch('https://api.trycomp.ai/v1/trust-portal/favicon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-portal/favicon"
payload = {
"fileName": "favicon.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgo="
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Trust Portal
Upload a favicon for the trust portal | Comp AI API
Upload a favicon for the trust portal in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents.
POST
/
v1
/
trust-portal
/
favicon
Upload a favicon for the trust portal
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/favicon \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "favicon.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgo="
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'favicon.png', fileType: 'image/png', fileData: 'iVBORw0KGgo='})
};
fetch('https://api.trycomp.ai/v1/trust-portal/favicon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-portal/favicon"
payload = {
"fileName": "favicon.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgo="
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Body
application/json
Favicon image to store for the trust portal
Original file name. Must end in .ico, .png or .svg.
Example:
"favicon.png"
MIME type of the image.
Available options:
image/x-icon, image/vnd.microsoft.icon, image/png, image/svg+xml Example:
"image/png"
Base64-encoded image contents.
Example:
"iVBORw0KGgo="
Response
201
Favicon uploaded successfully
Was this page helpful?

