Query and revoke credentials via API

These endpoints let you query the digital credentials your organization issued, download their record, revoke them, and get a count by status. The common conventions (base URL, dates, pagination, errors) are in API Endpoints.

Credential statuses

The status parameters and the responses use these values:

Value Meaning
pending Issued and waiting for the Earner to accept it.
accepted The Earner accepted the credential.
review Under review in an approval flow.
failed Issuance failed.
revoked The organization revoked the credential.
expired The credential passed its expiration date.

GET /credential/list

Lists your organization’s credentials, with filters and pagination.

Headers

Header Required Value
Authorization Yes Bearer <idToken>

Query parameters (all optional)

Parameter Type Description
credentialTemplateId string Only credentials issued with this template.
status string Only credentials in this status: pending, accepted, review, failed, revoked, or expired.
startDate string (date) Start of the date range, in YYYY-MM-DD format.
endDate string (date) End of the date range, in YYYY-MM-DD format.
email string Earner’s email.
name string Earner’s first name.
lastName string Earner’s last name.
identification string Earner’s identification number.
licenseNumber string License number recorded on the credential.
tags string Issuance tags (issuingTags), separated by commas.
page integer Page number. Starts at 1.
limit integer Credentials per page. Default 20, maximum 50. A value above 50 is capped at 50; an invalid value (non-numeric, 0, or negative) falls back to 20.

Example

curl -X 'GET' \
  'https://public-api.acreditta.com/credential/list?status=accepted&startDate=2026-01-01&endDate=2026-06-30&limit=50&page=1' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ID_TOKEN'

200 response: count, next, previous, and results. Each item in results includes:

Field Type Description
uuid string (UUID) Credential identifier. It’s the credentialId the other routes use.
status string Credential status.
email string Earner’s email.
issuedTo string Earner’s name.
issuedAt string Issue date.
acceptedAt string or null Acceptance date, if already accepted.
credentialTemplateId string Template ID.
templateName string Template name.
templateImage string Template image.
licenseNumber string or null License number, if any.
transactionBlock string Blockchain transaction record.

Errors: 401, 402, and 406.

🔎 Note: to get more than 50 credentials, go through the pages with page or follow the next URL until it’s null.

GET /credential/{credentialId}

Returns the details of a credential.

Headers: Authorization: Bearer <idToken>, required.

Path parameters

Parameter Type Required Description
credentialId string (UUID) Yes Credential identifier. You get it in the POST /credential/issue response and as uuid in GET /credential/list.

200 response

Field Type Description
status string Credential status.
credentialTemplateId string Template ID.
firstName / lastName string Earner’s first and last name.
issuedTo object Earner’s email and did (decentralized identifier).
issuerOrganization object orgId, orgName, and did of your organization as Issuer.
createdAt / issuedAt / awardedAt string (date) Creation, issue, and award dates.
expiresAt string (date) Expiration date, if any.
acceptedAt string (date-time) Acceptance date, if already accepted.
licenseNumber string License number, if any.
creditHours integer Credit hours, if any.
evidences array Evidence of the achievement.
evidenceAnnexe object Additional annex, if any.
seal string (URL) Credential seal.
transactionBlock string Blockchain transaction record.
acredittaHosting object Hosting data for the credential in Acreditta Platform.

Errors: 401, 402, and 406 (for example, if the credential doesn’t exist).

GET /credential/record/{credentialId}

Downloads the credential’s record as a PDF.

Headers: none required. This route doesn’t require Authorization.

Path parameters

Parameter Type Required Description
credentialId string (UUID) Yes Credential identifier. You get it in the POST /credential/issue response and as uuid in GET /credential/list.

Query parameters

Parameter Type Required Description
forPrinting boolean No true returns a blank PDF: no background images, only the text and the QR code, to print on preprinted paper. Without this parameter you get the full record.

200 response: the record’s PDF file.

Errors: 406 (for example, if the credential doesn’t exist).

🔎 Note: this is the only credential route that does not require a plan with the API enabled; it stays open so older PDF integrations don’t break. The rest require the API to be active on your plan (see Plans and limits).

PATCH /credential/revoke/{credentialId}

Revokes a credential. The credential moves to the revoked status and is no longer valid for a Verifier.

Headers: Authorization: Bearer <idToken>, required. No body.

Path parameters

Parameter Type Required Description
credentialId string (UUID) Yes Identifier of the credential you’re revoking.

200 response

Field Type Description
credentialId string (UUID) Identifier of the revoked credential.
status string New credential status.
description string Confirmation message.

Errors: 401, 402, and 406.

GET /report/credential/status

Counts your organization’s credentials by status within a date range.

Headers: Authorization: Bearer <idToken>, required.

Query parameters

Parameter Type Required Description
fromDate string (date) Yes Start of the range, in YYYY-MM-DD format.
toDate string (date) Yes End of the range, in YYYY-MM-DD format.
templateId string No Only credentials from this template.
templateTags string No Only credentials from templates with these tags, separated by commas.
issuedTags string No Only credentials with these issuance tags (issuingTags), separated by commas.
fields string No Counters you want to receive, separated by commas: issued, accepted, failed, total_shared, and pending.

Example

curl -X 'GET' \
  'https://public-api.acreditta.com/report/credential/status?fromDate=2026-01-01&toDate=2026-11-19&fields=issued,accepted' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ID_TOKEN'

200 response: an object with one counter per status: issued, accepted, pending, failed, revoked, versioned, shared, and total_shared.

Errors: 400 (fromDate or toDate is missing or has an invalid format), 401, and 402.


CONTENIDO