Show examples in:
JavascriptHTTP
Endpoint info
Available examples
Dashboard API > Plan

Retrieve enabled plans for account

Warning: Experimental API

Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.

Returns

Returns an array of resource objects of type site_plan

Examples

import { buildClient } from "@datocms/dashboard-client";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const sitePlans = await client.sitePlans.list();
for (const sitePlan of sitePlans) {
// Check the 'Returned output' tab for the result ☝️
console.log(sitePlan);
}
}
run();
{
id: "124",
name: "Basic",
active: true,
custom_domain: true,
users: 2,
indexable_pages: 1000,
build_triggers: 4,
search_indexes: 4,
plugins: 4,
webhooks: 15,
items: 5000,
monthly_price: 19,
yearly_price: 189,
uploadable_bytes: 1073741824,
history_resolution_minutes: 15,
traffic_bytes: 1073741824,
api_calls: 100000,
mux_streaming_seconds: 3600,
mux_encoding_seconds: 3600,
smart_tags_detections: 100,
mcp_sandbox_execution_seconds: 3000,
mcp_sandbox_timeout_seconds: 20,
access_tokens: 10,
roles: 10,
locales: 10,
sandbox_environments: 2,
item_types: 25,
item_locking: true,
white_label: true,
sso: true,
advanced_media_area: true,
blocks_per_item: 200,
blocks_depth: 3,
video: true,
history_retention_days: 30,
otp: true,
extra_packets: {
users: { amount_per_packet: 1, price: 10 },
locales: { amount_per_packet: 1, price: 10 },
item_types: { amount_per_packet: 1, price: 10 },
roles: { amount_per_packet: 1, price: 10 },
build_triggers: { amount_per_packet: 1, price: 10 },
access_tokens: { amount_per_packet: 1, price: 10 },
mux_encoding_seconds: { amount_per_packet: 1000, price: 10 },
sandbox_environments: { amount_per_packet: 1, price: 10 },
},
auto_packets: {
api_calls: { amount_per_packet: 250000, price: 9 },
cda_api_calls: { amount_per_packet: 1000000, price: 9 },
cma_api_calls: { amount_per_packet: 100000, price: 9 },
traffic_bytes: { amount_per_packet: 161061273600, price: 29 },
mux_streaming_seconds: { amount_per_packet: 250000, price: 29 },
},
workflows: true,
workflows_count: 10,
audit_log: true,
translator_roles: true,
concurrent_realtime_connections: 500,
static_webhooks_ip: true,
maximum_single_upload_bytes: 1073741824,
gql_complexity: 10000000,
visual_editing: true,
item_size_bytes: 307200,
}