Skip to main content
Version: 1.11.0-beta

getPrompt

Stub — This method is not implemented yet. Planned for a future ImagineoAI release.

Retrieves a single prompt by its ID.

Available in: Browser & Node.js SDK (stub)


Signature

async getPrompt(id: string): Promise<GetPromptResponse>

Parameters

  • id: string — The prompt ID.

Returns

  • Endpoint: /api/v1/prompts/{id}
  • Response:
    { prompt: Prompt }
    — The updated prompt object (see Prompt type in the API reference).

Errors

  • Throws "not implemented yet."

Example

await client.getPrompt("prompt-id"); // Throws for now