Get organization invitation

GET /api/organization-invitations/{id}

Get an organization invitation by ID.

Path parameters

  • id string Required

    The unique identifier of the organization invitation.

Responses

  • 200 application/json

    The organization invitation, also contains the organization roles to be assigned to the user when they accept the invitation.

    Hide response attributes Show response attributes object
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

GET /api/organization-invitations/{id}
curl \
 -X GET https://[tenant_id].logto.app/api/organization-invitations/{id}
Response examples (200)
{
  "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"
    }
  ]
}