Skip to main content

Accounts

GET 

https://nildb-demo.nillion.network/api/v1/accounts

info

You may use this test Bearer token we have created for development

eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpc3MiOiJkaWQ6bmlsOnRlc3RuZXQ6bmlsbGlvbjF4dnRuM2FhajQ4dGY3bm5zZW16MGQ2OGVwbjZlcHU0ZjRhNG5mYSIsImF1ZCI6ImRpZDpuaWw6dGVzdG5ldDpuaWxsaW9uMXd3c3Jqbmd4dnU5dGMzMzVsajlrM213d3JybDV3M3EyZDB1ZXR6In0.yOKg-wyJdyn9jK-KNtkjbi9PS0pF9wmgVmd7pIeNGhoTjhgZhzB62atbgzE45OGGYx0gUsw_i2k3K2AdFf_tuQ

Retrieve an organization's account details

Responses

The organization's account details
Schema
    data objectrequired
    _id stringrequired

    The accounts decentralised identifier (DID)

    Example: did:nil:testnet:nillion1eunreuzltxglx9fx493l2r8ef6rdlrau4dsdnc
    _type stringrequired

    Possible values: [admin, organization]

    _created date-timerequired
    _updated date-timerequired
    publicKey stringrequired
    name stringrequired
    schemas uuid[]required

    A list of schema ids that belong to this account

    queries uuid[]required

    A list of query ids that belong to this account

Authorization: http

name: jwttype: httpscheme: bearerbearerFormat: JWTdescription: A DID-JWT using the ES256K algorithm for authenticated endpoints.
JWT payload must include:
- iat: Issued at timestamp
- exp: Expiration timestamp (recommended)
- aud: Target node decentralised identifier (DID)
- iss: Client's decentralised identifier (DID)
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://nildb-demo.nillion.network/api/v1/accounts");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://nildb-demo.nillion.network
Auth
ResponseClear

Click the Send API Request button above and see the response here!

Feedback