curl --request POST \
--url https://api.mijnklantportaal.nl/v1/agreements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Service contract' \
--form 'signerName=John Doe' \
--form 'signerSignatureData=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA...' \
--form 'signers={
"firstName": "Dirk Jan",
"lastName": "Bakker",
"email": "[email protected]",
"shouldIdentify": true
}' \
--form 'documents=<string>' \
--form documents.items='@example-file'{
"id": "agr_abc12346def678",
"name": "Service contract",
"status": "sent",
"signerName": "John Doe",
"signerSignature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA...",
"signerSignatureHash": "PwZVOc2K5rqcpqljbM2xkzJub9FtmA307pvuoJXoiqHDuEyZB7NVqdKbb3SPXt1P",
"signers": [
{
"id": "ags_abc12346def678",
"firstName": "Dirk Jan",
"lastName": "Bakker",
"email": "[email protected]",
"shouldIdentify": true,
"signature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA...",
"signatureHash": "PwZVOc2K5rqcpqljbM2xkzJub9FtmA307pvuoJXoiqHDuEyZB7NVqdKbb3SPXt1P",
"signedAt": "2025-09-13T17:23:14+02:00"
}
],
"documents": [
{
"id": "agd_abc12346def678",
"documentName": "Contract version_2.pdf",
"fileSize": 512,
"fileHash": "PwZVOc2K5rqcpqljbM2xkzJub9FtmA307pvuoJXoiqHDuEyZB7NVqdKbb3SPXt1P"
}
],
"createdAt": "2025-09-13T17:23:14+02:00"
}Creating a new agreement. Note: This endpoint accepts only multipart/form-data.
curl --request POST \
--url https://api.mijnklantportaal.nl/v1/agreements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Service contract' \
--form 'signerName=John Doe' \
--form 'signerSignatureData=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA...' \
--form 'signers={
"firstName": "Dirk Jan",
"lastName": "Bakker",
"email": "[email protected]",
"shouldIdentify": true
}' \
--form 'documents=<string>' \
--form documents.items='@example-file'{
"id": "agr_abc12346def678",
"name": "Service contract",
"status": "sent",
"signerName": "John Doe",
"signerSignature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA...",
"signerSignatureHash": "PwZVOc2K5rqcpqljbM2xkzJub9FtmA307pvuoJXoiqHDuEyZB7NVqdKbb3SPXt1P",
"signers": [
{
"id": "ags_abc12346def678",
"firstName": "Dirk Jan",
"lastName": "Bakker",
"email": "[email protected]",
"shouldIdentify": true,
"signature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA...",
"signatureHash": "PwZVOc2K5rqcpqljbM2xkzJub9FtmA307pvuoJXoiqHDuEyZB7NVqdKbb3SPXt1P",
"signedAt": "2025-09-13T17:23:14+02:00"
}
],
"documents": [
{
"id": "agd_abc12346def678",
"documentName": "Contract version_2.pdf",
"fileSize": 512,
"fileHash": "PwZVOc2K5rqcpqljbM2xkzJub9FtmA307pvuoJXoiqHDuEyZB7NVqdKbb3SPXt1P"
}
],
"createdAt": "2025-09-13T17:23:14+02:00"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Name of the agreement
"Service contract"
Name of the signer in the name of the company of the portal
"John Doe"
Base64-encoded data-string of the signature image
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA..."
An array of objects with information about the needed signers. Per agreement, a maximum of 5 signers is permitted.
Show child attributes
The documents which are part of this agreement. Maximum of 5 documents per agreement, upon a total of 5MB.
Returning the created Agreement
Agreement with details
ID of the agreement, always starting with agr_.
"agr_abc12346def678"
Name of the agreement
"Service contract"
Status of the agreement. Can be sent or signed.
"sent"
Name of the person who signed in name of the company of the portal
"John Doe"
Base64-encoded string of the signature image
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA..."
Hash of the signerSignature in combination with the signing datetime to ensure integrity
"PwZVOc2K5rqcpqljbM2xkzJub9FtmA307pvuoJXoiqHDuEyZB7NVqdKbb3SPXt1P"
An array with the signer(s) for this agreement
Show child attributes
An array with the document(s) for this agreement
Show child attributes
Date and time when the agreement is created in MijnKlantportaal, written in ATOM format.
"2025-09-13T17:23:14+02:00"