✨ Get refined prompt
Authentication
AuthorizationToken
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:
curl https://label-studio-host/api/projects -H “Authorization: Token [your-token]”Path parameters
prompt_id
version_id
Query parameters
refinement_job_id
Refinement Job ID acquired from the POST /api/prompts/{prompt_id}/versions/{version_id}/refine endpoint
Response
Refined prompt response
previous_version
Previous version of the prompt
prompt
The refined prompt text
reasoning
Reasoning behind the refinement
refinement_job_id
Unique identifier for the refinement job
refinement_status
Status of the refinement job
title
Title of the refined prompt
total_cost
Total cost of the refinement job (in USD)