---
title: "POST /members/import"
method: POST
path: "/members/import"
tags: ["Members", "Import Tokens", "OAuth2", "OAuth2 Tokens", "Discord Tokens", "Auths"]
---

# POST /members/import

`POST /members/import`

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

## Request body

- object
  - `serverId` integer — VaultCord server ID, you can find this from List Servers API endpoint
  - `userId` string — Discord snowflake ID for specific member/user.
  - `username` string — Discord username. It doesn't need to match the actual username, put any random text here if you don't know the username.
  - `accessToken` string — Discord OAuth2 access token from https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-access-token-response
  - `refreshToken` string — Discord OAuth2 refresh token from https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-access-token-response

## Response `200`

Successfully added member auth to database

- object
  - `success` boolean
  - `message` string

## Other responses

- `401` — API key invalid, please generate a new one from dash.vaultcord.com/developers

---

[API](https://skmtc.dev/vaultcord/apis/vaultcord-developers-api.md) · [All operations](https://skmtc.dev/vaultcord/apis/vaultcord-developers-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vaultcord/vaultcord-developers-api/revisions/7790bd606410/schema)
