Skip to main content
POST
/
api
/
v1
/
external
/
companies
/
{companyId}
/
files
/
{fileId}
/
finalize
Finalize Upload
curl --request POST \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/files/{fileId}/finalize \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "versionId": "550e8400-e29b-41d4-a716-446655440021"
}
'
{
  "fileId": "550e8400-e29b-41d4-a716-446655440020",
  "versionId": "550e8400-e29b-41d4-a716-446655440021"
}

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

Body

application/json
versionId
string<uuid>
required

The version id returned by the upload intent

Response

Upload finalized — the file is now ready

fileId
string<uuid>

Id of the finalized file

versionId
string<uuid>

Id of the now-ready version