Get an AWS recommendation

Returns the recommendation for one commitment type (serviceId) on the AWS organization, including analysis metrics and time-bucketed eligible spend. Use granularity to choose the eligible-spend bucket size (defaults to day).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^\d{12}$

12-digit AWS management (payer) account ID (the account that owns the AWS Organization) that scopes the request.

string
enum
required

Commitment type whose recommendation to retrieve. Must be an onboarded commitment type for the AWS organization (compute or database).

Show Details
computeCompute commitment type (Savings Plans).
databaseDatabase commitment type (Savings Plans).
Allowed:
Query Params
string
enum
Defaults to day

Time bucket size for eligible-spend data points on the recommendation response. If omitted, defaults to day. Coarser buckets return min/max/median usage; hour returns per-hour totals.

Show Details
hourOne point per hour (typically last 24 hours of eligible usage).
dayOne point per day (typically last 21 days).
weekOne point per week (typically last 16 weeks).
monthOne point per month (typically last 6 months).
Allowed:
Headers
string

Customer (tenant) ID for the request. This is separate from authentication: you still pass your personal or service account API token in the Authorization header (Bearer <token>). See Get Started.

When to omit (most callers): If your personal or service account token belongs to a single customer, omit this header. The API resolves that customer from the token.

When to send: If your credential can access more than one customer, set X-Tenant-Id to the customer ID you want to act on. Omitting it returns 400 with code tenant_id_required. If the value conflicts with the tenants your credential may access, the request returns 400 with code tenant_id_mismatch. Prefer this header over the legacy customerContext query parameter, which only applies to legacy API keys and is ignored by personal and service account tokens.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json