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
  • Bad Request

  • Unauthorized

  • Forbidden

  • Not Found

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