Skip to content

Add An Attachment To The Given Profile

Request

Adds an attachment to a profile. Returns the details of the added attachment.

Security
bearerToken
Path
profileIdstring, (uuid)required

id of the profile

Example:8cb4d8a3-d277-4205-9d6c-f3f3a8b65f31
Headers
X-Team-Idstring, (uuid)

Optional. The team to work in, using a team id from List Teams. If left out, the default team is used. Records created in a team can only be seen by sending that team's id. A team id that doesn't exist, or a team being deleted, is rejected with 404 Team Not Found.

Example:6b78aed4-9ba6-441b-80b9-df9bea3b7c97
Bodymultipart/form-data

The file to attach, with its document type and description.

Filestring, (binary)

The attachment to be added. Size Limited to 50MB.

DocumentTypestring

The document type of the attachment

Descriptionstring

The description of the attachment. Limited to 250 characters.

curl -i -X POST \
  https://connect.sandbox.creditsafe.com/v1/compliance/kyc-protect/profiles/8cb4d8a3-d277-4205-9d6c-f3f3a8b65f31/attachments \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: multipart/form-data' \
  -H 'X-Team-Id: 6b78aed4-9ba6-441b-80b9-df9bea3b7c97' \
  -F File=@File.bin \
  -F DocumentType=string \
  -F Description=string

Responses

Created

Bodyapplication/json
idstring, (uuid)

Attachment Id.

fileNamestring

Example:passport.pdf (Attachment Name).

fileSizeInBytesinteger, (int64)

Size of the attachment in bytes.

documentTypestring

Document type of the attachment.

descriptionstring

Description of the attachment.

createdAtstring, (date-time)

Attachment uploaded time.

createdByIdinteger, (int32)

Attachment uploaded by user id

createdBystring

Attachment uploaded by user

modifiedAtstring, (date-time)

Attachment modified time

modifiedByIdinteger, (int32)

Attachment modified by user id

modifiedBystring

Attachment modified by user

correlationIdstring

A unique ID assigned to this request.

Response
{ "id": "295e185b-53bf-4e2a-bee6-19d8a85a7fac", "fileName": "openapi-test.txt", "fileSizeInBytes": 50, "documentType": "registrationDocuments", "description": "Contract test attachment", "createdAt": "2026-11-03T14:40:11.139Z", "createdById": 100000001, "createdBy": "Jane Smith", "modifiedAt": "2026-11-03T14:40:11.139Z", "modifiedById": 100000001, "modifiedBy": "Jane Smith", "correlationId": "2e8a9ade-e4aa-457a-a7d6-04d10c5bf922" }