v1

latestOpenAPI 3.0.02026-07-26441564.4 KB
Members
Import Tokens
OAuth2
OAuth2 Tokens
Discord Tokens
Auths

Import Member OAuth2 tokens. See here for easy-to-use program to convert Discord token into VaultCord auths https://www.youtube.com/watch?v=th1QQlxiyTs

post/members/import

Request body

serverIdinteger

VaultCord server ID, you can find this from List Servers API endpoint

userIdstring

Discord snowflake ID for specific member/user.

usernamestring

Discord username. It doesn't need to match the actual username, put any random text here if you don't know the username.

Example request

{
  "serverId": 62567,
  "userId": "720820224877789204",
  "username": "notexttospeech",
  "accessToken": "MTYxNjYwNTE3OTE0NTA5MzEy.6qrZcUqja7812RVdnEKjpzOL4CvHBFG",
  "refreshToken": "D43f5y0ahjqew82jZ4NViEr2YafMKhue"
}

Response

Successfully added member auth to database

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Imported member"
}