Get An Entity By Id
To get an entity, we need to make the following HTTP request
GET
/api/v1/{entity-type}/id
Path Parameters
entity-type*
String
The type of entity to retrieve
id*
String
The ID of the entity to retrieve
Headers
authorization*
String
Set to Bearer {access-token}
if roles in schema is not anonymous. Else authorization can be empty
content-type*
String
Set to application/json
to retrieve in json. Other allowed values include application/vc+ld+json
, application/ld+json
, application/pdf
, image/svg+xml
, text/html
template-key
String
template-key
is an optional header, it can be used for pdf/html/svg
content type. It should be one of the keys mentioned in certificateTemplates in the schema config.
template
String
template
is an optional header where we can pass the URL of the external template directly in the API. To use this enable_external_templates
ENV needs to be enabled
viewTemplateId
String
File name of view templates configured
Important variables in the response body:
_osState/{field}
String
State of an attestable field. Can be DRAFT
(when it has not been sent for attestation), ATTESTATION_REQUESTED
(when sent for attestation), PUBLISHED
(when successfully attested) and REJECTED
(when rejected by the attestor)
_osOwner
String
User ID of the entity in Keycloak.
Last updated