✨ Get refined prompt

<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> Get the refined prompt based on the `refinement_job_id`.

Authentication

Authorizationstring
The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: <br><pre><code class="language-bash">curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"</code></pre>

Path parameters

prompt_idintegerRequired
version_idintegerRequired

Query parameters

refinement_job_idstringOptional

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

Response

Refined prompt response
previous_versionobject or null
Previous version of the prompt
promptstring
The refined prompt text
reasoningstring or null
Reasoning behind the refinement
refinement_job_idstring or null
Unique identifier for the refinement job
refinement_statusstring or null
Status of the refinement job
titlestring or null
Title of the refined prompt
total_coststring or null

Total cost of the refinement job (in USD)