🔐
w3auth
  • Welcome!
  • Installing
  • CORS
  • Authentication Flow
  • Integration Example
  • KYC
  • External Backend
  • API Reference
    • Active Chains
    • Nonce
    • Verify nonce
    • Link Wallet
    • Unlink Wallet
    • Profile & Custom fields
    • Logout
  • Package
    • React JS
  • Connect API
    • Enable API
    • User details
    • Allowlist Address
    • Blocklist Address
    • Get Settings
    • NFT Gating
    • Token Gating
Powered by GitBook
On this page
  1. API Reference

Profile & Custom fields

Using profile API you can set basic user profile fields and custom profile fields.

POST /api/user/profile

Headers

Name
Type
Description

authorization*

String

For the profile to be updated, you need to attach the JWT token.

Request Body

Name
Type
Description

profile*

Object

{

name: "User name",

email: "user email address",

discord: "discord username",

telegram: "telegram username",

twitter: "twitter username",

custom: [

{ name: "field_name", value: "value }

]

}

Whenever the custom field is passed. The name you pass must match the one you set on the admin console.

{
   "success": "Profile updated"
}
{
    "error": "Invalid jwt token"
}
PreviousUnlink WalletNextLogout

Last updated 2 years ago