GET
/
api
/
v1
/
invitations
/
me
Get my invitations
curl --request GET \
  --url https://apix.us.amity.co/api/v1/invitations/me \
  --header 'Authorization: Bearer <token>'
{
  "invitations": [
    {
      "_id": "<string>",
      "networkId": "<string>",
      "type": "communityMemberInvite",
      "targetId": "<string>",
      "targetType": "community",
      "userId": "<string>",
      "status": "pending",
      "createdBy": "<string>",
      "respondedAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "invitationId": "<string>",
      "invitedUserId": "<string>",
      "invitedUserPublicId": "<string>",
      "invitedUserInternalId": "<string>",
      "inviterUserId": "<string>",
      "inviterUserPublicId": "<string>",
      "inviterUserInternalId": "<string>",
      "communityId": "<string>"
    }
  ],
  "users": [
    {
      "_id": "<string>",
      "path": "<string>",
      "userId": "<string>",
      "userInternalId": "<string>",
      "userPublicId": "<string>",
      "roles": [
        "<string>"
      ],
      "permissions": [
        "MUTE_CHANNEL"
      ],
      "displayName": "<string>",
      "profileHandle": "<string>",
      "description": "<string>",
      "avatarFileId": "<string>",
      "avatarCustomUrl": "<string>",
      "flagCount": 123,
      "hashFlag": {
        "bits": 123,
        "hashes": 123,
        "hash": [
          "<string>"
        ]
      },
      "metadata": {},
      "isGlobalBan": true,
      "isBrand": true,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "isDeleted": true
    }
  ],
  "paging": {
    "next": "<string>",
    "previous": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
enum<string>

Filter invitations by type (optional)

Available options:
communityMemberInvite
targetType
enum<string>

Filter by target entity type (optional)

Available options:
community
targetId
string

Filter by specific target entity ID (optional)

Maximum length: 900
options[after]
string

Pagination after cursor

Maximum length: 24
options[before]
string

Pagination before cursor

Maximum length: 24
options[limit]
integer
default:10

Number of results per page (positive integer)

Required range: x >= 1
options[token]
string

Pagination token

Maximum length: 1000

Response

200
application/json

List of invitations

The response is of type object.