Ga naar inhoud

The participant's identity

GET
/api/v1/identity
curl --request GET \
--url https://example.com/api/v1/identity \
--cookie bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3E

The DID, the DID document and the keys with what each is for.

OK.

Media typeapplication/json

GET /api/v1/identity: documents the JSON built in [identity].

object
did
required
string
did_document
required
object
keys
required
Array<object>
object
kid
required
string
alg
required
string
purpose
required

What the key signs (in Dutch).

string

Example

{
"keys": [
{
"alg": "ES256"
}
]
}

No valid session, DPoP-bound token or API key.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}