Create Network Users
POST /users
Create a network user.
Endpoint URL
https://api.mixin.one/users
Payload
{
// Ed25519 Public Key in Base64
"session_secret": 'Ed25519 Public Key in Base64'
// display name
"full_name": 'A name'
}
Example request
curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/users -data '{"full_name": "Bot User","session_secret": SECRET}'
Response
{
"data":{
"user_id": "06aed1e3-bd77-4a59-991a-5bb5ae6fbb09", // User Id
"session_id": "a34c07a9-755d-4b54-94c5-e45e9a2dd43e", // Session Id
"pin_token": "", // PIN
"full_name": "Bot User", // Nickname
"biography": "", // Brief Intro
"avatar_url": "", // Avatar
"created_at": "2018-05-03T06:03:56.867971412Z", // Creation Timestamp
}
}