PDF templates
Create a Semantic CWT credential PDF template
/v2/credentials/compact-semantic/pdf/templatesCreates a Semantic CWT credential PDF template based on a provided .zip file. Refer to our PDF template design guide for more information on how to design a template and structure the .zip file.
Roles
Analytics Events
Authorization
bearerAuth In: header
Request Body
application/zip
TypeScript Definitions
Use the request body type in TypeScript.
binaryResponse Body
application/json
application/json
application/json
curl -X POST "https://example.com/v2/credentials/compact-semantic/pdf/templates" \ -H "Content-Type: application/zip" \ -d 'string'{ "id": "4eea7654-d4c5-4eba-bd7a-5ca334d54725", "name": "Certificate of participation", "fileName": "certificate_of_participation", "fonts": [ { "name": "PublicSans-Regular", "fileName": "fonts/PublicSans-Regular.ttf" } ], "metadata": { "title": "" }, "fields": [ { "key": "familyName", "value": "{{payload.sub_claims.familyName}}", "isRequired": true, "alternativeText": "{{payload.sub_claims.familyName}}", "fontName": "PublicSans-Regular" } ]}Retrieve all Semantic CWT credential PDF templates
/v2/credentials/compact-semantic/pdf/templatesRetrieves a list of all Semantic CWT credential PDF templates available on the tenant.
Roles
Analytics Events
Authorization
bearerAuth In: header
Query Parameters
Range size of returned list.
1 <= value <= 1000100Starting point for the list of entries.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v2/credentials/compact-semantic/pdf/templates"{ "nextCursor": "0ecdcb57-ef2b-4aa1-be34-695c2d9d9486", "data": [ { "id": "4eea7654-d4c5-4eba-bd7a-5ca334d54725", "name": "Certificate of participation", "fileName": "certificate_of_participation", "fonts": [ { "name": "PublicSans-Regular", "fileName": "fonts/PublicSans-Regular.ttf" } ], "metadata": { "title": "" }, "fields": [ { "key": "familyName", "value": "{{payload.sub_claims.familyName}}", "isRequired": true, "alternativeText": "{{payload.sub_claims.familyName}}", "fontName": "PublicSans-Regular" } ] } ]}Retrieve a Semantic CWT credential PDF template
/v2/credentials/compact-semantic/pdf/templates/{id}Retrieves an existing Semantic CWT credential PDF template using its ID.
Roles
Analytics Events
Authorization
bearerAuth In: header
Path Parameters
PDF Template ID
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v2/credentials/compact-semantic/pdf/templates/string"{ "id": "4eea7654-d4c5-4eba-bd7a-5ca334d54725", "name": "Certificate of participation", "fileName": "certificate_of_participation", "fonts": [ { "name": "PublicSans-Regular", "fileName": "fonts/PublicSans-Regular.ttf" } ], "metadata": { "title": "" }, "fields": [ { "key": "familyName", "value": "{{payload.sub_claims.familyName}}", "isRequired": true, "alternativeText": "{{payload.sub_claims.familyName}}", "fontName": "PublicSans-Regular" } ]}Update a Semantic CWT credential PDF template
/v2/credentials/compact-semantic/pdf/templates/{id}Update an existing CWT credential PDF template based on a provided .zip file. Refer to our PDF template design guide for more information on how to design a template and structure the .zip file.
Roles
Analytics Events
Authorization
bearerAuth In: header
Path Parameters
PDF Template ID
Request Body
application/zip
TypeScript Definitions
Use the request body type in TypeScript.
binaryResponse Body
application/json
application/json
application/json
curl -X PUT "https://example.com/v2/credentials/compact-semantic/pdf/templates/string" \ -H "Content-Type: application/zip" \ -d 'string'{ "id": "4eea7654-d4c5-4eba-bd7a-5ca334d54725", "name": "Certificate of participation", "fileName": "certificate_of_participation", "fonts": [ { "name": "PublicSans-Regular", "fileName": "fonts/PublicSans-Regular.ttf" } ], "metadata": { "title": "" }, "fields": [ { "key": "familyName", "value": "{{payload.sub_claims.familyName}}", "isRequired": true, "alternativeText": "{{payload.sub_claims.familyName}}", "fontName": "PublicSans-Regular" } ]}Delete a Semantic CWT credential PDF template
/v2/credentials/compact-semantic/pdf/templates/{id}Delete an existing PDF template by providing its ID
Roles
Analytics Events
Authorization
bearerAuth In: header
Path Parameters
PDF Template ID
Response Body
application/json
application/json
curl -X DELETE "https://example.com/v2/credentials/compact-semantic/pdf/templates/string"How would you rate this page?
Last updated on