Getting Started
Order
Copy Trades
Position Statistics
Auths
Login
Web3 authentication login endpoint to obtain verification code
POST
/
auth
/
web3
/
login
Copy
curl --request POST \
--url https://api.copin.io/auth/web3/login \
--header 'Content-Type: application/json' \
--data '{
"address": "<string>"
}'
Copy
{
"verifyCode": "<string>"
}
Request Body
The Ethereum wallet address of the user attempting to login
Request Example
Copy
curl --request POST \
--url "https://api.copin.io/auth/web3/login" \
--header 'Content-Type: application/json' \
--data '{"address":"0x1535484c1eec1d203fe1a53ea11a621a884ae067"}'
Response
A verification code that will be used in subsequent authentication steps
Response Example
Copy
{
"id": "654849d04857e1f744646cdd",
"username": "0x1535484c1eec1d203fe1a53ea11a621a884ae067",
"role": "guest",
"isBlocked": false,
"isActivated": true,
"blockNote": "",
"referralCode": "IEZ8LC",
"isSkippedReferral": true,
"copyTradeQuota": 3,
"plan": 0,
"createdAt": "2023-11-06T02:05:04.079Z",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IjB4MTk2YWUxNkE5Mzg3YTNEYzVEZTgxMTQ2N0EyRTM3RDdGZUJlRDMwNCIsInRpbWUiOjE3NDQ2MjQwNjQyMTgsImFjY2VzcyI6IllrN1NjY0FrQ0MxNzQ0NjI0MDY0MjE4IiwiaWF0IjoxNzQ0NjI0MDY0LCJleHAiOjE3NDUyMjg4NjR9.09g22yhvApz64IPw3mGY0qsLLZqzeGUrKhcC27saLtr",
"isAddedReferral": false
}
Copy
curl --request POST \
--url https://api.copin.io/auth/web3/login \
--header 'Content-Type: application/json' \
--data '{
"address": "<string>"
}'
Copy
{
"verifyCode": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.