- Docs
- Api%2Freference%2Fwallets%2FLoginWallet
Login
Authenticate a user with their credentials and return access tokens. This endpoint accepts email/phone and password combinations to verify user identity. Upon successful authentication, the system returns both access and refresh tokens for secure API access.
Request Body
application/json
Login payload
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://api-testnet.dual.network/auth/login" \ -H "Content-Type: application/json" \ -d '{}'{
"wallet": {
"id": "string",
"nickname": "string",
"email": "string",
"phone_number": "string",
"avatar": {
"id": "string",
"name": "string",
"type": "string",
"url": "string",
"hash": "string",
"is_public": true,
"when_created": "2019-08-24T14:15:22Z"
},
"language": "en",
"fqdn": "string",
"activated": true,
"disabled": true,
"account": {
"address": "string",
"public_key": "string",
"type": "ED25519"
},
"onboarding": true,
"when_created": "2019-08-24T14:15:22Z",
"when_modified": "2019-08-24T14:15:22Z"
},
"access_token": "string",
"refresh_token": "string"
}{
"code": 0,
"message": "string",
"details": {}
}{
"code": 0,
"message": "string",
"details": {}
}