Which service this is
GET
/api/v1/self
const url = 'https://example.com/api/v1/self';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/selfName, DID, version and environment of the authority. Public: bl uses it to recognise an authority.
Authorizations
Section titled “Authorizations”- None
Responses
Section titled “Responses”OK.
Media typeapplication/json
GET /api/v1/self: documents the JSON built in [self_info].
object
name
required
string
did
required
string
version
required
The version of the software.
string
dataspace
required
The id of the dataspace this authority serves.
string
environment
required
production, acceptance, test, development or tck (decisions #39).
string
relaxations
required
Unsafe settings that are active in this environment.
Array<object>
object
simulation
required
Links of a simulation, if this is one.
Array<object>
object
simulation_tools
required
Array<object>
object
witness
The did:key of the authority’s witness key (did:webvh).
string | null
Example generated
{ "name": "example", "did": "example", "version": "example", "dataspace": "example", "environment": "example", "relaxations": [ {} ], "simulation": [ {} ], "simulation_tools": [ {} ], "witness": "example"}