Skip to main content

Attachments & extra data

Attach your own files to a process and store additional business data with it.

Add attachment​

POST/api/attachments/{verificationId} Onboarding token

Uploads one or more attachments to an onboarding process. Send its token in the onboarding-token header, and repeat the attachment multipart field for multiple files.

Limits: maximum file size 5 MB; allowed file types pdf, jpg, jpeg, png, docx, doc, txt; maximum 3 files per process; file names may only contain alphanumeric characters, underscores and hyphens (no spaces). Contact the platform support team for customized limits.

Attachments are identified by their name within the process. Uploading an attachment with an existing name replaces the previous file, whatever its file type.

Path parameters

  • verificationIduuidRequired

    Unique identifier of the onboarding process.

Request bodymultipart/form-data

  • attachmentfileRequired

    File to attach to the onboarding process.

Response200 · application/json

  • codestring

    Result of the upload.

  • descriptionstring

    Description of the result of the upload.

  • scanIduuid

    Unique identifier of the attachment scan.

  • fileNamestring

    Name of the uploaded attachment.

Status codes

  • 200The attachment has been uploaded.
  • 400A required parameter is missing or has an invalid format, or the file exceeds the attachment limits.
  • 401The onboarding token does not match this process, has expired or cannot be used for this upload.
  • 403You do not have permission to perform this action.
  • 404No onboarding process exists with that verificationId.
curl -X POST 'https://{GATEWAY-HOST}/api/attachments/{verificationId}' \
-H 'onboarding-token: <ONBOARDING_TOKEN>' \
-F 'attachment=@file.pdf'
Responses
200OKapplication/json

The attachment has been uploaded.

{
"code": "OK",
"description": "ATTACHMENT_UPLOADED_SUCCESSFULLY",
"scanId": "123e4567-e89b-12d3-a456-426614174000",
"fileName": "attachment_name"
}

List attachments​

GET/api/attachments/{verificationId} Access token

Returns the list of attachments of an onboarding process, with their details.

Path parameters

  • verificationIduuidRequired

    Unique identifier of the onboarding process.

Response200 · application/json

  • attachmentsarray<object>

    Attachments of the onboarding process.

Status codes

  • 200The list of attachments of the process.
  • 400A required parameter is missing or has an invalid format.
  • 401The access token is missing, invalid or expired, or you do not have access to this process.
  • 403You do not have permission to perform this action.
  • 404No onboarding process exists with that verificationId.
curl -X GET 'https://{GATEWAY-HOST}/api/attachments/{verificationId}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Responses
200OKapplication/json

The list of attachments of the process.

{
"attachments": [
{
"fileName": "file1",
"url": "/api/attachments/d80a9694-3250-4a4c-9169-385fd95e06fb/file1",
"date": "2025-07-15 15:17:07"
}
]
}

Download attachment​

GET/api/attachments/{verificationId}/{fileName} Access token

Downloads the content of an attachment of an onboarding process.

Path parameters

  • verificationIduuidRequired

    Unique identifier of the onboarding process.

  • fileNamestringRequired

    Name of the attachment to download.

Status codes

  • 200The binary content of the requested attachment.
curl -X GET 'https://{GATEWAY-HOST}/api/attachments/{verificationId}/{fileName}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Accept: */*' \
-o download-attachment.bin
Responses
200OK*/*

The binary content of the requested attachment.

Binary file · */*

Delete attachment​

DELETE/api/attachments/{verificationId}/{fileName} Access token

Deletes an attachment of an onboarding process.

A deleted attachment cannot be recovered.

Path parameters

  • verificationIduuidRequired

    Unique identifier of the onboarding process.

  • fileNamestringRequired

    Name of the attachment to delete.

Status codes

  • 204The attachment has been deleted. The response has no body.
  • 400A required parameter is missing or has an invalid format.
  • 401The access token is missing, invalid or expired, or you do not have access to this process.
  • 403You do not have permission to perform this action.
  • 404No onboarding process exists with that verificationId, or it has no attachment with that name.
curl -X DELETE 'https://{GATEWAY-HOST}/api/attachments/{verificationId}/{fileName}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Responses
204No Content

The attachment has been deleted. The response has no body.

Add extra data​

POST/mobbscan-agent/addExtraVerificationProcessData Access token

Requests to store additional business data with an onboarding process as key–value pairs. Check the saved values with Get extra data.

Gateway can return HTTP 200 with code: OK even when the data was not saved. Verify persistence with Get extra data; the success response alone is not proof of storage.

Request bodyapplication/json

  • verificationIduuidRequired

    Unique identifier of the onboarding process.

  • extraDataobjectRequired

    Key–value pairs to add to the onboarding process.

Response200 · application/json

  • codestring

    Gateway's reported result; OK does not prove the data was saved.

  • descriptionstring

    Description of the result.

Status codes

  • 200Gateway reports the request as processed; check the stored data with Get extra data.
  • 400A required parameter is missing or has an invalid format.
  • 401The access token is missing, invalid or expired, or you do not have access to this process.
  • 403You do not have permission to perform this action.
  • 404No onboarding process exists with that verificationId.
curl -X POST 'https://{GATEWAY-HOST}/mobbscan-agent/addExtraVerificationProcessData' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"verificationId": "d80a9694-3250-4a4c-9169-385fd95e06fb",
"extraData": {
"key1": "value1",
"key2": "value2"
}
}'
Responses
200OKapplication/json

Gateway reports the request as processed; check the stored data with Get extra data.

{
"code": "OK",
"description": "EXTRA DATA ADDED SUCCESSFULLY",
"scanId": null
}

Get extra data​

GET/mobbscan-agent/getExtraVerificationProcessData/{verificationId} Access token

Returns the extra data stored with an onboarding process.

Path parameters

  • verificationIduuidRequired

    Unique identifier of the onboarding process.

Response200 · application/json

  • keystring

    Key of the extra data entry.

  • valuestring

    Value of the extra data entry.

  • verificationIduuid

    Unique identifier of the onboarding process.

Status codes

  • 200A JSON array with one entry per key stored in the process.
  • 400A required parameter is missing or has an invalid format.
  • 401The access token is missing, invalid or expired, or you do not have access to this process.
  • 403You do not have permission to perform this action.
  • 404No onboarding process exists with that verificationId.
curl -X GET 'https://{GATEWAY-HOST}/mobbscan-agent/getExtraVerificationProcessData/{verificationId}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Responses
200OKapplication/json

A JSON array with one entry per key stored in the process.

[
{
"key": "key1",
"value": "value1",
"verificationId": "d80a9694-3250-4a4c-9169-385fd95e06fb"
},
{
"key": "key2",
"value": "value2",
"verificationId": "d80a9694-3250-4a4c-9169-385fd95e06fb"
}
]