Authorizations
API key for authentication
Body
application/json
Response
Prompt created successfully
The response is of type object
.
curl --request POST \
--url https://api.getmaxim.ai/v1/prompts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"workspaceId": "<string>",
"name": "<string>",
"description": "<string>",
"folderId": "<string>"
}'
{
"data": {
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"folderId": "<string>",
"meta": "<any>",
"createdById": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}
}
Create a new prompt
curl --request POST \
--url https://api.getmaxim.ai/v1/prompts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"workspaceId": "<string>",
"name": "<string>",
"description": "<string>",
"folderId": "<string>"
}'
{
"data": {
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"folderId": "<string>",
"meta": "<any>",
"createdById": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}
}
API key for authentication
Prompt created successfully
The response is of type object
.
Was this page helpful?