Upload

Verify Upload

Verify that all parts of an upload have been successfully uploaded and complete the build creation process

The upload verification endpoint is the final step in the build upload process, for both single part and multipart uploads. It verifies that all parts have been successfully uploaded, and creates the final build record in Buildstash.

POST/upload/verify
AuthorizationBearer <token>

App-specific auth token. Bearer authentication header of the form Bearer , where is your auth token.

In: header

Upload verification request

pending_upload_idstring

Pending upload ID from the initial request

multipart_chunks?

Array of uploaded parts (required for multipart uploads)

Response Body

application/json

application/json

application/json

curl -X POST "https://app.buildstash.com/api/v1/upload/verify" \  -H "Content-Type: application/json" \  -d '{    "pending_upload_id": "string"  }'
{
  "message": "Upload verified successfully",
  "build_id": "string",
  "pending_processing": false,
  "build_info_url": "string",
  "download_url": "string"
}
{
  "message": "Error explaining why upload verification failed"
}
{
  "message": "Unauthorized"
}

Notes

  • For multipart uploads, all parts with ETags must be included in the multipart_chunks array
  • ETags must match exactly what was returned from the upload requests
  • Some builds may take a short delay to process, indicated by pending_processing: true