Add attachment to applicant note

Overview

Use this method to attach a file to an existing note in the applicant profile.

📘

Info

A note must be created in the applicant profile before attaching a file.

File requirements

  • Maximum file size: 10 Mb.
  • Supported file formats: jpg, png, pdf, doc, docx, xls, xlsx, odt, ods, txt.

Request example

curl -X POST \
   'https://api.sumsub.com/resources/resources/api/applicants/notes/attachments' \
    -H 'Content-Type: multipart/form-data' \
    -F 'metadata={"id": "6893925cff736e92c020acaa", "applicantId": "687fb2373fc85ad66b5d6244"}' \
    -F 'content=@/Sumsub/example_image.png'

Response explained

The response is a JSON file representing the note details. The following tables explain the response attributes.

FieldTypeDescription
idStringNote identifier. You may need it in case you want to edit a note, remove a note, or add an attachment.
applicantIdStringUnique applicant identifier in the Sumsub system (applicantId).

This identifier is a random combination of 24 digits and lowercase Latin characters. It is automatically generated when the applicant profile is created on the Sumsub side.
noteStringText of the note.
createdAtDateDate and time when the note was added.
createdByDateIdentifier of the note author.
tagsArray of stringsTags assigned to the note.
attachmentsArray of objectsContains information about attached files.

attachments element fields

The following table explains the attachments element fields representing information about attached files.

FieldTypeDescription
idStringIdentifier of the attached file.
fileNameStringName of the file.
createdAtDateDate and time when the file was attached.
createdByDateIdentifier of the attachment author.
fileSizeIntegerImage file size (in bytes).

Response examples

If the request is sent and processed successfully, you will receive a response like the following:

{
  "id": "6893925cff736e92c020acaaa",
  "applicantId": "687fb2373fc85ad66b5d6244",
  "note": "note example 3",
  "createdAt": "2025-08-06 09:54:11+0000",
  "createdBy": "example_user",
  "tags": [
    "First tag",
    "Second tag"
  ],
  "attachments": [
    {
      "id": "6893a5c660e0659e03327608",
      "fileName": "example_image.png",
      "createdAt": "2025-08-06 18:58:14+0000",
      "createdBy": "example_user",
      "fileSize": 733158
    }
  ]
}

If the request fails, you will receive an HTTP response containing an error code along with a message explaining the error. For example:

{
  "description": "Malformed data provided in the request",
  "code": 400,
  "correlationId": "f23e05c9f1a0aa2beb83065f98dc0544"
}
Language
Credentials
Header
Click Try It! to start a request and see the response here!