younifyd
Menu

Check Invite Eligibility

Check invite eligibility

GET/v2025-07-11/access/{resourceType}/{resourceId}/invites/token/{inviteToken}/eligibility

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Check Invite Eligibility action (under Access).
  3. Fill in the fields below, then reference the result from later steps as {{checkInviteEligibility.response.data}}.

Request

Path parameters

resourceTypestringrequired

The resource type to scope the access requests to.

One oforganizationprojectmedia-librarycanvasdashboardviewknowledge-base

resourceIdstringrequired

The resource ID to scope the access request to. Must be a valid ID for the resource type.

inviteTokenstringrequired

The public token for the invite. This token is shared with the invitee.

Query parameters

returnQuerystring

The caller's own query string, URL-encoded as a single value. It is carried through to the login page so the user returns to the invite after authenticating.

Response

Returns 200 with an object. Read it in later steps with {{checkInviteEligibility.response.data.<field>}}.

eligibleboolean

Whether the current session passes the invite entry gate. `true` means the accept action may be offered. Note this reflects the SAML entry gate only: an eligible session can still be rejected at accept time for other reasons (e.g. email-ownership validation).

reasonstring

Present only when `eligible` is `false`, explaining why. - `resource-not-available`: the invited project/organization is not available. - `saml-enforced`: the invited organization enforces SAML and the session was not authenticated against that organization's identity provider.

One ofresource-not-availablesaml-enforced

redirectUrlstring

When not eligible with reason `saml-enforced`, the URL to send the user to so they can log in through the organization's identity provider. May be absent if the login URL could not be resolved.

json
{
  "eligible": false,
  "reason": "resource-not-available",
  "redirectUrl": "string"
}

Need more? See the Sanity guide for connection setup and behaviour shared by every action.