curl --request POST \
--url https://api.example.com/prompts/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>",
"category_name": "<string>",
"tags": [
"<string>"
],
"prompt_type": "user"
}
'{
"id": "<string>",
"email": "<string>",
"prompt_type": "<string>",
"title": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"category_name": "<string>",
"icon": "<string>",
"tags": [
"<string>"
]
}Create a new prompt.
curl --request POST \
--url https://api.example.com/prompts/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>",
"category_name": "<string>",
"tags": [
"<string>"
],
"prompt_type": "user"
}
'{
"id": "<string>",
"email": "<string>",
"prompt_type": "<string>",
"title": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"category_name": "<string>",
"icon": "<string>",
"tags": [
"<string>"
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for creating a new prompt.
Prompt title
1 - 200Prompt content
1 - 50000Category name
100List of tags for display
Prompt type: 'user' or 'system'
Successful Response
Was this page helpful?