Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (34 loc) · 1.01 KB

File metadata and controls

43 lines (34 loc) · 1.01 KB
description
Report to the server that an invite token was used.

Report use Invite Token

{% hint style="info" %} No permissions are required. {% endhint %}

URL Requires Auth HTTP Method
/api/v1/useInviteToken yes POST

Payload

Argument Example Required Description
token iS7pza Required The id of the invite being used.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -H "Content-type: application/json" \
     http://localhost:3000/api/v1/useInviteToken \
     -d '{ "token": "iS7pza" }'

Example Result

{
    "room": {
        "rid": "QqsWiqNH2TnxtvZQq",
        "fname": "a-room-name",
        "name": "a-room-name",
        "t": "p"
    },
    "success": true
}