Amazon GuardDuty Invitation API

The Invitation API from Amazon GuardDuty — 4 operation(s) for invitation.

GitHub OpenAPI

Operations 4

POST /invitation/decline Decline Invitations #
POST /invitation/delete Delete Invitations #
GET /invitation/count Get Invitations Count #
GET /invitation List Invitations #

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-guardduty:amazon-guardduty-invitation-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-guardduty-invitation-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon GuardDuty Invitation API
  version: '2017-11-28'
  description: Generated from AWS's published Smithy model for Amazon GuardDuty. 4 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://guardduty.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /invitation/decline:
    post:
      operationId: DeclineInvitations
      summary: Decline Invitations
      description: Declines invitations sent to the current member account by Amazon Web Services accounts specified by their
        account IDs.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeclineInvitationsResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalServerErrorException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AccountIds:
                  type: array
                  items:
                    type: string
                  description: A list of account IDs of the Amazon Web Services accounts that sent invitations to the current
                    member account that you want to decline invitations from.
              required:
              - AccountIds
      tags:
      - Invitation
  /invitation/delete:
    post:
      operationId: DeleteInvitations
      summary: Delete Invitations
      description: Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their
        account IDs.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteInvitationsResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalServerErrorException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AccountIds:
                  type: array
                  items:
                    type: string
                  description: A list of account IDs of the Amazon Web Services accounts that sent invitations to the current
                    member account that you want to delete invitations from.
              required:
              - AccountIds
      tags:
      - Invitation
  /invitation/count:
    get:
      operationId: GetInvitationsCount
      summary: Get Invitations Count
      description: Returns the count of all GuardDuty membership invitations that were sent to the current member account
        except the currently accepted invitation.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetInvitationsCountResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalServerErrorException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorException'
      tags:
      - Invitation
  /invitation:
    get:
      operationId: ListInvitations
      summary: List Invitations
      description: Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInvitationsResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalServerErrorException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorException'
      parameters:
      - name: maxResults
        in: query
        schema:
          type: integer
        description: You can use this parameter to indicate the maximum number of items that you want in the response. The
          default value is 50. The maximum value is 50.
      - name: nextToken
        in: query
        schema:
          type: string
        description: You can use this parameter when paginating results. Set the value of this parameter to null on your first
          call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken
          from the previous response to continue listing data.
      tags:
      - Invitation
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: guardduty
  schemas:
    BadRequestException:
      type: object
      properties:
        Message:
          type: string
          description: The error message.
        Type:
          type: string
          description: The error type.
    DeclineInvitationsResponse:
      type: object
      properties:
        UnprocessedAccounts:
          type: array
          items:
            $ref: '#/components/schemas/UnprocessedAccount'
          description: A list of objects that contain the unprocessed account and a result string that explains why it was
            unprocessed.
      required:
      - UnprocessedAccounts
    DeleteInvitationsResponse:
      type: object
      properties:
        UnprocessedAccounts:
          type: array
          items:
            $ref: '#/components/schemas/UnprocessedAccount'
          description: A list of objects that contain the unprocessed account and a result string that explains why it was
            unprocessed.
      required:
      - UnprocessedAccounts
    GetInvitationsCountResponse:
      type: object
      properties:
        InvitationsCount:
          type: integer
          description: The number of received invitations.
    InternalServerErrorException:
      type: object
      properties:
        Message:
          type: string
          description: The error message.
        Type:
          type: string
          description: The error type.
    Invitation:
      type: object
      properties:
        AccountId:
          type: string
          description: The ID of the account that the invitation was sent from.
        InvitationId:
          type: string
          description: The ID of the invitation. This value is used to validate the inviter account to the member account.
        RelationshipStatus:
          type: string
          description: The status of the relationship between the inviter and invitee accounts.
        InvitedAt:
          type: string
          description: The timestamp when the invitation was sent.
    ListInvitationsResponse:
      type: object
      properties:
        Invitations:
          type: array
          items:
            $ref: '#/components/schemas/Invitation'
          description: A list of invitation descriptions.
        NextToken:
          type: string
          description: The pagination parameter to be used on the next list operation to retrieve more items.
    UnprocessedAccount:
      type: object
      properties:
        AccountId:
          type: string
          description: The Amazon Web Services account ID.
        Result:
          type: string
          description: A reason why the account hasn't been processed.
      required:
      - AccountId
      - Result
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/guardduty/service/2017-11-28/guardduty-2017-11-28.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)