Skip to main content
GET
https://api.ai21.com
/
studio
/
v1
/
maestro
/
runs
/
{run_id}
from ai21 import AI21Client

client = AI21Client(api_key="your-api-key")  # Replace with your API key

run_id = "your_run_id_here"

# Retrieve the Maestro run by ID
retrieved_run = client.beta.maestro.runs.retrieve(run_id)

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(api_key="your-api-key")  # Replace with your API key

run_id = "your_run_id_here"

# Retrieve the Maestro run by ID
retrieved_run = client.beta.maestro.runs.retrieve(run_id)

print(retrieved_run)