Amazon CloudTrail Trails API

Operations for creating and managing CloudTrail trails

GitHub OpenAPI
Business capability
Observability Management BC-4220.20

Operations 6

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 /#CreateTrail Create a trail that logs to S3 · Create Trail #
Ask an LLM
“How do I start recording AWS API activity to an S3 bucket?”
“Can a new trail cover all Regions and my whole organization?”
Tell an agent
Create a trail named {Name} delivering logs to bucket {S3BucketName}.
Create multi-Region trail {Name} to {S3BucketName} with multi-Region set to {IsMultiRegionTrail}.
POST /#DeleteTrail Delete a trail · Delete Trail #
Ask an LLM
“Can I delete a trail from a different Region than where it was created?”
“What happens to logging when I delete a trail?”
Tell an agent destructive · confirm first
Delete trail {Name}.
Remove the trail {Name} permanently.
POST /#DescribeTrails Describe trails in the current Region · Describe Trails #
Ask an LLM
“What settings do all the trails in this Region have?”
“Can I include shadow trails replicated from other Regions?”
Tell an agent
Describe the trails {trailNameList}.
Describe all trails here, including shadow trails set to {includeShadowTrails}.
POST /#GetTrail Get settings for one trail · Get Trail #
Ask an LLM
“Which S3 bucket and KMS key does a specific trail use?”
“Can I retrieve one trail's configuration by name or ARN?”
Tell an agent
Get the settings of trail {Name}.
Show trail {Name}'s configuration.
POST /#ListTrails List trails in my account · List Trails #
Ask an LLM
“What trails exist in my AWS account?”
“Is there a simple list of trail names and home Regions?”
Tell an agent
List my trails.
List the next page of trails using token {NextToken}.
POST /#UpdateTrail Update a trail's settings · Update Trail #
Ask an LLM
“How do I change the S3 bucket an existing trail delivers to?”
“Can I turn an existing trail into an organization trail?”
Tell an agent
Change trail {Name} to deliver to bucket {S3BucketName}.
Enable log file validation on trail {Name}: {EnableLogFileValidation}.

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-trails-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-trails-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS CloudTrail Trails API
  version: '2013-11-01'
  description: Generated from AWS's published Smithy model for AWS CloudTrail. 6 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 (39 KB total) ---
# Full source: https://artifacts.apis.io/amazon-cloudtrail/openapi/amazon-cloudtrail-trails-api-openapi.yml