Confirm a media upload
Confirm media after uploading it to the issued URL. Posteady checks the stored file's size, content type, signature, and object version against the upload reservation before promoting it from private staging. fileKey must belong to a reservation in the API key's workspace and be confirmed within 24 hours. Posteady measures duration, width, and height for supported MP4/QuickTime files; include the client-observed values when available. Instagram publishing rejects video records without all three values. Confirmation uses the existing storage reservation and does not count the file size twice. A confirmed upload does not publish it.
Authorization
apiKey In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/media/uploads/confirm" \ -H "Content-Type: application/json" \ -d '{ "fileKey": "string" }'{ "mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad", "fileName": "string", "mediaType": "IMAGE", "mimeType": "string", "fileSize": 0, "url": "http://example.com", "duration": 0, "width": 0, "height": 0, "createdAt": "2019-08-24T14:15:22Z"}