CreatorHero
CreatorHero API

OF Chat Audio

Audio files of a creator in CreatorHero for use in chats: upload, list, stream, edit and delete. audioId is the id of an audio (UUID). Requires access to the creator's OnlyFans profile.


deprecated

Download audio as Base64

GET
https://backend.creatorhero.com
/dashboard/api/v1/chat-audio/{creatorId}/{audioId}

Deprecated, use streamChatAudio. Returns the whole audio file Base64-encoded as plain text.

Download audio as Base64 › path Parameters

creatorId
​integer · int64 · required

ID of the creator

audioId
​string · required

ID of the audio

Download audio as Base64 › Responses

Base64-encoded audio file

string

Edit audio

PUT
https://backend.creatorhero.com
/dashboard/api/v1/chat-audio/{creatorId}/{audioId}

Changes the name and/or description of the audio. A field that is omitted or null stays unchanged; a blank name is ignored. At least one of the two fields must be set.

Edit audio › path Parameters

creatorId
​integer · int64 · required

ID of the creator

audioId
​string · required

ID of the audio

Edit audio › Request Body

Changes to the name and description of an audio
name
​string

The audio name

description
​string

The audio description

Edit audio › Responses

Updated

No data returned

Delete audio

DELETE
https://backend.creatorhero.com
/dashboard/api/v1/chat-audio/{creatorId}/{audioId}

Deletes the audio file.

Delete audio › path Parameters

creatorId
​integer · int64 · required

ID of the creator

audioId
​string · required

ID of the audio

Delete audio › Responses

Deleted

No data returned

deprecated

List all audios

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

Deprecated, use getAudiosPaged. Returns all audios of the creator, unpaged.

List all audios › path Parameters

creatorId
​integer · int64 · required

ID of the creator

List all audios › Responses

200

Audios

Audio file of a creator for use in chats
id
​string · uuid · required

ID of the audio (UUID)

name
​string · required

Name of the audio, unique per creator

description
​string · required

Description of the audio; empty string when not set

contentType
​string · required

MIME type of the audio file: audio/mp3, audio/wave or audio/ogg

duration
​number · double · required

Length of the audio in seconds, rounded to 2 decimals


Upload audio

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

Send multipart/form-data with the parts file (audio/mpeg, audio/mp3, audio/wav, audio/wave or audio/ogg, max 10 MB), name (not empty) and optionally description; any other part is rejected. A creator can store at most 200 audios, and both the name and the file content must be unique per creator. Only one upload per creator runs at a time.

Upload audio › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Upload audio › Responses

Uploaded audio

Audio file of a creator for use in chats
id
​string · uuid · required

ID of the audio (UUID)

name
​string · required

Name of the audio, unique per creator

description
​string · required

Description of the audio; empty string when not set

contentType
​string · required

MIME type of the audio file: audio/mp3, audio/wave or audio/ogg

duration
​number · double · required

Length of the audio in seconds, rounded to 2 decimals


Stream audio file

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

Returns the audio file as binary with the audio's contentType as Content-Type (audio/mp3, audio/wave or audio/ogg) and an inline Content-Disposition carrying the audio name.

Stream audio file › path Parameters

creatorId
​integer · int64 · required

ID of the creator

audioId
​string · required

ID of the audio

Stream audio file › Responses

Audio file

string · binary

List audios

GET
https://backend.creatorhero.com
/dashboard/api/v1/chat-audio/{creatorId}/page

Returns one page of the creator's audios: content holds the audios, totalElements, totalPages, number and last describe the paging. Without sort the order is not defined.

List audios › path Parameters

creatorId
​integer · int64 · required

ID of the creator

List audios › query Parameters

page
​integer · min: 0

Page number, starts at 0; default 0

Default: 0
size
​integer · min: 1

Audios per page; default 20, max 2000

Default: 20
sort
​string[]

name, description, contentType or duration, optionally followed by ,asc or ,desc; repeat the parameter to sort by more fields

List audios › Responses

200

Page of audios

totalElements
​integer · int64
totalPages
​integer · int32
size
​integer · int32
​array
number
​integer · int32
first
​boolean
last
​boolean
numberOfElements
​integer · int32
​SortObject
​PageableObject
empty
​boolean