Skip to main content
POST
/
v1
/
org
/
categories
/
{category_id}
/
prompts
JavaScript
import Profound from '@profoundai/client';

const client = new Profound({
  apiKey: process.env['PROFOUND_API_KEY'], // This is the default and can be omitted
});

const response = await client.organizations.categories.createPrompts(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  {
    prompts: [
      {
        language: 'language',
        platforms: [{}],
        prompt: 'x',
        regions: [{}],
        topic: {},
      },
    ],
  },
);

console.log(response.dry_run);
{
  "dry_run": true,
  "created": 0,
  "topics_created": 0,
  "tags_created": 0,
  "prompts": []
}

Documentation Index

Fetch the complete documentation index at: https://docs.tryprofound.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Path Parameters

category_id
string<uuid>
required

Body

application/json
prompts
CreatePromptInput · object[]
required

List of prompts to create.

dry_run
boolean
default:false

When true, validate and preview changes without persisting them.

Response

Successful Response

Response from creating prompts.

dry_run
boolean
required

Whether this was a dry run (no changes persisted).

created
integer
default:0

Number of prompts created.

topics_created
integer
default:0

Number of new topics created.

tags_created
integer
default:0

Number of new tags created.

prompts
PromptPreview · object[]

List of created (or previewed) prompts with resolved references.