Admin / Entities
Last updated
Last updated
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
/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 |
---|---|
Body
Response
GET
/api/v1/admin/entities
Retrieves list of entities created by Admin
Headers
Body
Response
GET
/api/v1/admin/entity/{entity}
Retrieves a specific entity by id
Headers
Body
Response
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
Body
Response
DELETE
/api/v1/admin/entity/{id_entity}
Pass the correct id_entity to delete the corresponding entity
Headers
Body
Response
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Name | Value |
---|---|
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Name | Value |
---|---|
Content-Type
application/json
Authorization
x-admin-api-key = <admin_token>
Content-Type
application/json
Authorization
x-admin-api-key = <admin_token>
name
string
Name of the user
age
number
Age of the user
Content-Type
application/json
Authorization
x-admin-api-key = <admin_token>
Content-Type
application/json
Authorization
x-admin-api-key = <admin_token>
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)
Content-Type
application/json
Authorization
x-admin-api-key = <admin_token>