Skip to Content

LookupInvitation

POST
/auth/v1/invitations/lookup

Request Body

required
application/json
{
  "$ref": "#/components/schemas/auth.v1.LookupInvitationRequest",
  "$ref-value": {
    "type": "object",
    "properties": {
      "token": {
        "type": "string",
        "title": "token"
      }
    },
    "title": "LookupInvitationRequest",
    "additionalProperties": false
  }
}

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/auth.v1.LookupInvitationResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "state": {
        "title": "state",
        "$ref": "#/components/schemas/auth.v1.InvitationState",
        "$ref-value": {
          "type": "string",
          "title": "InvitationState",
          "enum": [
            "INVITATION_STATE_UNSPECIFIED",
            "INVITATION_STATE_PENDING",
            "INVITATION_STATE_ACCEPTED",
            "INVITATION_STATE_DECLINED",
            "INVITATION_STATE_REVOKED",
            "INVITATION_STATE_EXPIRED"
          ]
        }
      },
      "org_name": {
        "type": "string",
        "title": "org_name"
      },
      "org_image_id": {
        "type": "string",
        "title": "org_image_id"
      },
      "role": {
        "title": "role",
        "$ref": "#/components/schemas/auth.v1.MembershipRole",
        "$ref-value": {
          "type": "string",
          "title": "MembershipRole",
          "enum": [
            "MEMBERSHIP_ROLE_UNSPECIFIED",
            "MEMBERSHIP_ROLE_OWNER",
            "MEMBERSHIP_ROLE_ADMIN",
            "MEMBERSHIP_ROLE_MEMBER"
          ]
        }
      },
      "inviter_display_name": {
        "type": "string",
        "title": "inviter_display_name"
      },
      "email": {
        "type": "string",
        "title": "email"
      },
      "expires_at": {
        "title": "expires_at",
        "$ref": "#/components/schemas/google.protobuf.Timestamp",
        "$ref-value": {
          "type": "string",
          "examples": [
            "2023-01-15T01:30:15.01Z",
            "2024-12-25T12:00:00Z"
          ],
          "format": "date-time",
          "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
        }
      }
    },
    "title": "LookupInvitationResponse",
    "additionalProperties": false,
    "description": "A closed invitation reports only its state."
  }
}
default
curl -X POST 'https://api.rixl.com/auth/v1/invitations/lookup'

Success

application/json

{
  "$ref": "#/components/schemas/auth.v1.LookupInvitationResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "state": {
        "title": "state",
        "$ref": "#/components/schemas/auth.v1.InvitationState",
        "$ref-value": {
          "type": "string",
          "title": "InvitationState",
          "enum": [
            "INVITATION_STATE_UNSPECIFIED",
            "INVITATION_STATE_PENDING",
            "INVITATION_STATE_ACCEPTED",
            "INVITATION_STATE_DECLINED",
            "INVITATION_STATE_REVOKED",
            "INVITATION_STATE_EXPIRED"
          ]
        }
      },
      "org_name": {
        "type": "string",
        "title": "org_name"
      },
      "org_image_id": {
        "type": "string",
        "title": "org_image_id"
      },
      "role": {
        "title": "role",
        "$ref": "#/components/schemas/auth.v1.MembershipRole",
        "$ref-value": {
          "type": "string",
          "title": "MembershipRole",
          "enum": [
            "MEMBERSHIP_ROLE_UNSPECIFIED",
            "MEMBERSHIP_ROLE_OWNER",
            "MEMBERSHIP_ROLE_ADMIN",
            "MEMBERSHIP_ROLE_MEMBER"
          ]
        }
      },
      "inviter_display_name": {
        "type": "string",
        "title": "inviter_display_name"
      },
      "email": {
        "type": "string",
        "title": "email"
      },
      "expires_at": {
        "title": "expires_at",
        "$ref": "#/components/schemas/google.protobuf.Timestamp",
        "$ref-value": {
          "type": "string",
          "examples": [
            "2023-01-15T01:30:15.01Z",
            "2024-12-25T12:00:00Z"
          ],
          "format": "date-time",
          "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
        }
      }
    },
    "title": "LookupInvitationResponse",
    "additionalProperties": false,
    "description": "A closed invitation reports only its state."
  }
}