AWS Security Hub Members API

The Members API from AWS Security Hub — 4 operation(s) for members.

GitHub OpenAPI

Operations 6

POST /members Create Members #
GET /members List Members #
POST /members/delete Delete Members #
POST /members/disassociate Disassociate Members #
POST /members/get Get Members #
POST /members/invite Invite Members #

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/aws-security-hub:aws-security-hub-members-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

aws-security-hub-members-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS SecurityHub Members API
  version: '2018-10-26'
  description: Generated from AWS's published Smithy model for AWS SecurityHub. 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://securityhub.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /members:
    post:
      operationId: CreateMembers
      summary: Create Members
      description: 'Creates a member association in Security Hub CSPM between the specified accounts and the account used
        to make the request, which is the administrator account. If you are integrated with Organizations, then the administrator
        account is designated by the organization management account. CreateMembers is always used to add accounts that are
        not organization members. For accounts that are managed using Organizations, CreateMembers is only used in the following
        cases: Security Hub CSPM is not configured to automatically add new organization accounts. The account was disassociated
        or deleted in Security Hub CSPM. This action can only be used by an account that has Security Hub CSPM enabled. To
        enable Security Hub CSPM, you can use the EnableSecurityHub operation. For accounts that are not organization members,
        you create the account association and then send an invitation to the member account. To send the invitation, you
        use the InviteMembers operation. If the account owner accepts the invitation, the account becomes a member account
        in Security Hub CSPM. Accounts that are managed using Organizations don''t receive an invitation. They automatically
        become a member account in Security Hub'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateMembersResponse'
              example:
                UnprocessedAccounts: []
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AccountDetails:
                  type: array
                  items:
                    $ref: '#/components/schemas/AccountDetails'
                  description: The list of accounts to associate with the Security Hub CSPM administrator account. For each
                    account, the list includes the account ID and optionally the email address.
              required:
              - AccountDetails
            example:
              AccountDetails:
              - AccountId: '123456789012'
              - AccountId: '111122223333'
      tags:
      - Members
    get:
      operationId: ListMembers
      summary: List Members
      description: Lists details about all member accounts for the current Security Hub CSPM administrator account. The results
        include both member accounts that belong to an organization and member accounts that were invited manually.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMembersResponse'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
      parameters:
      - name: OnlyAssociated
        in: query
        schema:
          type: boolean
        description: Specifies which member accounts to include in the response based on their relationship status with the
          administrator account. The default value is TRUE. If OnlyAssociated is set to TRUE, the response includes member
          accounts whose relationship status with the administrator account is set to ENABLED. If OnlyAssociated is set to
          FALSE, the response includes all existing member accounts.
      - name: MaxResults
        in: query
        schema:
          type: integer
        description: The maximum number of items to return in the response.
      - name: NextToken
        in: query
        schema:
          type: string
        description: The token that is required for pagination. On your first call to the ListMembers operation, set the value
          of this parameter to NULL. For subsequent calls to the operation, to continue listing data, set the value of this
          parameter to the value returned from the previous response.
      tags:
      - Members
  /members/delete:
    post:
      operationId: DeleteMembers
      summary: Delete Members
      description: Deletes the specified member accounts from Security Hub CSPM. You can invoke this API only to delete accounts
        that became members through invitation. You can't invoke this API to delete accounts that belong to an Organizations
        organization.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteMembersResponse'
              example:
                UnprocessedAccounts: []
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AccountIds:
                  type: array
                  items:
                    type: string
                  description: The list of account IDs for the member accounts to delete.
              required:
              - AccountIds
            example:
              AccountIds:
              - '123456789111'
              - '123456789222'
      tags:
      - Members
  /members/disassociate:
    post:
      operationId: DisassociateMembers
      summary: Disassociate Members
      description: Disassociates the specified member accounts from the associated administrator account. Can be used to disassociate
        both accounts that are managed using Organizations and accounts that were invited manually.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DisassociateMembersResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AccountIds:
                  type: array
                  items:
                    type: string
                  description: The account IDs of the member accounts to disassociate from the administrator account.
              required:
              - AccountIds
            example:
              AccountIds:
              - '123456789012'
              - '111122223333'
      tags:
      - Members
  /members/get:
    post:
      operationId: GetMembers
      summary: Get Members
      description: Returns the details for the Security Hub CSPM member accounts for the specified account IDs. An administrator
        account can be either the delegated Security Hub CSPM administrator account for an organization or an administrator
        account that enabled Security Hub CSPM manually. The results include both member accounts that are managed using Organizations
        and accounts that were invited manually.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMembersResponse'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AccountIds:
                  type: array
                  items:
                    type: string
                  description: The list of account IDs for the Security Hub CSPM member accounts to return the details for.
              required:
              - AccountIds
      tags:
      - Members
  /members/invite:
    post:
      operationId: InviteMembers
      summary: Invite Members
      description: We recommend using Organizations instead of Security Hub CSPM invitations to manage your member accounts.
        For information, see Managing Security Hub CSPM administrator and member accounts with Organizations in the Security
        Hub CSPM User Guide. Invites other Amazon Web Services accounts to become member accounts for the Security Hub CSPM
        administrator account that the invitation is sent from. This operation is only used to invite accounts that don't
        belong to an Amazon Web Services organization. Organization accounts don't receive invitations. Before you can use
        this action to invite a member, you must first use the CreateMembers action to create the member account in Security
        Hub CSPM. When the account owner enables Security Hub CSPM and accepts the invitation to become a member account,
        the administrator account can view the findings generated in the member account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InviteMembersResponse'
              example:
                UnprocessedAccounts: []
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AccountIds:
                  type: array
                  items:
                    type: string
                  description: The list of account IDs of the Amazon Web Services accounts to invite to Security Hub CSPM
                    as members.
              required:
              - AccountIds
            example:
              AccountIds:
              - '111122223333'
              - '444455556666'
      tags:
      - Members
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: securityhub
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    AccountDetails:
      type: object
      properties:
        AccountId:
          type: string
          description: The ID of an Amazon Web Services account.
        Email:
          type: string
          description: The email of an Amazon Web Services account.
      required:
      - AccountId
    CreateMembersResponse:
      type: object
      properties:
        UnprocessedAccounts:
          type: array
          items:
            $ref: '#/components/schemas/Result'
          description: The list of Amazon Web Services accounts that were not processed. For each account, the list includes
            the account ID and the email address.
    DeleteMembersResponse:
      type: object
      properties:
        UnprocessedAccounts:
          type: array
          items:
            $ref: '#/components/schemas/Result'
          description: The list of Amazon Web Services accounts that were not deleted. For each account, the list includes
            the account ID and the email address.
    DisassociateMembersResponse:
      type: object
      properties: {}
    GetMembersResponse:
      type: object
      properties:
        Members:
          type: array
          items:
            $ref: '#/components/schemas/Member'
          description: The list of details about the Security Hub CSPM member accounts.
        UnprocessedAccounts:
          type: array
          items:
            $ref: '#/components/schemas/Result'
          description: The list of Amazon Web Services accounts that could not be processed. For each account, the list includes
            the account ID and the email address.
    InternalException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    InvalidAccessException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    InvalidInputException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    InviteMembersResponse:
      type: object
      properties:
        UnprocessedAccounts:
          type: array
          items:
            $ref: '#/components/schemas/Result'
          description: The list of Amazon Web Services accounts that could not be processed. For each account, the list includes
            the account ID and the email address.
    LimitExceededException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    ListMembersResponse:
      type: object
      properties:
        Members:
          type: array
          items:
            $ref: '#/components/schemas/Member'
          description: Member details returned by the operation.
        NextToken:
          type: string
          description: The pagination token to use to request the next page of results.
    Member:
      type: object
      properties:
        AccountId:
          type: string
          description: The Amazon Web Services account ID of the member account.
        Email:
          type: string
          description: The email address of the member account.
        MasterId:
          type: string
          description: This is replaced by AdministratorID. The Amazon Web Services account ID of the Security Hub CSPM administrator
            account associated with this member account.
        AdministratorId:
          type: string
          description: The Amazon Web Services account ID of the Security Hub CSPM administrator account associated with this
            member account.
        MemberStatus:
          type: string
          description: 'The status of the relationship between the member account and its administrator account. The status
            can have one of the following values: Created - Indicates that the administrator account added the member account,
            but has not yet invited the member account. Invited - Indicates that the administrator account invited the member
            account. The member account has not yet responded to the invitation. Enabled - Indicates that the member account
            is currently active. For manually invited member accounts, indicates that the member account accepted the invitation.
            Removed - Indicates that the administrat'
        InvitedAt:
          type: string
          format: date-time
          description: A timestamp for the date and time when the invitation was sent to the member account.
        UpdatedAt:
          type: string
          format: date-time
          description: The timestamp for the date and time when the member account was updated.
    ResourceConflictException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    Result:
      type: object
      properties:
        AccountId:
          type: string
          description: An Amazon Web Services account ID of the account that was not processed.
        ProcessingResult:
          type: string
          description: The reason that the account was not processed.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/securityhub/service/2018-10-26/securityhub-2018-10-26.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)