Skip to content

Upload Attestation Document

Attestations must be backed by documentation such as wire confirmations, bank statements, or audit letters. This guide shows how to upload documents and receive a blobId that can be attached to an attestation. For automated / system driven attestations this can be a JSON file with the attestation details.

Before you begin, ensure:

  • You have the stablecoinId
  • Your document is in an accepted format (PDF, image, or plain file)
POST /v2/stablecoin/{stablecoinId}/attestation/documents
Content-Type: multipart/form-data
  • file: The document file to upload
upload-doc.sh
curl -X POST https://api.fsco.io/v2/stablecoin/{{stablecoinId}}/attestation/documents \
-H "Authorization: Bearer $FSCO_API_KEY" \
-F "file=@./wire-receipt.pdf"
upload-doc-response.json
{
"blobId": "{{blobId}}"
}
Returns a blobId, which you can include in your attestation’s documents array when calling the /attestation endpoint.