POST
/
v1
/
prompts
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>"
    }
  }
}

Authorizations

x-maxim-api-key
string
header
required

API key for authentication

Body

application/json
workspaceId
string
required

Unique identifier for the workspace

name
string
required

Name of the prompt

description
string

Description of the prompt

folderId
string | null

Unique identifier for the folder

Response

201
application/json
Prompt created successfully
data
object
required