Skip to main content
POST
/
v2
/
tts
/
voices
/
{id}
/
favourite
Favorite a TTS voice
curl --request POST \
  --url https://api.tryhamsa.com/v2/tts/voices/{id}/favourite \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "isFavourite": true
}
'
{
  "success": true,
  "message": "favourite updated successfully",
  "messageKey": "OPERATION_SUCCESSFUL"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tryhamsa.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Path Parameters

id
string<uuid>
required

Voice identifier.

Example:

"48f7656f-098b-4c43-b165-7cfd2cc8ac30"

Query Parameters

projectId
string
required

Project identifier.

Example:

"ae6d58c6-c6bd-4ae0-ad74-b8b39c29928b"

Body

application/json
isFavourite
boolean
required
Example:

true

Response

Favourite updated successfully.

success
boolean
Example:

true

message
string
Example:

"favourite updated successfully"

messageKey
string
Example:

"OPERATION_SUCCESSFUL"