This repository serves as an example of how you might implement the Criipto Document Signatures GraphQL API.
We also have a GraphQL Explorer
If you have not worked with GraphQL before we suggest you read through Introduction to GraphQL and The Fullstack Tutorial for GraphQL.
mutation {
createSignatureOrder(input: {
documents:[{
pdf: {
title: "Terms of service"
storageMode: Temporary
blob: "JVBERi0yLjANCg0KMSAwIG9iag0KPDwNCiAgL1R5cGUgL0NhdGFsb2cNCiAgL01ldGFkYXRhIDIgMCBSDQogIC9QYWdlcyAzIDAgUg0KPj4NCmVuZG9iag0KDQoyIDAgb2JqDQo8PA0KICAvTGVuZ3RoIDIzNTENCiAgL1R5cGUgL01ldGFkYXRhDQogIC9TdWJ0eXBlIC9YTUwNCj4+DQpzdHJlYW0NCjx4OnhtcG1ldGEgeG1sbnM6eD0nYWRvYmU6bnM6bWV0YS8nIHg6eG1wdGs9J0luc2VydCBYTVAgdG9vbCBuYW1lIGhlcmUuJz4NCiAgPHJkZjpSREYgeG1sbnM6cmRmPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjJz4NCiAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczpwZGY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGRmLzEuMy8iPg0KICAgICAgPHBkZjpQcm9kdWNlcj5EYXRhbG9naWNzIC0gZXhhbXBsZSBwcm9kdWNlciBwcm9ncmFtIG5hbWUgaGVyZTwvcGRmOlByb2R1Y2VyPg0KICAgICAgPHBkZjpDb3B5cmlnaHQ+Q29weXJpZ2h0IDIwMTcgUERGIEFzc29jaWF0aW9uPC9wZGY6Q29weXJpZ2h0Pg0KICAgICAgPHBkZjpLZXl3b3Jkcz5QREYgMi4wIHNhbXBsZSBleGFtcGxlPC9wZGY6S2V5d29yZHM+DQogICAgPC9yZGY6RGVzY3JpcHRpb24+DQogICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eGFwPSJodHRwOi8vbnM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MCBuDQowMDAwMDAzNTgzIDAwMDAwIG4NCjAwMDAwMDM4MDcgMDAwMDAgbg0KMDAwMDAwMzk2OCAwMDAwMCBuDQowMDAwMDA0NTIwIDAwMDAwIG4NCnRyYWlsZXINCjw8DQogIC9TaXplIDEwDQogIC9Sb290IDEgMCBSDQogIC9JRCBbIDwzMWM3YThhMjY5ZTRjNTliYzNjZDdkZjBkYWJiZjM4OD48MzFjN2E4YTI2OWU0YzU5YmMzY2Q3ZGYwZGFiYmYzODg+IF0NCj4+DQpzdGFydHhyZWYNCjQ4NDcNCiUlRU9GDQo="
}
}],
signatories: [
{
reference: "A"
},
{
reference: "B"
}
]
}) {
signatureOrder {
id
documents {
id
}
}
}
}
mutation {
addSignatory(
input: {
signatureOrderId: "[signatureOrder.id]"
reference: "..."
}
) {
signatory {
href
}
}
}
mutation {
addSignatory(
input: {
signatureOrderId: "[signatureOrder.id]"
documents: [
{id: "[signatureOrder.documents[0].id]"}
]
}
) {
signatory {
href
}
}
}
By preapproving documents for a signatory they are immediately sent to e-ID login to sign and skip the frontend approval flow.
When using preapproval document-scoping is automatically used so make sure that you pass all documents from the signature order to the signatory.
mutation {
addSignatory(
input: {
signatureOrderId: "[signatureOrder.id]"
documents: [
{id: "[signatureOrder.documents[0].id]", preapproved: true}
{id: "[signatureOrder.documents[1].id]", preapproved: true}
]
}
) {
signatory {
href
}
}
}
Evidence validation keys must match what will be found in the claims token when signing. You can inspect JWT Tokens issued by Criipto Verify to see the necessary keys.
Evidence will be hashed before storage and compared when a user tries to sign. If the evidence does not match an error will be displayed to the user and they will be prompted to try again.
mutation {
addSignatory(
input: {
signatureOrderId: "[signatureOrder.id]"
evidenceValidation: [
{key: "cprNumberIdentifier", value: "1234568888"}
]
}
) {
signatory {
href
}
}
}
mutation {
addSignatories(
input: {
signatureOrderId: "[signatureOrder.id]"
signatories: [
{
reference: "A"
},
{
reference: "B"
}
]
}
) {
signatureOrder {
signatories {
href
}
}
signatories {
href
}
}
}
query {
signatureOrder(id: "[signatureOrder.id]") {
status
signatories {
status
href
}
}
}
If a signature order is no longer required you can cancel it.
mutation {
cancelSignatureOrder(
input: {
signatureOrderId: "[signatureOrder.id]"
}
) {
signatureOrder {
status
}
}
}
Once all signatories have signed you need to close your signature order to retrieve the signed documents.
mutation {
closeSignatureOrder(
input: {
signatureOrderId: "[signatureOrder.id]"
}
) {
signatureOrder {
status
documents {
blob
}
}
}
}
If a signatory is currently pending but you no longer require them to sign, delete the signatory.
mutation {
deleteSignatory(
input: {
signatureOrderId: "[signatureOrder.id]"
signatoryId: "[signatory.id]"
}
) {
signatureOrder {
signatories {
status
}
}
}
}
query {
signatory(id: "[signatory.id]") {
status
signatureOrder {
status
}
}
}
GraphQL queries are executed with HTTP POST requests. A query
body parameter is required and a variables
body parameter is optional but recommended.
Authentication to the Criipto Document Signatures GraphQL API uses Basic Auth over your Application Client Id and Client Secret.
curl -u clientId:clientSecret \
-X POST --data '{"query": "query { signatureOrder(id: $id) { status }", "variables": {"id": "...example id ...."}}'
https://signatures-api-prod.azurewebsites.net/v1/query
Our GraphQL Explorer is the easiest way to test out queries.