Media Upload

Finish Multipart Upload

Joins the pieces of a file that went up in pieces. Step 4 of Uploading Media. Only needed when Create Signed Upload answered with uploadId and keys[] — a file sent in one piece is complete as soon as it arrives. Requires permission api_media_upload.

https://public-api.fansmetric.com
POST/v1/{account_id}/upload/signed/finish
Bearer

Authorization

default
AuthorizationBearer <token>

Send your FansMetric API key as a Bearer token in the Authorization header.

In: header

Path Parameters

  • account_id*integer

    OnlyFans numeric account ID.

Request Body

application/json
  • key*string

    The key from the Create Signed Upload answer.

  • uploadId*string

    uploadId from the Create Signed Upload answer.

  • parts*array

    One { ETag, PartNumber } per piece, in PartNumber order. ETag is the header each piece's upload answered with — keep its double quotes.

Response Fields

  • data.ETagstring

    The joined file's fingerprint. Send it as ETag to Convert Upload.

  • dataobject | array

    Endpoint-specific payload. See the fields below for this route.

  • _meta._credits.usedinteger

    Credits consumed by this request (currently always 1).

  • _meta._rate_limits.limit_minuteinteger

    Maximum requests per minute for the organization.

  • _meta._rate_limits.remaining_minuteinteger

    Remaining requests in the current minute window.

  • _meta._rate_limits.limit_dayinteger

    Maximum requests per day for the organization.

  • _meta._rate_limits.remaining_dayinteger

    Remaining requests in the current day window.

curl --request POST "https://public-api.fansmetric.com/v1/100000001/upload/signed/finish" \
  --header "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "key":      "upload/111222333/8a3d4c2e-7f1b-4c5d-9e8f-1a2b3c4d5e6f/529838163914/video.mp4",
  "uploadId": "abc123...",
  "parts": [
    { "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"", "PartNumber": 1 },
    { "ETag": "\"098f6bcd4621d373cade4e832627b4f6\"", "PartNumber": 2 }
  ]
}'

Response

200
{
"data":{
"ETag":""098f6bcd4621d373cade4e832627b4f6-2""
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}

Behavior

Upstream OnlyFans endpoint: POST /api2/v2/upload/signed/finish.

List the pieces in PartNumber order. Out of order, joining fails with 400.

Next: register the file.

  • 400 when key, uploadId or parts is missing, or a piece has no ETag or PartNumber — the message says which