Authorizations
Headers
Path Parameters
Example:
import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const subTenant = await client.subTenants.retrieveByID('production');
console.log(subTenant.id);{
"id": "st_abc123def456",
"tenantId": "tenant_123",
"subTenantId": "production",
"name": "Production Environment",
"description": "Main production environment for customer workflows",
"isRegistered": true,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}Looks up a sub-tenant registration by its actual sub-tenant ID. Returns 404 if not registered (meaning it’s arbitrary). Accepts both public and secret keys.
import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const subTenant = await client.subTenants.retrieveByID('production');
console.log(subTenant.id);{
"id": "st_abc123def456",
"tenantId": "tenant_123",
"subTenantId": "production",
"name": "Production Environment",
"description": "Main production environment for customer workflows",
"isRegistered": true,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}Was this page helpful?