/v2/projects/{projectId}/prompts/runRun a project prompt
Runs a prompt for a project using a specified provider, key, and target language. Supply keyId, provider, and targetLanguageId; optionally set a template or choose basicPromptOptions to customize the prompt context. The response includes the generated prompt and result.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Prompt run configuration. keyId, provider, and targetLanguageId are required.
A 400 is returned when required fields are missing or a value is invalid; keyId, provider, and targetLanguageId are required, and each basicPromptOptions value must be one of the supported options. A 401 is returned when the request is unauthenticated, and a 403 is returned when the authenticated user cannot run prompts for the project. A 404 is returned when the project or a requested resource cannot be found; the projectId path parameter must identify the project.