Skip to content

Endpoints

If any errors occur a logMessage key in the data container will contain the error message

{
"type": "success",
"data": {
"user_id": "<id>"
}
}
{
"type": "success",
"data": {
"username": "<username>",
"display": "<display name>",
"avatar": "<base64 avatar>",
"about": "<base64 about>",
"status": "<status>",
"public_key": "<base64 public key>",
"sub_level": int,
"sub_end": int
}
}

REQ

{
[ "username" | "display" | "avatar" | "about" | "status" ]: [ "<username>" | "<display>" | "<avatar>" | "<about>" | "<status>" ],
"private_key_hash": "<sha256 private key hash>"
}

RES

{
"type": "success"
}

REQ

{
"iota_id": "<id>",
"reset_token": "<base64 random bytes>",
"new_token": "<base64 random bytes>"
}

RES

{
"type": "success"
}

REQ

{
"private_key_hash": "<sha256 private key hash>",
"public_key": "<base64 public key>",
"reset_token": "<base64 random bytes>",
"new_token": "<base64 random bytes>"
}

RES

{
"type": "success"
}

The user creation process timeouts after 1 hour.

{
"type": "success",
"data": {
"user_id": "<id>"
}
}

REQ

{
"id": int,
"username": "",
"public_key": "",
"private_key_hash": "",
"username": "",
"iota_id": "",
"reset_token": ""
}

RES

{
"type": "success"
}

REQ

{
"reset_token": ""
}

RES

{
"type": "success"
}

Header: Authorization <omikron id> Header: PrivateKeyHash <sha256 private key hash>

{
"type": "success",
"data": {
"matches": boolean
}
}

Header: Authorization <omikron id>

{
"type": "success",
"data": {
"iota_id": "<id>"
}
}