Endpoints
User Endpoints
Section titled “User Endpoints”If any errors occur a logMessage key in the data container will contain the error message
GET /api/get/id/<username>
Section titled “GET /api/get/id/<username>”{ "type": "success", "data": { "user_id": "<id>" }}GET /api/get/<id>
Section titled “GET /api/get/<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 }}POST /api/change/<id>
Section titled “POST /api/change/<id>”REQ
{ [ "username" | "display" | "avatar" | "about" | "status" ]: [ "<username>" | "<display>" | "<avatar>" | "<about>" | "<status>" ], "private_key_hash": "<sha256 private key hash>"}RES
{ "type": "success"}POST /api/change/iota-id/<id>
Section titled “POST /api/change/iota-id/<id>”REQ
{ "iota_id": "<id>", "reset_token": "<base64 random bytes>", "new_token": "<base64 random bytes>"}RES
{ "type": "success"}POST /api/change/keys/<id>
Section titled “POST /api/change/keys/<id>”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"}Iota Endpoints
Section titled “Iota Endpoints”GET /api/register/init
Section titled “GET /api/register/init”The user creation process timeouts after 1 hour.
{ "type": "success", "data": { "user_id": "<id>" }}POST /api/register/complete
Section titled “POST /api/register/complete”REQ
{ "id": int, "username": "", "public_key": "", "private_key_hash": "", "username": "", "iota_id": "", "reset_token": ""}RES
{ "type": "success"}POST /api/delete/<id>
Section titled “POST /api/delete/<id>”REQ
{ "reset_token": ""}RES
{ "type": "success"}Omikron Endpoints
Section titled “Omikron Endpoints”GET /api/get/private-key-hash/<id>
Section titled “GET /api/get/private-key-hash/<id>”Header: Authorization <omikron id>
Header: PrivateKeyHash <sha256 private key hash>
{ "type": "success", "data": { "matches": boolean }}GET /api/get/iota-id/<id>
Section titled “GET /api/get/iota-id/<id>”Header: Authorization <omikron id>
{ "type": "success", "data": { "iota_id": "<id>" }}