Retrieve Limits
client.teams.retrieveLimits(stringteamID, RequestOptionsoptions?): TeamRetrieveLimitsResponse { limits, oneShotCreativeUnits, period, 2 more }
GET/teams/{teamId}/limits
Retrieve Limits
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
const response = await client.teams.retrieveLimits('teamId');
console.log(response.limits);{
"limits": {
"apiKeys": 0,
"canvasAssetLayers": 0,
"canvasAssets": 0,
"collections": 0,
"creativeUnits": 0,
"defaultSeats": 0,
"downloadAssets": 0,
"downloadModel": 0,
"inferenceBatchSize": 0,
"maxCooldown": 0,
"maxTrainingDatasets": 0,
"minCooldown": 0,
"models": 0,
"OTPSessions": 0,
"parallelCustomJobs": 0,
"parallelInferences": 0,
"parallelTraining": 0,
"parallelWorkflowRuns": 0,
"premiumGenerationSamples": 0,
"projects": 0,
"scalingFactor": 0,
"seats": 0,
"snapshotsRetention": 0,
"upload": 0
},
"oneShotCreativeUnits": [
{
"amount": 0,
"createdAt": "createdAt",
"expiration": "expiration",
"remaining": 0,
"updatedAt": "updatedAt"
}
],
"period": {
"end": "end",
"start": "start"
},
"plan": "cu-basic",
"values": {
"apiKeys": 0,
"canvasAssets": 0,
"collections": 0,
"creativeUnits": 0,
"projects": 0,
"seats": 0
}
}Returns Examples
{
"limits": {
"apiKeys": 0,
"canvasAssetLayers": 0,
"canvasAssets": 0,
"collections": 0,
"creativeUnits": 0,
"defaultSeats": 0,
"downloadAssets": 0,
"downloadModel": 0,
"inferenceBatchSize": 0,
"maxCooldown": 0,
"maxTrainingDatasets": 0,
"minCooldown": 0,
"models": 0,
"OTPSessions": 0,
"parallelCustomJobs": 0,
"parallelInferences": 0,
"parallelTraining": 0,
"parallelWorkflowRuns": 0,
"premiumGenerationSamples": 0,
"projects": 0,
"scalingFactor": 0,
"seats": 0,
"snapshotsRetention": 0,
"upload": 0
},
"oneShotCreativeUnits": [
{
"amount": 0,
"createdAt": "createdAt",
"expiration": "expiration",
"remaining": 0,
"updatedAt": "updatedAt"
}
],
"period": {
"end": "end",
"start": "start"
},
"plan": "cu-basic",
"values": {
"apiKeys": 0,
"canvasAssets": 0,
"collections": 0,
"creativeUnits": 0,
"projects": 0,
"seats": 0
}
}