Endpoint
| Environment | URL |
|---|---|
| Production | GET https://api.waec.org/api/v1/external/certificate/confirmation/preview/{id} |
| Sandbox | GET https://api.sandbox.smartdocument.org/api/v1/external/certificate/confirmation/preview/{id} |
Authentication
Required. Include your API Secret key in theX-DigiCert-Secret request header.
Path Parameters
The unique identifier of the confirmed certificate (for example,
48a78b36-073a-46cf-85d4-d1d4f5afb2cf).Example Request
Response
The response returns the digital certificate content. This may be rendered as an image, PDF, or structured JSON object depending on the certificate type.true when the certificate preview was retrieved successfully.The digital certificate preview data, including the certificate image or document URL and associated metadata.
Success Response
Status:200 OK
Error Cases
| Error Code | HTTP Status | When it occurs |
|---|---|---|
UNAUTHORIZED | 401 | The X-DigiCert-Secret header is missing or invalid |
NOT_FOUND | 404 | No confirmed certificate exists for the supplied id |