Skip to main content
POST
/
admin
/
companies
/
logo-upload-url
Get a presigned URL to upload company logo
curl --request POST \
  --url https://api-dev.narrative.io/admin/companies/logo-upload-url \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_name": "logo.png"
}
'
{
  "upload_url": "https://fake-test-cdn.s3.amazonaws.com/images/company-logos/local/companyId_1__56ff5f47-7660-4c0c-807e-af2c8a3e666b_logo.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221206T163031Z&X-Amz-SignedHeaders=host",
  "permanent_url": "https://fake-test-cdn.s3.amazonaws.com/images/company-logos/local/companyId_1__56ff5f47-7660-4c0c-807e-af2c8a3e666b_logo.png",
  "expiry": "2022-12-06T17:00:31.098Z",
  "content_type": "image/png"
}

Body

application/json

Name of the image that you want to upload.

image_name
string
Example:

"logo.png"

Response

List of companies

Presigned AWS URL, permanent URL and expiration.

upload_url
string
Example:

"https://fake-test-cdn.s3.amazonaws.com/images/company-logos/local/companyId_1__56ff5f47-7660-4c0c-807e-af2c8a3e666b_logo.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221206T163031Z&X-Amz-SignedHeaders=host"

permanent_url
string
Example:

"https://fake-test-cdn.s3.amazonaws.com/images/company-logos/local/companyId_1__56ff5f47-7660-4c0c-807e-af2c8a3e666b_logo.png"

expiry
string
Example:

"2022-12-06T17:00:31.098Z"

content_type
string
Example:

"image/png"