Skip to content

GetPromptResponse

Example Usage

typescript
import { GetPromptResponse } from "@meetkai/mka1/models/components";

let value: GetPromptResponse = {
  id: "<id>",
  object: "prompt",
  name: "<value>",
  activeVersion: 866426,
  latestVersion: 668192,
  metadata: {
    "key": "<value>",
  },
  createdAt: new Date("2024-10-12T23:44:22.745Z"),
  updatedAt: new Date("2025-09-16T12:38:42.043Z"),
  activeTemplate: "<value>",
};

Fields

FieldTypeRequiredDescription
idstring✔️Unique prompt identifier
object"prompt"✔️Object type
namestring✔️Human-readable prompt name
descriptionstringDetailed description of the prompt
activeVersionnumber✔️Currently active version number
latestVersionnumber✔️Most recent version number
metadataRecord<string, any>✔️Custom metadata key-value pairs
createdAtDate✔️Timestamp when the prompt was created
updatedAtDate✔️Timestamp when the prompt was last updated
activeTemplatestring✔️The template text for the requested version
renderedTemplatestringThe template with variables substituted — only present when variables are provided