Prompts

Create prompt

POST

Request

This endpoint expects an object.
name
stringRequired
Name applied to all versions of a particular Prompt.
text
stringRequired
Text used for this version of the Prompt.
version_description
stringOptional
Description that is appended to a specific version of a Prompt.

Response

This endpoint returns an optional object
id
string
Identifier for a Prompt. Formatted as a UUID.
version
integer
Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique.
version_type
string
Inidicates whether this prompt is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum.
name
string
Name applied to all versions of a particular Prompt.
created_on
integer
The timestamp when the first version of this prompt was created.
modified_on
integer
The timestamp when this version of the prompt was created.
text
string
Text used for this version of the Prompt.
version_description
stringOptional
Description that is appended to a specific version of a Prompt.
POST
1curl -X POST https://api.hume.ai/v0/evi/prompts \
2 -H "X-Hume-Api-Key: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "name": "name",
6 "text": "text"
7}'
200Successful
1{
2 "id": "id",
3 "version": 1,
4 "version_type": "version_type",
5 "name": "name",
6 "created_on": 1,
7 "modified_on": 1,
8 "text": "text",
9 "version_description": "version_description"
10}