Core - Retrieve an environment
curl --request GET \
--url 'https://my.orq.ai/v3/environments/env_01jz2r3s4t5v6w7x8y9z0abcde' \
--header "Authorization: Bearer $ORQ_API_KEY"
import { Orq } from '@orq-ai/node';
const client = new Orq({ apiKey: process.env.ORQ_API_KEY });
const result = await client.environments.get({
environmentId: 'env_01jz2r3s4t5v6w7x8y9z0abcde',
});
console.log(result.environment);
import os
from orq_ai_sdk import Orq
client = Orq(api_key=os.environ["ORQ_API_KEY"])
result = client.environments.get(
environment_id="env_01jz2r3s4t5v6w7x8y9z0abcde",
)
print(result.environment)
{
"environment": {
"id": "<string>",
"slug": "<string>",
"display_name": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by_id": "<string>",
"project_id": "<string>",
"sharing": {
"all_projects": {},
"selected": {
"project_ids": [
"<string>"
]
},
"allow_version_pin": true,
"allow_fork": true,
"auto_grant_new_projects": true
}
}
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}Environments
Retrieve an environment
Retrieve one visible environment by ID.
GET
/
v3
/
environments
/
{environment_id}
Core - Retrieve an environment
curl --request GET \
--url 'https://my.orq.ai/v3/environments/env_01jz2r3s4t5v6w7x8y9z0abcde' \
--header "Authorization: Bearer $ORQ_API_KEY"
import { Orq } from '@orq-ai/node';
const client = new Orq({ apiKey: process.env.ORQ_API_KEY });
const result = await client.environments.get({
environmentId: 'env_01jz2r3s4t5v6w7x8y9z0abcde',
});
console.log(result.environment);
import os
from orq_ai_sdk import Orq
client = Orq(api_key=os.environ["ORQ_API_KEY"])
result = client.environments.get(
environment_id="env_01jz2r3s4t5v6w7x8y9z0abcde",
)
print(result.environment)
{
"environment": {
"id": "<string>",
"slug": "<string>",
"display_name": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by_id": "<string>",
"project_id": "<string>",
"sharing": {
"all_projects": {},
"selected": {
"project_ids": [
"<string>"
]
},
"allow_version_pin": true,
"allow_fork": true,
"auto_grant_new_projects": true
}
}
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}Related guide: Environments guide. See the Environments guide for a walkthrough with examples.
Was this page helpful?