Skip to Content
Accounts

Preview an invite

What an invite link is for, before signing in. No session; the token in the body is the credential (never in the URL, so it stays out of access logs). Rate-limited per IP. A pending invite shows the Network's name, who sent it, the role and the expiry, and nothing more (not the invited address, Members or Devices). An expired, used or revoked invite shows only its status. An unknown token is 404.

POST
/invites/preview

What an invite link is for, before signing in. No session; the token in the body is the credential (never in the URL, so it stays out of access logs). Rate-limited per IP.

A pending invite shows the Network's name, who sent it, the role and the expiry, and nothing more (not the invited address, Members or Devices). An expired, used or revoked invite shows only its status. An unknown token is 404.

Request Body

application/json
  1. body
token*string

Response Body

OK

application/json
  1. response
status*string
Value in"pending""expired""used""revoked"
network?string

the Network's name; only while pending

role?Role
Value in"owner""admin""member"
expires_at?string
Formatdate-time
invited_by?

who sent it; absent when no longer known (the Member left, or an Access token without a creator)

Example Request
curl -X POST 'https://tiltas.openpanel.sh/api/v1/invites/preview' \  -H 'Content-Type: application/json' \  -d '{  "token": "string"}'
Example Response
{  "status": "pending",  "network": "string",  "role": "owner",  "expires_at": "2019-08-24T14:15:22Z",  "invited_by": {    "name": "string",    "email": "string"  }}