Skip to main content
POST
Create a brand persona

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Body

application/json

The brand persona to create.

name
string
required

The name of the brand persona. It must be unique within the project, ignoring case, and up to 200 bytes long. It can't contain the characters \ / : * ? " < > | ¥. Whitespace at the start and end is trimmed.

projectId
string
required

The unique identifier for the project to create the brand persona in.

speakingStyle
object
required

The speaking style of the brand persona. It is either guided, with completeness and formality, or custom, with customInstructions, depending on useCustomInstructions.

voiceConfig
object
required

Deprecated. Use the voice-config-defaults built-in tool instance of the agent instead. The API still reads the ttsLanguage value as the language of the <channel> block of the prompt if the agent has no such instance or the instance leaves ttsLanguage empty. This field is required when you create a brand persona.

description
string

A description of the brand persona. The maximum is 1000 bytes.

image
string

The avatar image of the brand persona.

imageOptimizedFormat
boolean

true if the image is stored in the optimized image format; false otherwise.

Response

Returns the created brand persona.

createdAt
integer

The time when the brand persona was created, as a Unix timestamp in seconds.

createdBy
string

The unique identifier for the user who created the brand persona.

Example:

"507f1f77bcf86cd799439011"

description
string

A description of the brand persona.

id
string

The unique identifier for the brand persona.

Example:

"507f1f77bcf86cd799439011"

image
string

The avatar image of the brand persona.

imageOptimizedFormat
boolean

true if the image is stored in the optimized image format; false otherwise.

lastChangedAt
integer

The time when the brand persona was last changed, as a Unix timestamp in seconds.

lastChangedBy
string

The unique identifier for the user who last changed the brand persona.

Example:

"507f1f77bcf86cd799439011"

name
string

The name of the brand persona.

organisationId
string

The unique identifier for the organization that the brand persona belongs to.

Example:

"507f1f77bcf86cd799439011"

projectId
string

The unique identifier for the project that the brand persona belongs to.

Example:

"507f1f77bcf86cd799439011"

referenceId
string

The reference ID of the brand persona. The API generates it as a UUID when the brand persona is created. An agent refers to the brand persona by this value in personaReferenceId.

speakingStyle
object

The speaking style of the brand persona. It is either guided, with completeness and formality, or custom, with customInstructions, depending on useCustomInstructions.

voiceConfig
object

Deprecated. Use the voice-config-defaults built-in tool instance of the agent instead. The API still reads the ttsLanguage value as the language of the <channel> block of the prompt if the agent has no such instance or the instance leaves ttsLanguage empty.