PDF templates
Create a CWT credential PDF template
/v2/credentials/compact/pdf/templatesCreates a 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/pdf/templates" \ -H "Content-Type: application/zip" \ -d 'string'{ "id": "string", "name": "string", "fileName": "string", "fonts": [ { "name": "string", "fileName": "string" } ], "metadata": { "title": "string" }, "fields": [ { "key": "string", "value": "string", "isRequired": true, "alternativeText": "string", "fontName": "string" } ]}Retrieve all CWT credential PDF templates
/v2/credentials/compact/pdf/templatesRetrieves a list of all CWT credentials 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/pdf/templates"{ "nextCursor": "string", "data": [ { "id": "string", "name": "string", "fileName": "string", "fonts": [ { "name": "string", "fileName": "string" } ], "metadata": { "title": "string" }, "fields": [ { "key": "string", "value": "string", "isRequired": true, "alternativeText": "string", "fontName": "string" } ] } ]}Retrieve a CWT credential PDF template
/v2/credentials/compact/pdf/templates/{id}Retrieves an existing CWT credentials 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/pdf/templates/string"{ "id": "string", "name": "string", "fileName": "string", "fonts": [ { "name": "string", "fileName": "string" } ], "metadata": { "title": "string" }, "fields": [ { "key": "string", "value": "string", "isRequired": true, "alternativeText": "string", "fontName": "string" } ]}Update a CWT credential PDF template
/v2/credentials/compact/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/pdf/templates/string" \ -H "Content-Type: application/zip" \ -d 'string'{ "id": "string", "name": "string", "fileName": "string", "fonts": [ { "name": "string", "fileName": "string" } ], "metadata": { "title": "string" }, "fields": [ { "key": "string", "value": "string", "isRequired": true, "alternativeText": "string", "fontName": "string" } ]}Delete a CWT credential PDF template
/v2/credentials/compact/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/pdf/templates/string"How would you rate this page?
Last updated on