Credentials
Endpoints for issuing and retrieving credentials
This endpoint issues JSON-LD credentials.
The timeout for the credential issuance (seconds).
30The invitation ID.
1The contact ID.
The ID of status list definition to enable revocation
The proofType for the credential issuance
Ed25519Signature2020The rule for the credential issuance.
stringJSON-LD credential issued successfully
Bad Request
Unauthorized.
Unprocessable Entity.
Internal Server Error
POST /api/v1/credentials/json-ld HTTP/1.1
Host: proven-4-2-test.proven.indicio.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1251
{
"invitation_id": 1,
"contact_id": "",
"revocation_def_id": "",
"credential": {
"@context": [
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
"https://www.w3.org/ns/credentials/status/v1"
],
"issuanceDate": "2024-11-29T21:07:11Z",
"validFrom": "2024-11-29T11:34:20Z",
"awardedDate": "2024-11-29T21:07:11Z",
"expirationDate": "2030-11-29T11:34:20Z",
"validUntil": "2030-11-29T11:34:20Z",
"type": [
"OpenBadgeCredential"
],
"description": "Awesome Credential Description",
"name": "New Awesome JSON-LD Credential",
"issuer": {
"id": "did:indy:<namespace>:5uF3EGLPkBccqMhEfX2JS8",
"type": [
"Profile"
],
"name": "Awesome Issuer Name",
"description": "An awesome Issuer who Issues awesome credentials.",
"url": "https://www.awesome-issuer-url.com",
"email": "issuer-contact@example.org",
"image": {
"id": "https://www.awesome-issuer-url.com/images/issuer-logo.png",
"type": "Image",
"caption": "Awesome Issuer Logo"
}
},
"credentialSubject": {
"type": [
"AchievementSubject"
],
"achievement": {
"id": "https://example.org/achievements/degree",
"name": "Your name",
"description": "Your description",
"criteria": {
"type": "Criteria",
"narrative": "Your narrative"
},
"image": {
"id": "https://example.org/achievements/image.png",
"type": "Image"
},
"type": [
"Achievement"
]
}
}
},
"proofType": "Ed25519Signature2020",
"rule": "string"
}{
"request_id": 1,
"connection_id": "1c50d6e1-5a43-48d8-837e-be3cbc815469",
"contact_id": "",
"invitation_id": 1,
"credential": {
"name": "New Awesome JSON-LD Credential",
"type": [
"OpenBadgeCredential"
],
"issuer": {
"id": "did:indy:<namespace>:5uF3EGLPkBccqMhEfX2JS8",
"url": "https://www.awesome-issuer-url.com",
"name": "Awesome Issuer Name",
"type": [
"Profile"
],
"email": "issuer-contact@example.org",
"image": {
"id": "https://www.awesome-issuer-url.com/images/issuer-logo.png",
"type": "Image",
"caption": "Awesome Issuer Logo"
},
"description": "An awesome Issuer who Issues awesome credentials."
},
"@context": [
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
"https://www.w3.org/ns/credentials/status/v1"
],
"validFrom": "2024-11-29T11:34:20Z",
"validUntil": "2030-11-29T11:34:20Z",
"awardedDate": "2024-11-29T21:07:11Z",
"description": "Awesome Credential Description",
"issuanceDate": "2024-11-29T21:07:11Z",
"expirationDate": "2030-11-29T11:34:20Z",
"credentialSubject": {
"type": [
"AchievementSubject"
],
"achievement": {
"id": "https://example.org/achievements/degree",
"name": "Your name",
"type": [
"Achievement"
],
"image": {
"id": "https://example.org/achievements/image.png",
"type": "Image"
},
"criteria": {
"type": "Criteria",
"narrative": "Your narrative"
},
"description": "Your description"
}
},
"rule": "string",
"wallet_id": "19fa3524-2859-43e2-ac48-2136c9d8a199",
"meta_data": null,
"state": "offer-sent",
"complete": false,
"result": false,
"result_string": "Pending",
"credential_exchange_id": [
"885b1487-479a-4071-8585-12580b1b0db1"
],
"error": "",
"proof_type": "Ed25519Signature2020",
"created_at": "2025-07-09T19:28:02.633Z",
"updated_at": "2025-07-09T19:28:04.774Z",
"credential_status": {
"id": "https://example.com/jsonld-status-list/tenants/19fa3524-2859-43e2-ac48-2136c9d8a199/w3c/status/0#81407",
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": 81407,
"statusListCredential": "https://example.com/jsonld-status-list/tenants/19fa3524-2859-43e2-ac48-2136c9d8a199/w3c/status/0"
}
}
}This endpoint retrieves a JSON-LD credential by its ID using the provided API key.
The ID of the credential.
1JSON-LD credential retrieved successfully
The retrieved JSON-LD credential record.
Bad Request
Unauthorized.
JSON-LD credential record not found
Internal Server Error
GET /api/v1/credentials/json-ld/{request_id} HTTP/1.1
Host: proven-4-2-test.proven.indicio.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"request_id": 1,
"connection_id": "1c50d6e1-5a43-48d8-837e-be3cbc815469",
"contact_id": "",
"invitation_id": 1,
"credential": {
"name": "New Awesome JSON-LD Credential",
"type": [
"OpenBadgeCredential"
],
"issuer": {
"id": "did:indy:<namespace>:5uF3EGLPkBccqMhEfX2JS8",
"url": "https://www.awesome-issuer-url.com",
"name": "Awesome Issuer Name",
"type": [
"Profile"
],
"email": "issuer-contact@example.org",
"image": {
"id": "https://www.awesome-issuer-url.com/images/issuer-logo.png",
"type": "Image",
"caption": "Awesome Issuer Logo"
},
"description": "An awesome Issuer who Issues awesome credentials."
},
"@context": [
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
"https://www.w3.org/ns/credentials/status/v1"
],
"validFrom": "2024-11-29T11:34:20Z",
"validUntil": "2030-11-29T11:34:20Z",
"awardedDate": "2024-11-29T21:07:11Z",
"description": "Awesome Credential Description",
"issuanceDate": "2024-11-29T21:07:11Z",
"expirationDate": "2030-11-29T11:34:20Z",
"credentialSubject": {
"type": [
"AchievementSubject"
],
"achievement": {
"id": "https://example.org/achievements/degree",
"name": "Your name",
"type": [
"Achievement"
],
"image": {
"id": "https://example.org/achievements/image.png",
"type": "Image"
},
"criteria": {
"type": "Criteria",
"narrative": "Your narrative"
},
"description": "Your description"
}
}
},
"rule": "string",
"wallet_id": "19fa3524-2859-43e2-ac48-2136c9d8a199",
"meta_data": null,
"state": "offer-sent",
"complete": false,
"result": false,
"result_string": "Pending",
"credential_exchange_id": [
"885b1487-479a-4071-8585-12580b1b0db1"
],
"error": "",
"proof_type": "Ed25519Signature2020",
"created_at": "2025-07-09T19:28:02.633Z",
"updated_at": "2025-07-09T19:28:04.774Z",
"credential_status": {
"id": "https://example.com/jsonld-status-list/tenants/19fa3524-2859-43e2-ac48-2136c9d8a199/w3c/status/0#81407",
"type": "BitstringStatusListEntry",
"statusPurpose": "revocation",
"statusListIndex": 81407,
"statusListCredential": "https://example.com/jsonld-status-list/tenants/19fa3524-2859-43e2-ac48-2136c9d8a199/w3c/status/0"
}
}This endpoint retrieves all credentials associated with the provided API.
The field to sort by (default updated_at).
The direction to sort (ASC or DESC, default DESC).
The number of credentials per page (default 20).
The current page number (default 1).
The total number of items.
If provided, returns only credentials with this state.
If provided, returns only credentials for this contact_id.
A paginated list of credentials
Unauthorized.
Internal Server Error
GET /api/v1/credentials HTTP/1.1
Host: proven-4-2-test.proven.indicio.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"params": {
"sort": [
[
"created_at",
"DESC"
]
],
"pageSize": 20,
"currentPage": 1,
"pageCount": 1,
"itemCount": 1,
"stateFilter": null,
"contactIdFilter": null
},
"rows": [
{
"credential_exchange_id": "02189932-52ac-4f9d-bf84-1fcfb7c67fa1",
"wallet_id": "6b4ae41c-9c8a-49fd-9efa-fa0436d40b5c",
"credential_id": null,
"revocation_id": null,
"connection_id": "0ecc0b3c-4d15-4660-b8da-15d0feeded59",
"state": "offer-sent",
"thread_id": "73d4b64f-f570-4970-9603-3381ed9cd440",
"parent_thread_id": null,
"schema_id": "E8BS9Fcg3cu2m9Dwaa3hVG:2:Email:1.0",
"credential_definition_id": "Efgh86CGr29yoQKXHQraHD:3:CL:151:default",
"revoc_reg_id": null,
"revoked": null,
"created_at": "2025-06-26T22:01:05.543Z",
"updated_at": "2025-06-26T22:01:05.543Z",
"attributes": null
}
],
"count": 1
}This endpoint allows you to add a new credential request.
The timeout for the credential issuance (seconds).
30The ID of the invitation.
The ID of the contact.
The ID of the schema.
The rule for the credential issuance.
AnonCred credential issuance record was created
Bad Request
Unauthorized.
Unprocessable Entity.
Internal Server Error
POST /api/v1/credentials HTTP/1.1
Host: proven-4-2-test.proven.indicio.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 285
{
"invitation_id": 1,
"contact_id": "",
"schema_id": "E8BS9Fcg3cu2m9Dwaa3hVG:2:Email:1.0",
"attributes": [
{
"name": "local_part",
"value": "timmy"
},
{
"name": "domain",
"value": "example.com"
},
{
"name": "address",
"value": "timmy@example.com"
},
{
"name": "verified_at",
"value": "1670296277"
}
],
"rule": "no rule"
}{
"request_id": 1,
"connection_id": "bd8d1663-38ac-46c8-9314-7d26bf731c88",
"contact_id": "",
"invitation_id": 1,
"schema_id": "E8BS9Fcg3cu2m9Dwaa3hVG:2:Email:1.0",
"attributes": [
{
"name": "local_part",
"value": "timmy"
},
{
"name": "domain",
"value": "example.com"
},
{
"name": "address",
"value": "timmy@example.com"
},
{
"name": "verified_at",
"value": "1670296277"
}
],
"wallet_id": "70b6a0d2-628a-4de6-af96-144100f74878",
"rule": "no rule",
"meta_data": null,
"state": "offer-sent",
"complete": false,
"result": false,
"result_string": "Pending",
"credential_exchange_id": [
"4e49277d-aa3f-4647-9bff-91d9dca8b0c8"
],
"error": "",
"created_at": "2025-07-08T21:14:59.117Z",
"updated_at": "2025-07-08T21:15:03.835Z"
}This endpoint retrieves a specific credential by its credential exchange ID.
The credential exchange ID.
1A credential object
Unauthorized.
Credential record not found
Internal Server Error
GET /api/v1/credentials/{credential_exchange_id} HTTP/1.1
Host: proven-4-2-test.proven.indicio.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"credential_exchange_id": "02189932-52ac-4f9d-bf84-1fcfb7c67fa1",
"wallet_id": "6b4ae41c-9c8a-49fd-9efa-fa0436d40b5c",
"credential_id": null,
"revocation_id": null,
"connection_id": "0ecc0b3c-4d15-4660-b8da-15d0feeded59",
"state": "offer-sent",
"thread_id": "73d4b64f-f570-4970-9603-3381ed9cd440",
"parent_thread_id": null,
"schema_id": "E8BS9Fcg3cu2m9Dwaa3hVG:2:Email:1.0",
"credential_definition_id": "Efgh86CGr29yoQKXHQraHD:3:CL:151:default",
"revoc_reg_id": null,
"revoked": null,
"created_at": "2025-06-26T22:01:05.543Z",
"updated_at": "2025-06-26T22:01:05.543Z",
"attributes": null
}This endpoint manually removes PII from a credential record.
The credential exchange ID.
02189932-52ac-4f9d-bf84-1fcfb7c67fa1PII removed successfully
Credential PII removedUnauthorized.
Credential record not found
Internal Server Error
POST /api/v1/credentials/{credential_exchange_id}/pii HTTP/1.1
Host: proven-4-2-test.proven.indicio.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"message": "Credential PII removed"
}This endpoint retrieves an AnonCred credential record by its ID using the provided API key.
The ID of the credential record.
1Credential record retrieved successfully
The retrieved AnonCred credential record.
Unauthorized.
AnonCred credential record not found
Internal Server Error
GET /api/v1/credential-records/{request_id} HTTP/1.1
Host: proven-4-2-test.proven.indicio.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"record": {
"request_id": 1,
"connection_id": "0ecc0b3c-4d15-4660-b8da-15d0feeded59",
"contact_id": "8dba10d6-00d5-4f3a-ac8f-834211c9cbb9",
"invitation_id": 1,
"schema_id": "E8BS9Fcg3cu2m9Dwaa3hVG:2:Email:1.0",
"attributes": [
{
"name": "local_part",
"value": "timmy"
},
{
"name": "domain",
"value": "example.com"
},
{
"name": "address",
"value": "timmy@example.com"
},
{
"name": "verified_at",
"value": "1670296277"
}
],
"wallet_id": "6b4ae41c-9c8a-49fd-9efa-fa0436d40b5c",
"rule": "no rule",
"meta_data": null,
"state": "offer-sent",
"complete": false,
"result": false,
"result_string": "Pending",
"credential_exchange_id": [
"02189932-52ac-4f9d-bf84-1fcfb7c67fa1"
],
"error": "",
"created_at": "2025-06-26T22:01:02.677Z",
"updated_at": "2025-06-26T22:01:05.594Z"
}
}This endpoint allows you to revoke a credential by providing the connection and credential exchange IDs.
The connection ID associated with the credential.
The credential exchange ID of the credential to revoke.
Credential revocation request accepted or already revoked
Bad Request
Unauthorized
Unprocessable Entity
Internal Server Error
POST /api/v1/credentials/anoncreds/revoke HTTP/1.1
Host: proven-4-2-test.proven.indicio.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"connection_id": "example-connection_id",
"credential_exchange_id": "example-credential_exchange_id"
}{
"message": "Revocation request processed successfully."
}Last updated
Was this helpful?