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.comAuthorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Path Parameters
account_id*integerOnlyFans numeric account ID.
Request Body
application/jsonkey*stringThe
keyfrom the Create Signed Upload answer.uploadId*stringuploadIdfrom the Create Signed Upload answer.parts*arrayOne
{ ETag, PartNumber }per piece, inPartNumberorder.ETagis the header each piece's upload answered with — keep its double quotes.
Response Fields
data.ETagstringThe joined file's fingerprint. Send it as
ETagto Convert Upload.dataobject | arrayEndpoint-specific payload. See the fields below for this route.
_meta._credits.usedintegerCredits consumed by this request (currently always
1)._meta._rate_limits.limit_minuteintegerMaximum requests per minute for the organization.
_meta._rate_limits.remaining_minuteintegerRemaining requests in the current minute window.
_meta._rate_limits.limit_dayintegerMaximum requests per day for the organization.
_meta._rate_limits.remaining_dayintegerRemaining requests in the current day window.
| Field | Type | Description |
|---|---|---|
| data.ETag | string | The joined file's fingerprint. Send it as ETag to Convert Upload. |
| data | object | array | Endpoint-specific payload. See the fields below for this route. |
| _meta._credits.used | integer | Credits consumed by this request (currently always 1). |
| _meta._rate_limits.limit_minute | integer | Maximum requests per minute for the organization. |
| _meta._rate_limits.remaining_minute | integer | Remaining requests in the current minute window. |
| _meta._rate_limits.limit_day | integer | Maximum requests per day for the organization. |
| _meta._rate_limits.remaining_day | integer | 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
200Behavior
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.
400whenkey,uploadIdorpartsis missing, or a piece has noETagorPartNumber— the message says which