AWS Security Hub Invitations API

The Invitations API from AWS Security Hub — 3 operation(s) for invitations.

GitHub OpenAPI

Operations 5

POST /invitations/decline Decline Invitations #
POST /invitations/delete Delete Invitations #
GET /invitations/count Get Invitations Count #
GET /invitations List Invitations #
POST /master Accept Invitation #

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-invitations-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-invitations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS SecurityHub Invitations API
  version: '2018-10-26'
  description: Generated from AWS's published Smithy model for AWS SecurityHub. 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://securityhub.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /invitations/decline:
    post:
      operationId: DeclineInvitations
      summary: Decline Invitations
      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. Declines invitations to become a Security Hub CSPM member account. A prospective member account
        uses this operation to decline an invitation to become a member. Only member accounts that aren't part of an Amazon
        Web Services organization should use this operation. Organization accounts don't receive invitations.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeclineInvitationsResponse'
              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'
        '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 prospective member account IDs for which to decline an invitation.
              required:
              - AccountIds
            example:
              AccountIds:
              - '123456789012'
              - '111122223333'
      tags:
      - Invitations
  /invitations/delete:
    post:
      operationId: DeleteInvitations
      summary: Delete Invitations
      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. Deletes invitations to become a Security Hub CSPM member account. A Security Hub CSPM administrator
        account can use this operation to delete invitations sent to one or more prospective member accounts. This operation
        is only used to delete invitations that are sent to prospective member accounts that aren't part of an Amazon Web
        Services organization. Organization accounts don't receive invitations.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteInvitationsResponse'
              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 member account IDs that received the invitations you want to delete.
              required:
              - AccountIds
            example:
              AccountIds:
              - '123456789012'
      tags:
      - Invitations
  /invitations/count:
    get:
      operationId: GetInvitationsCount
      summary: Get Invitations Count
      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. Returns the count of all Security Hub CSPM membership invitations that were sent to the calling
        member account, not including the currently accepted invitation.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetInvitationsCountResponse'
              example:
                InvitationsCount: 3
        '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'
      tags:
      - Invitations
  /invitations:
    get:
      operationId: ListInvitations
      summary: List Invitations
      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. Lists all Security Hub CSPM membership invitations that were sent to the calling account. Only
        accounts that are managed by invitation can use this operation. Accounts that are managed using the integration with
        Organizations don't receive invitations.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInvitationsResponse'
        '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: 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 ListInvitations 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:
      - Invitations
  /master:
    post:
      operationId: AcceptInvitation
      summary: Accept Invitation
      description: This method is deprecated. Instead, use AcceptAdministratorInvitation. The Security Hub CSPM console continues
        to use AcceptInvitation. It will eventually change to use AcceptAdministratorInvitation. Any IAM policies that specifically
        control access to this function must continue to use AcceptInvitation. You should also add AcceptAdministratorInvitation
        to your policies to ensure that the correct permissions are in place after the console begins to use AcceptAdministratorInvitation.
        Accepts the invitation to be a member account and be monitored by the Security Hub CSPM administrator account that
        the invitation was sent from. This operation is only used by member accounts that are not added through Organizations.
        When the member account accepts the invitation, permission is granted to the administrator account to view findings
        generated in the member account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcceptInvitationResponse'
        '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'
      deprecated: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                MasterId:
                  type: string
                  description: The account ID of the Security Hub CSPM administrator account that sent the invitation.
                InvitationId:
                  type: string
                  description: The identifier of the invitation sent from the Security Hub CSPM administrator account.
              required:
              - MasterId
              - InvitationId
      tags:
      - Invitations
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:
    AcceptInvitationResponse:
      type: object
      properties: {}
    DeclineInvitationsResponse:
      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.
    DeleteInvitationsResponse:
      type: object
      properties:
        UnprocessedAccounts:
          type: array
          items:
            $ref: '#/components/schemas/Result'
          description: The list of Amazon Web Services accounts for which the invitations were not deleted. For each account,
            the list includes the account ID and the email address.
    GetInvitationsCountResponse:
      type: object
      properties:
        InvitationsCount:
          type: integer
          description: The number of all membership invitations sent to this Security Hub CSPM member account, not including
            the currently accepted invitation.
    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
    Invitation:
      type: object
      properties:
        AccountId:
          type: string
          description: The account ID of the Security Hub CSPM administrator account that the invitation was sent from.
        InvitationId:
          type: string
          description: The ID of the invitation sent to the member account.
        InvitedAt:
          type: string
          format: date-time
          description: The timestamp of when the invitation was sent.
        MemberStatus:
          type: string
          description: The current status of the association between the member and administrator accounts.
    LimitExceededException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    ListInvitationsResponse:
      type: object
      properties:
        Invitations:
          type: array
          items:
            $ref: '#/components/schemas/Invitation'
          description: The details of the invitations returned by the operation.
        NextToken:
          type: string
          description: The pagination token to use to request the next page of results.
    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)