Generate a pre-signed S3 URL for uploading a branding asset (logo, favicon, og-image).
POST
/status_page/{status_page_id}/branding/upload
const url = 'https://api.siteqwality.com/status_page/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/branding/upload';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"file_type":"logo","content_type":"example","file_size_bytes":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siteqwality.com/status_page/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/branding/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "file_type": "logo", "content_type": "example", "file_size_bytes": 1 }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” status_page_id
required
string format: uuid
Status page identifier
Request Body required
Section titled “Request Body required ” Media type application/json
object
file_type
required
string
content_type
required
string
file_size_bytes
required
integer format: int64
Responses
Section titled “ Responses ”Pre-signed upload URL
Media type application/json
object
upload_url
required
string
s3_key
required
string
expires_in_seconds
required
integer format: int32
Example generated
{ "upload_url": "example", "s3_key": "example", "expires_in_seconds": 1}Invalid request body
Missing or invalid authentication
Internal server error