CreatorHero
CreatorHero API

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

POST
https://backend.creatorhero.com
/dashboard/api/v1/of-chat/{creatorId}/media/upload

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.

Upload media › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Upload media › query Parameters

fileName
​string · required

File name with extension

contentLength
​integer · int64 · required

File size in bytes

forcedProcessing
​boolean

true to add the file to the vault even if OnlyFans already has it

Default: false
categoryId
​integer · int64

OnlyFans vault category to add the media to

Upload media › Responses


Upload part

POST
https://backend.creatorhero.com
/dashboard/api/v1/of-chat/{creatorId}/media/multipart/upload

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.

Upload part › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Upload part › query Parameters

part
​integer · int32 · required

part from keys of startUpload

contentType
​string · required

MIME type of the file

putUrl
​string · required

putUrl of this part from keys of startUpload

Upload part › Responses

Uploaded part

Uploaded part; pass every part of the file unchanged to `finish`
ETag
​string

Value returned for this part; pass it unchanged to finish

PartNumber
​integer · int32

Number of the part, starting at 1


Start multipart upload

POST
https://backend.creatorhero.com
/dashboard/api/v1/of-chat/{creatorId}/media/multipart/start

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.

Start multipart upload › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Start multipart upload › Request Body

Request to start a multipart upload
fileName
​string

File name with extension

contentType
​string

MIME type of the file, e.g. video/mp4

contentLength
​integer · int64

File size in bytes

Start multipart upload › Responses

200

Upload URLs

Started multipart upload with one upload URL per part
getUrl
​string

Value returned by startUpload; pass it unchanged to finish

uploadId
​string

Multipart upload ID; pass it unchanged to finish

storageKey
​string

Value returned by startUpload; pass it unchanged to finish

uploadToken
​string

Upload token; pass it unchanged to finish

​Key[]

Upload URL of each 5 MB part


Finish multipart upload

POST
https://backend.creatorhero.com
/dashboard/api/v1/of-chat/{creatorId}/media/multipart/finish

Completes a multipart upload and returns the media like uploadChatMedia. Body:

  • storageKey, uploadId, uploadToken, getUrl: from startUpload.
  • fileName, contentType, contentLength: same as in startUpload.
  • parts: all objects returned by uploadPart.
  • includeWatermark: apply the creator's OnlyFans watermark settings to a new file.
  • forcedProcessing, categoryId: same as in uploadChatMedia.
  • skipDuplicateCheck: ignored.

Requires access to the creator's OnlyFans profile and the OnlyFans - Edit Vault permission.

Finish multipart upload › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Finish multipart upload › Request Body

Request to complete a multipart upload
storageKey
​string

storageKey from startUpload

uploadId
​string

uploadId from startUpload

uploadToken
​string

uploadToken from startUpload

fileName
​string

File name with extension, same as in startUpload

contentType
​string

MIME type of the file, same as in startUpload

getUrl
​string

getUrl from startUpload

contentLength
​integer · int64

File size in bytes, same as in startUpload

​UploadedPart[]

All parts returned by uploadPart

skipDuplicateCheck
​boolean

Ignored

includeWatermark
​boolean

true to apply the creator's OnlyFans watermark settings to a new file

forcedProcessing
​boolean

true to add the file to the vault even if OnlyFans already has it

categoryId
​integer · int64

OnlyFans vault category to add the media to; optional

Finish multipart upload › Responses


Get stream signature for a chat media

GET
https://backend.creatorhero.com
/dashboard/api/v1/of-chat/{creatorId}/media/stream

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.

Get stream signature for a chat media › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Get stream signature for a chat media › query Parameters

userId
​integer · int64 · required

OnlyFans user ID of the fan

messageId
​integer · int64 · required

OnlyFans ID of the message

mediaId
​integer · int64 · required

OnlyFans ID of the media in the message

Get stream signature for a chat media › Responses

Stream signature

Token for streaming a media file
signature
​string · uuid

signToken for streamV2, valid for 60 minutes