Skip to main content
GET
/
api
/
v1
/
external
/
companies
/
{companyId}
/
files
/
{fileId}
/
download-url
Get Download URL
curl --request GET \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/files/{fileId}/download-url \
  --header 'Authorization: <api-key>'
{
  "url": "https://storage.googleapis.com/bucket/companies/.../files/...?X-Goog-Expires=900&X-Goog-Signature=...",
  "expiresAt": "2026-06-10T09:30:00.000Z",
  "fileName": "master-agreement.pdf",
  "contentType": "application/pdf",
  "byteSize": 482133
}

Authorizations

Authorization
string
header
required

API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.

Path Parameters

companyId
string<uuid>
required

Company identifier

fileId
string<uuid>
required

File identifier

Response

Signed download URL

url
string

Short-lived signed URL to GET the file bytes from

expiresAt
string<date-time>

ISO instant the URL stops working

fileName
string

The version's original filename (also signed into the URL's content disposition)

contentType
string

MIME type of the file

byteSize
integer

Size of the file in bytes