Get organization invitations

GET /api/organization-invitations

Get organization invitations.

Responses

  • 200 application/json

    A list of organization invitations, each item also contains the organization roles to be assigned to the user when they accept the invitation.

    Hide response attributes Show response attributes object
  • Bad Request

  • Unauthorized

  • Forbidden

GET /api/organization-invitations
curl \
 -X GET https://[tenant_id].logto.app/api/organization-invitations \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "tenantId": "string",
    "id": "string",
    "inviterId": "string",
    "invitee": "string",
    "acceptedUserId": "string",
    "organizationId": "string",
    "status": "Pending",
    "createdAt": 42.0,
    "updatedAt": 42.0,
    "expiresAt": 42.0,
    "organizationRoles": [
      {
        "id": "string",
        "name": "string"
      }
    ]
  }
]