Skip to main content
POST
/
api
/
v1
/
download_document
Retrieve document content by file ID
curl --request POST \
  --url https://terrapinfinance.com/api/v1/download_document \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_id": "ROaomzq-lhfQ-LMSd8Zvow.pdf"
}
'
"<string>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
file_id
string
required

Terrapin file ID for the document. Can be obtained from the muni_documents endpoint.

Response

The document content (PDF or TXT)

The response is of type file.