OF Chat Medias
Media of chat messages: stream media and upload files for use in chats. Requires access to the creator's OnlyFans profile; some uploads also need the "Edit Vault" permission (see each operation).
Upload media
Uploads one file to the creator's OnlyFans account. Send the file as multipart/form-data; contentLength is its size in bytes. The creator's OnlyFans watermark settings apply to new files.
If OnlyFans already has this file and forcedProcessing is false, returns the existing OnlyFans media. Otherwise the media is added to the OnlyFans vault and the vault media is returned. Its id is the OnlyFans media ID.
Requires access to the creator's OnlyFans profile and the OnlyFans - Edit Vault permission.
path Parameters
creatorIdID of the creator
query Parameters
fileNameFile name with extension
contentLengthFile size in bytes
forcedProcessingtrue to add the file to the vault even if OnlyFans already has it
categoryIdOnlyFans vault category to add the media to
Upload media › Responses
Upload part
Uploads one part of a multipart upload. Send the part bytes as one file in multipart/form-data. Pass every returned object in parts of finish.
path Parameters
creatorIdID of the creator
query Parameters
partpart from keys of startUpload
contentTypeMIME type of the file
putUrlputUrl of this part from keys of startUpload
Upload part › Responses
Uploaded part
ETagValue returned for this part; pass it unchanged to finish
PartNumberNumber of the part, starting at 1
Start multipart upload
Starts a multipart upload of one file. Body: fileName, contentType (MIME type, e.g. video/mp4) and contentLength (file size in bytes).
The file is split into 5 MB parts (the last one may be smaller); keys has one putUrl per part. Upload each part with uploadPart, then call finish with storageKey, uploadId, uploadToken and getUrl from this response, unchanged.
path Parameters
creatorIdID of the creator
Start multipart upload › Request Body
fileNameFile name with extension
contentTypeMIME type of the file, e.g. video/mp4
contentLengthFile size in bytes
Start multipart upload › Responses
Upload URLs
getUrlValue returned by startUpload; pass it unchanged to finish
uploadIdMultipart upload ID; pass it unchanged to finish
storageKeyValue returned by startUpload; pass it unchanged to finish
uploadTokenUpload token; pass it unchanged to finish
Upload URL of each 5 MB part
Finish multipart upload
Completes a multipart upload and returns the media like uploadChatMedia. Body:
storageKey,uploadId,uploadToken,getUrl: fromstartUpload.fileName,contentType,contentLength: same as instartUpload.parts: all objects returned byuploadPart.includeWatermark: apply the creator's OnlyFans watermark settings to a new file.forcedProcessing,categoryId: same as inuploadChatMedia.skipDuplicateCheck: ignored.
Requires access to the creator's OnlyFans profile and the OnlyFans - Edit Vault permission.
path Parameters
creatorIdID of the creator
Finish multipart upload › Request Body
storageKeystorageKey from startUpload
uploadIduploadId from startUpload
uploadTokenuploadToken from startUpload
fileNameFile name with extension, same as in startUpload
contentTypeMIME type of the file, same as in startUpload
getUrlgetUrl from startUpload
contentLengthFile size in bytes, same as in startUpload
All parts returned by uploadPart
skipDuplicateCheckIgnored
includeWatermarktrue to apply the creator's OnlyFans watermark settings to a new file
forcedProcessingtrue to add the file to the vault even if OnlyFans already has it
categoryIdOnlyFans vault category to add the media to; optional
Finish multipart upload › Responses
Get stream signature for a chat media
Returns a signature for one media of a chat message. Stream the file with GET /dashboard/api/v2/creator/vault/stream/{signToken}, passing the signature as signToken; it is valid for 60 minutes. Requires access to the creator's OnlyFans profile.
path Parameters
creatorIdID of the creator
query Parameters
userIdOnlyFans user ID of the fan
messageIdOnlyFans ID of the message
mediaIdOnlyFans ID of the media in the message
Get stream signature for a chat media › Responses
Stream signature
signaturesignToken for streamV2, valid for 60 minutes
