---
title: "GET /invitation"
method: GET
path: "/invitation"
---

# GET /invitation

`GET /invitation`

Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.

## Query parameters

- `maxResults` integer
- `nextToken` string
- `MaxResults` string
- `NextToken` string

## Response `200`

Success

- ListInvitationsResponse
  - `Invitations` Invitation[] — A list of invitation descriptions.
    - `AccountId` string — The ID of the account that the invitation was sent from.
    - `InvitationId` string — The ID of the invitation. This value is used to validate the inviter account to the member account.
    - `RelationshipStatus` string — The status of the relationship between the inviter and invitee accounts.
    - `InvitedAt` string — The timestamp when the invitation was sent.
  - `NextToken` string — The pagination parameter to be used on the next list operation to retrieve more items.

## Other responses

- `480` — BadRequestException
- `481` — InternalServerErrorException

---

[API](https://skmtc.net/aws/apis/guardduty.md) · [All operations](https://skmtc.net/aws/apis/guardduty/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/guardduty/versions/d35ef49b25a3/schema)
