Amazon CloudTrail Cloudtrail Operations API

The Cloudtrail Operations API from Amazon CloudTrail — 22 operation(s) for cloudtrail operations.

GitHub OpenAPI

Operations 24

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /#LookupEvents Look up recent account activity events · Lookup Events #
Ask an LLM
“Who deleted that EC2 instance in my account last week?”
“Can I look up CloudTrail management events from the last 90 days by user or event name?”
Tell an agent
Look up management events matching {LookupAttributes} between {StartTime} and {EndTime}.
Show the last {MaxResults} recorded API activity events in this Region.
POST /#DeregisterOrganizationDelegatedAdmin Remove a CloudTrail delegated administrator · Deregister Organization Delegated Admin #
Ask an LLM
“Can I revoke CloudTrail delegated admin rights from a member account?”
“Which account loses access when I deregister a delegated administrator?”
Tell an agent destructive · confirm first
Deregister account {DelegatedAdminAccountId} as CloudTrail delegated administrator.
Remove delegated admin permissions from {DelegatedAdminAccountId}.
POST /#RegisterOrganizationDelegatedAdmin Make a member account the CloudTrail delegated admin · Register Organization Delegated Admin #
Ask an LLM
“How do I let a member account manage CloudTrail for my organization?”
“Can a non-management account administer organization trails?”
Tell an agent
Register {MemberAccountId} as CloudTrail delegated administrator.
Make member account {MemberAccountId} the organization's CloudTrail admin.
POST /#DisableFederation Disable Lake query federation for a store · Disable Federation #
Ask an LLM
“Can I stop querying an event data store through Athena federation?”
“What do I do to turn off federation on an event data store?”
Tell an agent destructive · confirm first
Disable federation on event data store {EventDataStore}.
Turn off Lake query federation for {EventDataStore}.
POST /#EnableFederation Enable Lake query federation for a store · Enable Federation #
Ask an LLM
“How do I query my CloudTrail Lake events from Athena?”
“Which role do I need to enable federation on an event data store?”
Tell an agent
Enable federation on {EventDataStore} using role {FederationRoleArn}.
Federate event data store {EventDataStore} with role {FederationRoleArn}.
POST /#GetEventConfiguration Get the event size and context configuration · Get Event Configuration #
Ask an LLM
“What maximum event size is configured for my trail?”
“Can I see which context keys are added to events in an event data store?”
Tell an agent
Show the event configuration of trail {TrailName}.
Get the event configuration of event data store {EventDataStore}.
POST /#PutEventConfiguration Set event size and context key configuration · Put Event Configuration #
Ask an LLM
“Can I raise the maximum event size my trail records?”
“How do I add context keys or aggregation to events in an event data store?”
Tell an agent
Set the max event size of trail {TrailName} to {MaxEventSize}.
Apply context key selectors {ContextKeySelectors} to event data store {EventDataStore}.
POST /#GetEventSelectors Get a trail's event selectors · Get Event Selectors #
Ask an LLM
“Which management and data events is my trail set to log?”
“Does my trail use basic or advanced event selectors?”
Tell an agent
Show the event selectors for trail {TrailName}.
Get which events trail {TrailName} records.
POST /#PutEventSelectors Configure which events a trail logs · Put Event Selectors #
Ask an LLM
“How do I make a trail log S3 data events too?”
“Can I use advanced event selectors to filter what a trail captures?”
Tell an agent
Set event selectors {EventSelectors} on trail {TrailName}.
Apply advanced event selectors {AdvancedEventSelectors} to trail {TrailName}.
POST /#GetInsightSelectors Get Insights selectors · Get Insight Selectors #
Ask an LLM
“Is CloudTrail Insights turned on for my trail, and for which event types?”
“Which Insights types are enabled on an event data store?”
Tell an agent
Show the Insights selectors for trail {TrailName}.
Get the Insights settings of event data store {EventDataStore}.
POST /#PutInsightSelectors Enable CloudTrail Insights on a trail or store · Put Insight Selectors #
Ask an LLM
“How do I turn on unusual API call rate detection with CloudTrail Insights?”
“Can Insights events go to a separate destination event data store?”
Tell an agent
Enable Insights selectors {InsightSelectors} on trail {TrailName}.
Set Insights selectors {InsightSelectors} on {EventDataStore} with destination {InsightsDestination}.
POST /#GetQueryResults Get results of a Lake query · Get Query Results #
Ask an LLM
“Where do I fetch the rows my CloudTrail Lake query returned?”
“Can I page through large query results?”
Tell an agent
Get the results of query {QueryId}.
Get up to {MaxQueryResults} result rows for query {QueryId}.
POST /#GetTrailStatus Check a trail's logging status and errors · Get Trail Status #
Ask an LLM
“Is my trail actually logging, and when did it last deliver to S3?”
“Can I see delivery errors for a trail?”
Tell an agent
Check the status of trail {Name}.
Show delivery errors and last log time for trail {Name}.
POST /#ListImportFailures List failures from an import · List Import Failures #
Ask an LLM
“Why did some events fail during my CloudTrail Lake import?”
“Can I see the error for each failed file in an import?”
Tell an agent
List failures for import {ImportId}.
Show up to {MaxResults} failed entries from import {ImportId}.
POST /#ListInsightsData List Insights events for a trail · List Insights Data #
Ask an LLM
“What Insights events did my data-event trail generate recently?”
“Can I filter Insights events by dimension and time window?”
Tell an agent
List Insights data of type {DataType} from source {InsightSource}.
List Insights data from {InsightSource} of type {DataType} between {StartTime} and {EndTime}.
POST /#ListInsightsMetricData Get Insights metric data for an API · List Insights Metric Data #
Ask an LLM
“How often was a given API called compared with its Insights baseline?”
“Can I get error-rate Insights metrics for one event name?”
Tell an agent
Get {InsightType} metrics for {EventName} from {EventSource}.
Get {InsightType} metrics for {EventName} from {EventSource} with error code {ErrorCode}.
POST /#ListPublicKeys List public keys for digest validation · List Public Keys #
Ask an LLM
“Which public keys do I need to validate my CloudTrail digest files?”
“Can I get signing keys for a specific time range?”
Tell an agent
List public keys used between {StartTime} and {EndTime}.
List the current digest signing public keys.
POST /#SearchSampleQueries Search sample Lake queries · Search Sample Queries #
Ask an LLM
“Are there ready-made CloudTrail Lake SQL samples I can start from?”
“Can I find example queries about a topic like console logins?”
Tell an agent
Search sample queries for {SearchPhrase}.
Find up to {MaxResults} sample queries matching {SearchPhrase}.
POST /#StartDashboardRefresh Refresh a dashboard now · Start Dashboard Refresh #
Ask an LLM
“How do I manually refresh a CloudTrail Lake dashboard?”
“Can I pass parameter values when refreshing a dashboard?”
Tell an agent
Refresh dashboard {DashboardId}.
Refresh dashboard {DashboardId} with query parameters {QueryParameterValues}.
POST /#StartEventDataStoreIngestion Resume ingestion into an event data store · Start Event Data Store Ingestion #
Ask an LLM
“Can I restart event ingestion on a store I paused?”
“How do I get a stopped event data store collecting events again?”
Tell an agent
Start ingestion on event data store {EventDataStore}.
Resume collecting events into {EventDataStore}.
POST /#StopEventDataStoreIngestion Pause ingestion into an event data store · Stop Event Data Store Ingestion #
Ask an LLM
“Can I stop an event data store from collecting new events without deleting it?”
“What happens to queries when ingestion is paused?”
Tell an agent destructive · confirm first
Stop ingestion on event data store {EventDataStore}.
Pause event collection into {EventDataStore}.
POST /#StartLogging Start logging on a trail · Start Logging #
Ask an LLM
“My trail is not recording API calls; how do I turn it on?”
“Must I start logging for a multi-Region trail from its home Region?”
Tell an agent
Start logging on trail {Name}.
Turn on API call recording for trail {Name}.
POST /#StopLogging Stop logging on a trail · Stop Logging #
Ask an LLM
“Can I suspend a trail's log delivery temporarily?”
“What do I lose when I stop logging on a trail?”
Tell an agent destructive · confirm first
Stop logging on trail {Name}.
Suspend log delivery for trail {Name}.
POST /PutAuditEvents Ingest application audit events into a channel · Put Audit Events #
Ask an LLM
“How do I send my own application's audit events into CloudTrail Lake?”
“Can I attach an external ID when ingesting events through a channel?”
Tell an agent
Send audit events {auditEvents} to channel {channelArn}.
Ingest {auditEvents} into channel {channelArn} with external ID {externalId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-cloudtrail:amazon-cloudtrail-operations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-cloudtrail-operations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS CloudTrail Operations API
  version: '2013-11-01'
  description: Generated from AWS's published Smithy model for AWS CloudTrail. 24 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://cloudtrail.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:


# --- truncated at 32 KB (114 KB total) ---
# Full source: https://artifacts.apis.io/amazon-cloudtrail/openapi/amazon-cloudtrail-operations-api-openapi.yml