Amazon Macie API

The Macie API from Amazon Macie — 2 operation(s) for macie.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

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

DELETE /macie Disable Macie and delete its settings · Disable Macie #
Ask an LLM
“How do I turn off Macie and remove all its settings?”
“Does disabling Macie delete the account's resources?”
Tell an agent destructive · confirm first
Disable Macie and delete all its settings.
Turn off Macie for good.
POST /macie Enable Macie and set its settings · Enable Macie #
Ask an LLM
“How do I turn on Macie and set its publishing frequency?”
“Can I choose how often Macie publishes findings when I enable it?”
Tell an agent
Enable Macie with status {status}.
Enable Macie and set finding publishing frequency to {findingPublishingFrequency}.
GET /macie Get Macie account status and settings · Get Macie Session #
Ask an LLM
“Is Macie enabled on my account and what are its settings?”
“What is the current status of my Macie account?”
Tell an agent
Show my Macie account status and configuration.
Get the Macie session settings.
PATCH /macie Suspend or re-enable Macie · Update Macie Session #
Ask an LLM
“Can I pause Macie without deleting it?”
“How do I change Macie's publishing frequency after it is enabled?”
Tell an agent
Set Macie status to {status}.
Update Macie's finding publishing frequency to {findingPublishingFrequency}.
PATCH /macie/members/{id} Suspend or re-enable Macie for a member account · Update Member Session #
Ask an LLM
“Can an administrator pause Macie for a member account?”
“How do I re-enable Macie on a member account?”
Tell an agent
Set Macie status to {status} on member account {id}.
Pause Macie for member account {id}.

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-macie:amazon-macie-macie-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-macie-macie-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Macie 2 Macie API
  version: '2020-01-01'
  description: Generated from AWS's published Smithy model for Amazon Macie 2. 5 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://macie2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /macie:
    delete:
      operationId: DisableMacie
      summary: Disable Macie
      description: Disables Amazon Macie and deletes all settings and resources for a Macie account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DisableMacieResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      tags:
      - Macie
    post:
      operationId: EnableMacie
      summary: Enable Macie
      description: Enables Amazon Macie and specifies the configuration settings for a Macie account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnableMacieResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                clientToken:
                  type: string
                  description: A unique, case-sensitive token that you provide to ensure the idempotency of the request.
                findingPublishingFrequency:
                  type: string
                  enum:
                  - FIFTEEN_MINUTES
                  - ONE_HOUR
                  - SIX_HOURS
                  description: Specifies how often to publish updates to policy findings for the account. This includes publishing
                    updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).
                status:
                  type: string
                  enum:
                  - PAUSED
                  - ENABLED
                  description: Specifies the new status for the account. To enable Amazon Macie and start all Macie activities
                    for the account, set this value to ENABLED.
      tags:
      - Macie
    get:
      operationId: GetMacieSession
      summary: Get Macie Session
      description: Retrieves the status and configuration settings for an Amazon Macie account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMacieSessionResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      tags:
      - Macie
    patch:
      operationId: UpdateMacieSession
      summary: Update Macie Session
      description: Suspends or re-enables Amazon Macie, or updates the configuration settings for a Macie account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateMacieSessionResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                findingPublishingFrequency:
                  type: string
                  enum:
                  - FIFTEEN_MINUTES
                  - ONE_HOUR
                  - SIX_HOURS
                  description: Specifies how often to publish updates to policy findings for the account. This includes publishing
                    updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).
                status:
                  type: string
                  enum:
                  - PAUSED
                  - ENABLED
                  description: 'Specifies a new status for the account. Valid values are: ENABLED, resume all Amazon Macie
                    activities for the account; and, PAUSED, suspend all Macie activities for the account.'
      tags:
      - Macie
  /macie/members/{id}:
    patch:
      operationId: UpdateMemberSession
      summary: Update Member Session
      description: Enables an Amazon Macie administrator to suspend or re-enable Macie for a member account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateMemberSessionResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier for the Amazon Macie resource that the request applies to.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  enum:
                  - PAUSED
                  - ENABLED
                  description: 'Specifies the new status for the account. Valid values are: ENABLED, resume all Amazon Macie
                    activities for the account; and, PAUSED, suspend all Macie activities for the account.'
              required:
              - status
      tags:
      - Macie
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: macie2
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    ConflictException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    DisableMacieResponse:
      type: object
      properties: {}
    EnableMacieResponse:
      type: object
      properties: {}
    GetMacieSessionResponse:
      type: object
      properties:
        createdAt:
          type: string
          format: date-time
          description: The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created.
        findingPublishingFrequency:
          type: string
          enum:
          - FIFTEEN_MINUTES
          - ONE_HOUR
          - SIX_HOURS
          description: The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes
            publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).
        serviceRole:
          type: string
          description: The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze
            data in Amazon Web Services resources for the account.
        status:
          type: string
          enum:
          - PAUSED
          - ENABLED
          description: 'The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled
            but all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all
            Macie activities are enabled for the account.'
        updatedAt:
          type: string
          format: date-time
          description: The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or
            configuration settings for the Amazon Macie account.
    InternalServerException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    UpdateMacieSessionResponse:
      type: object
      properties: {}
    UpdateMemberSessionResponse:
      type: object
      properties: {}
    ValidationException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/macie2/service/2020-01-01/macie2-2020-01-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)