API ReferenceInsights

Create prompt

Create a new insight prompt template in the workspace — for example a prompt tailored to a specific task. The prompt is saved to the workspace's prompt library; it does not run automatically on future transcriptions. Use the returned id with the Create insight endpoint.

POST/spaces/{spaceId}/prompts

Authorization API key in the x-api-key header

Path parameters

  • spaceIdstringrequired

    ID of the workspace.

Body

application/json · object

  • titlestringrequired

    Short, human-readable name for the prompt.

  • promptstringrequired

    The instruction run against the transcript.

  • sampleContentstring · nullable

    Optional example of the desired output, to steer the formatting and style.

Responses

  • 200Created prompt

    application/json · Prompt

    • idstringrequired

      The prompt ID. Pass this as promptId to the Create insight endpoint.

    • titlestringrequired

      Short, human-readable name for the prompt.

    • promptstringrequired

      The instruction run against the transcript.

    • sampleContentstring · nullable

      Optional example of the desired output, used to steer formatting and style.

    • adminManagedboolean

      Whether this is a built-in prompt managed by transcript.lol. Admin-managed prompts cannot be edited.

    • autoGenerateboolean

      Whether this prompt runs automatically when a recording finishes transcribing. Only returned by the List prompts endpoint.

  • 400Invalid input

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 401Authentication failed

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 403You don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 404Not found or don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

curl 'https://transcript.lol/api/v1/spaces/string/prompts' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "title": "string",
  "prompt": "string",
  "sampleContent": "string"
}'
const response = await fetch("https://transcript.lol/api/v1/spaces/string/prompts", {
  method: "POST",
  headers: {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "title": "string",
    "prompt": "string",
    "sampleContent": "string"
  }),
});
const text = await response.text();
import requests

response = requests.post(
    "https://transcript.lol/api/v1/spaces/string/prompts",
    headers={
        "x-api-key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"title\": \"string\",\n  \"prompt\": \"string\",\n  \"sampleContent\": \"string\"\n}",
)
print(response.text)
{
  "id": "string",
  "title": "string",
  "prompt": "string",
  "sampleContent": "string",
  "adminManaged": true,
  "autoGenerate": true
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}