Get refined prompt

Get the refined prompt based on the refinement_job_id.

Path parameters

prompt_idintegerRequired
Prompt ID
version_idintegerRequired
Prompt Version ID

Headers

AuthorizationstringRequired

Header authentication of the form Token <token>

Query parameters

refinement_job_idstringRequired

Refinement Job ID acquired from the POST /api/prompts/{prompt_id}/versions/{version_id}/refine endpoint

Response

promptstring
The refined prompt text
titlestring or null
Title of the refined prompt
reasoningstring or null
Reasoning behind the refinement
refinement_job_idstring or null
Unique identifier for the refinement job
refinement_statusenum or nullDefaults to Pending
Status of the refinement job
Allowed values:
total_coststring or null

Total cost of the refinement job (in USD)

previous_versionobject or null
Previous version of the prompt