Skip to main content
GET
/
studio
/
v1
/
maestro
/
runs
/
{run_id}
from ai21 import AI21Client  client = AI21Client()  # Replace with your actual run ID run_id = "your_run_id_here"  # Retrieve the Maestro run by ID retrieved_run = client.beta.maestro.runs.retrieve(run_id)  # Print the retrieved run object print(retrieved_run) 

Path parameters

run_id
string
A unique identifier of the run you wish to retrieve.

Returns

The run object matches the specified ID.
from ai21 import AI21Client  client = AI21Client()  # Replace with your actual run ID run_id = "your_run_id_here"  # Retrieve the Maestro run by ID retrieved_run = client.beta.maestro.runs.retrieve(run_id)  # Print the retrieved run object print(retrieved_run) 
⌘I