Postonus
APIReferenceUploads

Complete an upload once its bytes are in storage

POST
/uploads/complete

Authorization

apiKey
headerx-api-key<token>

Request Body

application/json
  1. body
uploadId*string
Formatuuid
checksum*string
Match^[A-Za-z0-9+/]{43}=$
multipartParts?array<>
input?

Response Body

OK

application/json
  1. response
uploadId*string
Formatuuid
status*unknown
objectKey*string
publicUrl*string
idempotent*boolean
mediaId*|null
type?string
Value in"IMAGE""GIF""VIDEO"
bytes?integer
Range-9007199254740991 <= value <= 9007199254740991
variants*|null
variantsStatus*|null
avatarUrl*string|null
Example Request
curl -X POST 'https://app.postonus.com/api/v1/uploads/complete' \  -H 'Content-Type: application/json' \  -d '{  "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497",  "checksum": "string"}'
Example Response
{  "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497",  "status": "completed",  "objectKey": "string",  "publicUrl": "string",  "idempotent": true,  "mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad",  "type": "IMAGE",  "bytes": -9007199254740991,  "variants": {    "1:1": {      "url": "string",      "width": -9007199254740991,      "height": -9007199254740991,      "sizeBytes": 0,      "objectKey": "string"    },    "4:5": {      "url": "string",      "width": -9007199254740991,      "height": -9007199254740991,      "sizeBytes": 0,      "objectKey": "string"    },    "9:16": {      "url": "string",      "width": -9007199254740991,      "height": -9007199254740991,      "sizeBytes": 0,      "objectKey": "string"    },    "1.91:1": {      "url": "string",      "width": -9007199254740991,      "height": -9007199254740991,      "sizeBytes": 0,      "objectKey": "string"    },    "source": {      "url": "string",      "width": -9007199254740991,      "height": -9007199254740991,      "sizeBytes": 0,      "objectKey": "string"    }  },  "variantsStatus": "pending",  "avatarUrl": "string"}