Managing Stacks via API
Automate stack management using the Logit.io Developer API. This guide covers listing stacks, retrieving connection details, and requesting upgrades.
Use your Dashboard API key from the Profile (opens in a new tab) page in the x-api-key header. See Authentication for setup and security. For stack-specific endpoints, use @logs_id, @metrics_id, or @apm_id depending on which stack you're managing (from your session/JWT when signed in).
List Your Stacks
First, get your account ID from /api/accounts, then fetch stacks for that account.
Get accounts
curl -H "x-api-key: @dashboardApiKey" https://dashboard.logit.io/api/accountsGet stacks for an account
Replace ACCOUNT_ID with your account ID from the response above.
curl -H "x-api-key: @dashboardApiKey" https://dashboard.logit.io/api/account/ACCOUNT_ID/stacksThe response returns subscriptions and their associated stacks, including stack IDs and product names.
Get Stack Overview
Retrieve overview information for a specific stack. Use @logs_id, @metrics_id, or @apm_id for the stack you're viewing.
curl -H "x-api-key: @dashboardApiKey" https://dashboard.logit.io/api/stacks/@logs_idThe response includes stack name, type, and status.
Get Connection Details
Fetch connection URLs and service information (e.g. Logstash endpoints, OpenSearch URLs) for a stack:
curl -H "x-api-key: @dashboardApiKey" https://dashboard.logit.io/api/stacks/@logs_id/connection-detailsUse this to programmatically configure shippers or clients that send data to your stack.
Get Getting-Started Info
Check whether a stack has received data and retrieve getting-started guidance:
curl -H "x-api-key: @dashboardApiKey" https://dashboard.logit.io/api/stacks/@logs_id/getting-startedGet Stack Statistics
Retrieve usage statistics (volume sent, plan limits) for a stack:
curl -H "x-api-key: @dashboardApiKey" https://dashboard.logit.io/api/stacks/@logs_id/statisticsRequest a Stack Upgrade
For Log Management stacks, you can check available versions and request upgrades.
Check upgrade options
curl -H "x-api-key: @dashboardApiKey" https://dashboard.logit.io/api/stacks/@logs_id/upgradeRequest upgrade
POST with versionId in the body (from the check upgrade response).
curl -X POST -H "x-api-key: @dashboardApiKey" -H "Content-Type: application/json" \
-d '{"versionId": "VERSION_ID"}' \
https://dashboard.logit.io/api/stacks/@logs_id/upgrade/requestsFor more on upgrades, see Migrate or Upgrade Your Stack.
Audit Log
Search the audit log for stack activity:
curl -H "x-api-key: @dashboardApiKey" "https://dashboard.logit.io/api/stacks/@logs_id/audit-log?Page=1&PageSize=20"Optional query parameters: Search, Period.
Full API Reference
See the API Reference for complete endpoint documentation, request/response schemas, and additional stack operations.