/v1/sftpReturns where to connect, the keys that may log in, and the last files dropped. Any credential may read it.
A login has four folders. A file in outgoing/ is filed as an invoice this company sent: a finished XML or PDF is validated, a customer export is converted through the company’s frozen mapping. A file in incoming/ is filed as an invoice this company received. Each file is answered in results/<file>.result.json, beside the files a conversion made, and removed; a file from incoming/ is answered in results/incoming/<file>.result.json, so a file of the same name in outgoing/ never takes its place. The same bytes dropped again are answered as duplicate and filed once. An invoice received another way is placed in inbox/, with a .json twin, and its history gets api:sftp-delivered.
Response
A 200 answer carries these fields.
- usernamestring or nullRequired
The login's name; null until the first key is saved.
- hoststring or nullRequired
The host to connect to
- portintegerRequired
- publicKeysarray of objectRequired
Show 3 child fields
- typestringRequired
- fingerprintstringRequired
As
ssh-keygen -lprints it,SHA256:…. - commentstring or nullRequired
- dropsarray of objectRequired
The newest 20 files, newest first.
Show 6 child fields
- filestringRequired
- folderstringRequiredOne of
outgoing,incoming. - outcomestringRequired
pendingwaits for its check,filedis answered,refusedwas not filed,duplicatewas filed before.One ofpending,filed,refused,duplicate. - receivedAtstring (date-time)Required
- answeredAtstring (date-time) or nullRequired
- errorstring or nullRequired
Why a refused file was not filed.
Status codes
| Status | Meaning |
|---|---|
200 |
The login. |
401 |
No usable credential was sent (invalid_credentials). |
503 |
This deployment stores nothing (sftp_not_configured). |
/v1/sftpcurl https://api.certinvo.com/v1/sftp \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/sftp`, {
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
response = requests.get(
"https://api.certinvo.com/v1/sftp",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text){
"username": "string",
"host": "string",
"port": 0,
"publicKeys": [
{
"type": "string",
"fingerprint": "string",
"comment": "string"
}
],
"drops": [
{
"file": "string",
"folder": "outgoing",
"outcome": "pending",
"receivedAt": "2026-09-17T09:30:00Z",
"answeredAt": "2026-09-17T09:30:00Z",
"error": "string"
}
]
}