cURL
curl --request POST \ --url https://lab.trustos.telefonicatech.com/id/v2/users \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "company": "Company Name", "password": "password", "credits": 10000, "networks": [ 10004 ] } '
{ "statusCode": 201, "message": "User created", "data": { "username": "did:user:<id>", "address": "0x1234" } }
Creates a new user.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Data needed for the creation of a user inside TrustOS.
"[email protected]"
"Company Name"
"password"
10000
Successful user creation.
Request status code.
201
Message returned by the request.
"User created"
Data returned by the request.
Show child attributes
Was this page helpful?