Skip to content
Navigation

checkOrgInvite

Read what an invite's link is for, signed in or not: the org, who sent it, the email and role, and whether an account has the email. A used, revoked, or expired link is not found.

POST
/orgs/{org_id}/invite-checks

Path parameters

  • org_id
    string
    required
    pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$

Request body JSON required

  • secret
    string
    required
    minLength: 1

Returns

200

OrgInvitePreview

JSON
  • email
    string
    required
    pattern: ^[^\s@]+@[^\s@]+\.[^\s@]+$
  • owner
    boolean
    required
  • invited_by_name
    string
    required
    minLength: 1
  • expires_at
    string
    required
    minLength: 1
  • org_id
    string
    required
    pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • org_name
    string
    required
    minLength: 1
  • org_slug
    string
    required
    maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
  • has_account
    boolean
    required

400

InvalidRequest | RequestBodyTooDeep
JSON

One of the following:

  • InvalidRequestEncoded
    • _tag
      InvalidRequest
      required
    • part
      path
      or
      query
      or
      headers
      or
      body
      required
    • issues
      array of
      object
      required
      • path
        array of
        required

        One of the following:

        • string
        • integer
      • message
        string
        required
  • RequestBodyTooDeepEncoded
    • _tag
      RequestBodyTooDeep
      required
    • max_depth
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991

404

InviteNotFound
JSON
  • _tag
    InviteNotFound
    required

413

RequestBodyTooLarge
JSON
  • _tag
    RequestBodyTooLarge
    required
  • max_bytes
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

OrgFailure | ControlPlaneFailure
JSON

One of the following:

  • OrgFailureEncoded
    • _tag
      OrgFailure
      required
    • reason
      string
      required
  • ControlPlaneFailureEncoded
    • _tag
      ControlPlaneFailure
      required
    • reason
      string
      required

503

RateLimitUnavailable
JSON
  • _tag
    RateLimitUnavailable
    required

Type to search…

↑↓ navigate↵ selectEsc close