Setup

Step 1:

You will receive the following data for your project

1. Project ID (UUID string)
2. project_secret (string)
3. jwt public key (for varifying the jwt token, optional)

Step 2:

Use the following private API to update your account info

Update account info

POST https://api.well.eco/oauth/account/{project_id}

An API to update your account info

Headers

Name
Value

Content-Type

application/json

Body(JSON)

Name
description

secret

The secret provided by us (required)

host

The host that match your website, you need to set this for your account to work probably

privacyPolicyURL

Your privacy policy page URL (optional)

termsOfServiceURL

Your terms of service page URL (optional)

logoURL

Your logo url, prefer linking to a 50x50 jpg image, please set this as it will affect how your project looks on the WECO website

infoURL

Link to your website, will display on WECO website

type

Type of your project, will display on WECO website

chain

Chain of your project, will display on WECO website

tgResultCallbackURL

Required if you are using the oauth in a telegram app

tgBotID

Required if you are using the oauth in a telegram app

tgBotMiniAppURL

Required if you are using the oauth in a telegram app, the url to open your telegram mini app

Example

{
    "secret": "your_project_secret",
    "host": "test.com",
    "privacyPolicyURL": "https://test.com/privacy.html",
    "termsOfServiceURL": "https://test.com/tos.html",
    "logoURL": "https://test.com/logo.jpg",
    "infoURL": "https://test.com",
    "type": "AI",
    "chain": "ETH",
    "tgResultCallbackURL": "https://api.test.com/tg_callback",
    "tgBotID": "test",
    "tgBotMiniAppURL": "https://t.me/test/page",
}

Response

{
    "host": "test.com",
    "privacyPolicyURL": "https://test.com/privacy.html",
    "termsOfServiceURL": "https://test.com/tos.html",
    "logoURL": "https://test.com/logo.jpg",
    "infoURL": "https://test.com",
    "tgResultCallbackURL": "https://api.test.com/tg_callback",
    "tgBotID": "test",
    "tgBotMiniAppURL": "https://t.me/test/page",
}

Last updated