Signicat Sign API v2 (0.0.1)
Download OpenAPI specification:Download
Upload a new document
Uploads the document as a binary stream; MIME type is defined by the Content-Type header. The response will be the resulting document reference.
Authorizations:
header Parameters
Content-Type required | string Content type header |
Request Body schema: required
Responses
Response samples
- 200
- 400
- 415
{- "mimeType": "application/pdf",
- "documentId": "d1234567-89ab-cdef-0123-456789abcdef",
- "createdAt": "2023-04-12T10:30:00Z",
- "documentHash": {
- "hash": "string",
- "hashAlgorithm": "SHA-256"
}, - "filename": "invoice_001.pdf",
- "description": "Invoice for order #001",
- "title": "Invoice #001"
}
Permanently delete a single document and its metadata
Authorizations:
path Parameters
documentId required | string <uuid> Document ID parameter |
Responses
Response samples
- 400
- 404
- 500
{- "status": 500,
- "title": "Internal server error",
- "code": "internal_server_error",
- "traceId": "ffb75ca1385ecb0a362ff9cd029d23de",
- "invalidParams": {
- "name": "version",
- "reason": "must be greater than 0"
}, - "detail": "An internal server error happened."
}
Store optional descriptive data about a stored document
Authorizations:
path Parameters
documentId required | string <uuid> Document ID parameter |
Request Body schema: application/jsonrequired
filename | string A name to use if the document is to be stored as a file. Optional metadata about the stored document which the customer can supply. |
description | string A description of the document for display purposes. Optional metadata about the stored document which the customer can supply. |
title | string A title of the document for display purposes. Optional metadata about the stored document which the customer can supply. |
Responses
Request samples
- Payload
{- "filename": "invoice_001.pdf",
- "description": "Invoice for order #001",
- "title": "Invoice #001"
}
Response samples
- 400
- 404
- 500
{- "status": 500,
- "title": "Internal server error",
- "code": "internal_server_error",
- "traceId": "ffb75ca1385ecb0a362ff9cd029d23de",
- "invalidParams": {
- "name": "version",
- "reason": "must be greater than 0"
}, - "detail": "An internal server error happened."
}
Retrieve all information stored about a single document
Authorizations:
path Parameters
documentId required | string <uuid> Document ID parameter |
Responses
Response samples
- 200
- 404
- 500
{- "mimeType": "application/pdf",
- "documentId": "d1234567-89ab-cdef-0123-456789abcdef",
- "createdAt": "2023-04-12T10:30:00Z",
- "documentHash": {
- "hash": "string",
- "hashAlgorithm": "SHA-256"
}, - "filename": "invoice_001.pdf",
- "description": "Invoice for order #001",
- "title": "Invoice #001"
}
Retrieve an archived document
Authorizations:
path Parameters
archiveDocumentId required | string <uuid> Archive document ID parameter |
Responses
Response samples
- 404
- 500
{- "status": 404,
- "title": "Could not find document in archive",
- "code": "archived_document_not_found"
}
Create a new document collection
Creates new document collection.
Authorizations:
Request Body schema: application/jsonrequired
required | Array of objects (DocumentReference) non-empty | ||||
Array (non-empty)
|
Responses
Request samples
- Payload
{- "documents": [
- {
- "documentId": "15197b79-6333-4fa5-9e4c-23b9392a838f",
- "description": "Terms of Service"
}
]
}
Response samples
- 201
{- "id": "f05d0dce-a7af-432b-b6b8-e455ab7c0858",
- "documents": [
- {
- "documentId": "15197b79-6333-4fa5-9e4c-23b9392a838f",
- "description": "Terms of Service"
}
]
}
Retrieve a document collection
Returns the document collection with the given ID.
Authorizations:
path Parameters
documentCollectionId required | string |
Responses
Response samples
- 200
- 404
{- "id": "f05d0dce-a7af-432b-b6b8-e455ab7c0858",
- "documents": [
- {
- "documentId": "15197b79-6333-4fa5-9e4c-23b9392a838f",
- "description": "Terms of Service"
}
]
}
Delete a document collection
Deletes the document collection with the given ID.
Authorizations:
path Parameters
documentCollectionId required | string |
Responses
Response samples
- 404
{- "status": 500,
- "title": "Internal server error",
- "code": "internal_server_error",
- "traceId": "ffb75ca1385ecb0a362ff9cd029d23de",
- "invalidParams": {
- "name": "version",
- "reason": "must be greater than 0"
}, - "detail": "An internal server error happened."
}
Create a new signature session
Creates a new signature session.
Authorizations:
Request Body schema: application/jsonrequired
object (Recipient) Recipient of notifications | |
title required | string <= 255 characters |
signText | string <= 255 characters |
dueDate | string <date-time> |
required | Array of objects (SessionDocument) non-empty |
senderDisplayName | string <= 255 characters The name of the entity that requested the signature. Displayed while signing. |
externalReference | string or null <= 1024 characters An external reference for this session |
required | Array of objects (UserInteractionSetup) <= 1 items The user interaction setups for this session describing which IDPs are available for the end-user. |
subsequentTo | Array of strings <uuid> [ items <uuid > ] IDs of signing sessions that must be signed before this one. |
packageTo | Array of strings (PackageType) Items Value: "pades_container" List of formats the session should be packaged to when signed |
object (Signer) The intended signer of the Signing Session | |
object (ArchiveSettings) Define what objects should be added to archive | |
object (PreAuthentication) Set up authentication of signer before presenting documents | |
language | string (LanguageEnum) Enum: "EN" "DA" "SV" "FI" "NL" "DE" "NO" Specifies the language to be used in the signing UI |
Responses
Request samples
- Payload
[- {
- "recipient": {
- "email": "mail@example.org",
- "mobile": "+47 123 45 678"
}, - "title": "Business Process",
- "signText": "Please sign this document",
- "dueDate": "2017-07-21T17:32:28Z",
- "documents": [
- {
- "documentCollectionId": "f05d0dce-a7af-432b-b6b8-e455ab7c0853",
- "action": "SIGN",
- "documentId": "f05d0dce-a7af-432b-b6b8-e455ab7c0857"
}
], - "lifecycle": {
- "state": "BLOCKED",
- "stateIsFinal": true
}, - "senderDisplayName": "Corporation incorporated",
- "externalReference": "string",
- "userInteractionSetup": [
- {
- "vendor": "buypass",
- "identityProviders": [
- {
- "idpName": "string"
}
], - "signingFlow": "AUTHENTICATION_BASED",
- "additionalParameters": {
- "sbid_flow": "QR",
- "sbid_end_user_ip": "127.0.0.1"
}
}
], - "subsequentTo": [
- "f05d0dce-a7af-432b-b6b8-e455ab7c0858"
], - "packageTo": [
- "pades_container"
], - "signer": {
- "nationalIdentificationNumber": "string",
- "validations": [
- "national_identification_number"
]
}, - "archive": {
- "sendOriginalToArchive": true,
- "sendResultToArchive": true
}, - "preAuthentication": {
- "enabled": true
}, - "language": "EN"
}
]
Response samples
- 201
[- {
- "id": "f05d0dce-a7af-432b-b6b8-e455ab7c0852",
- "recipient": {
- "email": "mail@example.org",
- "mobile": "+47 123 45 678"
}, - "title": "Business Process",
- "signText": "Please sign this document",
- "dueDate": "2017-07-21T17:32:28Z",
- "documents": [
- {
- "documentCollectionId": "f05d0dce-a7af-432b-b6b8-e455ab7c0853",
- "action": "SIGN",
- "documentId": "f05d0dce-a7af-432b-b6b8-e455ab7c0857"
}
], - "lifecycle": {
- "state": "BLOCKED",
- "stateIsFinal": true
}, - "senderDisplayName": "Corporation incorporated",
- "output": {
- "signatures": [
- {
- "documentCollectionId": "f05d0dce-a7af-432b-b6b8-e455ab7c0854",
- "resultDocumentId": "f05d0dce-a7af-432b-b6b8-e455ab7c0855",
- "originalDocumentId": "f05d0dce-a7af-432b-b6b8-e455ab7c0856",
- "signatureType": "XAdES"
}
], - "packages": [
- {
- "packageId": "f05d0dce-a7af-432b-b6b8-e455ab7c0863",
- "resultDocumentId": "f05d0dce-a7af-432b-b6b8-e455ab7c0863",
- "packageType": "pades_container"
}
]
}, - "externalReference": "string",
- "userInteractionSetup": [
- {
- "vendor": "buypass",
- "identityProviders": [
- {
- "idpName": "string"
}
], - "signingFlow": "AUTHENTICATION_BASED",
- "additionalParameters": {
- "sbid_flow": "QR",
- "sbid_end_user_ip": "127.0.0.1"
}
}
], - "subsequentTo": [
- "f05d0dce-a7af-432b-b6b8-e455ab7c0858"
], - "packageTo": [
- "pades_container"
], - "signer": {
- "nationalIdentificationNumber": "string",
- "validations": [
- "national_identification_number"
]
}, - "archive": {
- "sendOriginalToArchive": true,
- "sendResultToArchive": true
}, - "preAuthentication": {
- "enabled": true
}, - "language": "EN"
}
]
Retrieve a signature session
Returns the signature session with the given ID.
Authorizations:
path Parameters
sessionId required | string |
Responses
Response samples
- 200
- 404
{- "id": "f05d0dce-a7af-432b-b6b8-e455ab7c0852",
- "recipient": {
- "email": "mail@example.org",
- "mobile": "+47 123 45 678"
}, - "title": "Business Process",
- "signText": "Please sign this document",
- "dueDate": "2017-07-21T17:32:28Z",
- "documents": [
- {
- "documentCollectionId": "f05d0dce-a7af-432b-b6b8-e455ab7c0853",
- "action": "SIGN",
- "documentId": "f05d0dce-a7af-432b-b6b8-e455ab7c0857"
}
], - "lifecycle": {
- "state": "BLOCKED",
- "stateIsFinal": true
}, - "senderDisplayName": "Corporation incorporated",
- "output": {
- "signatures": [
- {
- "documentCollectionId": "f05d0dce-a7af-432b-b6b8-e455ab7c0854",
- "resultDocumentId": "f05d0dce-a7af-432b-b6b8-e455ab7c0855",
- "originalDocumentId": "f05d0dce-a7af-432b-b6b8-e455ab7c0856",
- "signatureType": "XAdES"
}
], - "packages": [
- {
- "packageId": "f05d0dce-a7af-432b-b6b8-e455ab7c0863",
- "resultDocumentId": "f05d0dce-a7af-432b-b6b8-e455ab7c0863",
- "packageType": "pades_container"
}
]
}, - "externalReference": "string",
- "userInteractionSetup": [
- {
- "vendor": "buypass",
- "identityProviders": [
- {
- "idpName": "string"
}
], - "signingFlow": "AUTHENTICATION_BASED",
- "additionalParameters": {
- "sbid_flow": "QR",
- "sbid_end_user_ip": "127.0.0.1"
}
}
], - "subsequentTo": [
- "f05d0dce-a7af-432b-b6b8-e455ab7c0858"
], - "packageTo": [
- "pades_container"
], - "signer": {
- "nationalIdentificationNumber": "string",
- "validations": [
- "national_identification_number"
]
}, - "archive": {
- "sendOriginalToArchive": true,
- "sendResultToArchive": true
}, - "preAuthentication": {
- "enabled": true
}, - "language": "EN"
}
Delete a signature session
Deletes the signature session with the given ID.
Authorizations:
path Parameters
sessionId required | string |
Responses
Response samples
- 404
{- "status": 500,
- "title": "Internal server error",
- "code": "internal_server_error",
- "traceId": "ffb75ca1385ecb0a362ff9cd029d23de",
- "invalidParams": {
- "name": "version",
- "reason": "must be greater than 0"
}, - "detail": "An internal server error happened."
}