Account related apis

post
Signup

https://api.mycontract.co:3001/v1/:adminId/client/signup
This endpoint allows you to signup as client.
Request
Response
Path Parameters
adminId
required
string
Admin's unique id
Form Data Parameters
email
required
string
user's email
password
required
string
user's password
firstName
required
string
user's first name
lastName
required
string
user's last name
200: OK
{
"status": true,
"message": "signup successful"
}
409: Conflict
{
"status": false,
"message": "email is already taken"
}

post
Login

https://api.mycontract.co:3001/v1/client/login
This endpoint allows you to login as client.
Request
Response
Form Data Parameters
email
optional
string
User's email address
password
optional
string
User's password
200: OK
{
"status": true,
"token": // JWT token
}
302: Found
{
"token": false,
"message": "Hello! Active your Account! Check Your email for Activation Link."
}

get
Project list

https://api.mycontract.co:3001/v1/client/projects
Request
Response
Headers
Authorization
optional
string
JWT token
200: OK
{
"status": true,
"data": []
}
400: Bad Request
{
status: false,
message: "error occurred"
}

get

https://api.mycontract.co:3001/v1/client/details
Request
Response
Headers
Authorization
optional
string
JWT token
200: OK
{
"status": true,
"data": {
"name": bob parker,
"email": "bob@xyz.com",
"verification": "notInitiated",
"accountStatus": true,
"package1": 0,
"package2": 0,
"isd_code": +1,
"mobile": 9876543210,
"ProjectConfiguration": [],
"XDCEBalance": 0,
"ETHBalance": 0
}
}
400: Bad Request
{
status: false,
message: "error occurred"
}

get

https://api.mycontract.co:3001/v1/client/password/reset
Request
Response
Form Data Parameters
email
optional
string
user email address
200: OK
{
"error": "email sent",
"status": true
}