curl -X GET \
https://api.agent37.com/v1/instances/ab12cd34ef \
-H "Authorization: Bearer sk_live_..."
import requests
response = requests.get(
"https://api.agent37.com/v1/instances/ab12cd34ef",
headers={
"Authorization": "Bearer sk_live_..."
},
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.agent37.com/v1/instances/ab12cd34ef",
{
method: "GET",
headers: {
"Authorization": "Bearer sk_live_..."
},
},
);
if (!response.ok) {
throw new Error(await response.text());
}
console.log(await response.json());
{
"id": "ab12cd34ef",
"status": "running",
"url": "https://ab12cd34ef.agent37.app"
}
Instances
Get an instance
Read an instance’s status, resources, and URLs.
GET
/
v1
/
instances
/
{id}
curl -X GET \
https://api.agent37.com/v1/instances/ab12cd34ef \
-H "Authorization: Bearer sk_live_..."
import requests
response = requests.get(
"https://api.agent37.com/v1/instances/ab12cd34ef",
headers={
"Authorization": "Bearer sk_live_..."
},
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.agent37.com/v1/instances/ab12cd34ef",
{
method: "GET",
headers: {
"Authorization": "Bearer sk_live_..."
},
},
);
if (!response.ok) {
throw new Error(await response.text());
}
console.log(await response.json());
{
"id": "ab12cd34ef",
"status": "running",
"url": "https://ab12cd34ef.agent37.app"
}
curl -X GET \
https://api.agent37.com/v1/instances/ab12cd34ef \
-H "Authorization: Bearer sk_live_..."
import requests
response = requests.get(
"https://api.agent37.com/v1/instances/ab12cd34ef",
headers={
"Authorization": "Bearer sk_live_..."
},
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.agent37.com/v1/instances/ab12cd34ef",
{
method: "GET",
headers: {
"Authorization": "Bearer sk_live_..."
},
},
);
if (!response.ok) {
throw new Error(await response.text());
}
console.log(await response.json());
{
"id": "ab12cd34ef",
"status": "running",
"url": "https://ab12cd34ef.agent37.app"
}
Authorization: Bearer sk_live_... on https://api.agent37.com.
Path parameters
string
required
The instance id, returned when you create an instance.
Response
200. The response contains the full instance object, including its resources, URLs, and timestamps. The example shows selected fields. Unknown, deleted, or other-workspace ids return 404 not_found.