Admin / Entities

This API suite is focused on managing identity entities within a system, allowing for their creation, retrieval, listing, and deletion. The entities are associated with cryptocurrency wallets or blockchain identities. All those APIs require an Admin authentication.

Get the Admin status

GET /api/v1/admin

Use this API to confirm that the admin access is granted, and to get the host and agent locations.

Headers

Name
Value

Content-Type

application/json

Authorization

x-admin-api-key = <admin_token>

Body

Response

{
    "data": {
        "isAdmin": true,
        "host": "https://tom-g-jews-graduates.trycloudflare.com/",
        "agent": "https://tom-g-jews-graduates.trycloudflare.com/cloud-agent/"
    }
}

Retrieves a list of identity entities

GET /api/v1/admin/entities

Retrieves list of entities created by Admin

Headers

Name
Value

Content-Type

application/json

Authorization

x-admin-api-key = <admin_token>

Body

Name
Type
Description

name

string

Name of the user

age

number

Age of the user

Response

Retrieves information about a specific identity entity

GET /api/v1/admin/entity/{entity}

Retrieves a specific entity by id

Headers

Name
Value

Content-Type

application/json

Authorization

x-admin-api-key = <admin_token>

Body

Response

Create a new identity entity

POST /api/v1/admin/entity

Will create Entity, Wallet, Auth key, and Auth DID) ; note: a caller role will create a new wallet whereas any other role expects an id_wallet passed in params

Headers

Name
Value

Content-Type

application/json

Authorization

x-admin-api-key = <admin_token>

Body

Name
Type
Description

name

string

Name for this wallet & entity

role

string

A role for this entity (caller, worker, provider, admin)

mnemonic

string

A seed phrase (optional ; if not provided, the API will generate a random one)

id_wallet

string

id of the existing wallet (then we do not use mnemonic)

Response

Delete an existing entity

DELETE /api/v1/admin/entity/{id_entity}

Pass the correct id_entity to delete the corresponding entity

Headers

Name
Value

Content-Type

application/json

Authorization

x-admin-api-key = <admin_token>

Body

Response

Last updated