Skip to main content
In this guide, we will walk you through the process of creating a new prompt in Keywords AI and how to collaborate with your team.

Create a prompt in the API

You can also create a prompt in the API. Here are the 2 endpoints you need to use to create a prompt:
  1. https://api.keywordsai.co/api/prompts/ - Create a new prompt.
  2. https://api.keywordsai.co/api/prompts/<prompt_id>/versions/ - Create a new version of a prompt.

1. Create a new prompt

You can use the POST /prompts/ endpoint to create a new prompt. You need to provide the name, and description of the prompt.

2. Find the prompt ID

Once you have created a prompt, you can find the prompt ID in the response, or you can go to the Prompts page and find the prompt ID in the prompt details.

3. Create a new version of the prompt

You can use the POST /api/prompts/<prompt_id>/versions/ endpoint to create a new version of a prompt. You need to provide the content of the prompt.
You just finished creating your first prompt in the code!