Credential status (DCP)
The GET request to the /requests/{requestId} endpoint requests the status of a credential issuance process.
Retrieves the status of a credential request. This endpoint is used to check the processing status of a previously submitted credential request. The request ID is provided in the Location header of the 201 response from the /credentials endpoint. More information in the DCP specification.
iSHARE JWT Bearer token authentication
Unique identifier of the credential request
urn:uuid:550e8400-e29b-41d4-a716-446655440000Credential request status retrieved successfully
Unauthorized - Invalid or missing authentication
Credential request not found
Internal Server Error
GET /requests/{requestId} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{}Request model
The request contains a {requestId} parameter in the URL. This {requestId} corresponds to the ID identified by the location header returned after a Credential Issuance message.
Example request
GET /credentials/3cc1e9be-99d0-43fc-bb48-1f60837163bd HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKENResponse model
The model for the CredentialStatus is defined in: https://eclipse-dataspace-dcp.github.io/decentralized-claims-protocol/v1.0/resources/issuance/credential-request-message-schema.json.
@contextArray of Strings. Root level. (Required) Specifies a valid Json-Ld context. Must contain"https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"typeString. Root level. (Required) A string specifying the CredentialStatus type. Must contain"CredentialStatus"issuerPidString. Root level. (Required) A string corresponding to the issuance id on the Issuer side.holderPidString. Root level. (Required) A string corresponding to the request id on the Holder side.statusString. Root level. (Required) A string with a value ofRECEIVED,REJECTED, orISSUED.
Example response
{
"@context": [
"https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"
],
"type": "CredentialStatus",
"issuerPid": "issuerPid",
"holderPid": "holderPid",
"status": "RECEIVED"
}Last updated