API ReferenceInsights

Create insight

This will create a new AI insight for a prompt and additional customisations / tweaks that you want to apply only to this generation.

Tip: Get a promptId from the List prompts endpoint, or create a task-specific prompt with the Create prompt endpoint.

POST/spaces/{spaceId}/recordings/{recordingId}/insights

Authorization API key in the x-api-key header

Path parameters

  • spaceIdstringrequired

    ID of the workspace. You can find from the url in dashboard when you open the workspace or using the list workspaces endpoint.

  • recordingIdstringrequired

    ID of the recording. You can find from the url in dashboard when you open the workspace or using the list recordings endpoint.

Body

application/json · object

  • promptIdstringrequired

    Id of the prompt to use for this insight generation.

    How to get prompt id: use the List prompts endpoint to see the workspace's prompts, or the Create prompt endpoint to add your own.

  • tweakQuerystring

    Any additional tweaks or requests you want to inject into the prompt used to generate the insight.

    This is a good way to provide requests specific to this recording without having to edit the prompt itself.

Responses

  • 200AI models can take a few minutes to complete so, this endpoint can take much longer than our other endpoints

    application/json · Insight

    AI insight generated from the given inputs

    • idstringrequired

      ID of the insight

    • contentstringrequired

      Content of the insight generated by AI model

    • tweaksarray of stringrequired

      List of user tweaks passed in while generating this insight

      A tweak passed by the user.

      Examples:

      • Make it shorter

      • Make it formal

    • promptBasePromptrequired

      Prompt used while generating this insight

      Show 2 properties
      • idstringrequired

        ID of prompt

      • titlestringrequired

        Title of the prompt

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

response = requests.post(
    "https://transcript.lol/api/v1/spaces/string/recordings/string/insights",
    headers={
        "x-api-key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"promptId\": \"string\",\n  \"tweakQuery\": \"string\"\n}",
)
print(response.text)
200
{
  "id": "string",
  "content": "string",
  "tweaks": [
    "string"
  ],
  "prompt": {
    "id": "string",
    "title": "string"
  }
}