Skip to content

API reference

Get the SFTP login

Other routes API

GET/v1/sftp

Returns 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 -l prints it, SHA256:….

    • commentstring or nullRequired
  • dropsarray of objectRequired

    The newest 20 files, newest first.

    Show 6 child fields
    • filestringRequired
    • folderstringRequired
      One of outgoing, incoming.
    • outcomestringRequired

      pending waits for its check, filed is answered, refused was not filed, duplicate was filed before.

      One of pending, 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).
GET/v1/sftp
Example
curl 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)
200
application/json
{
  "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"
    }
  ]
}
Success response
GET
/v1/sftp
Get the SFTP login
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/sftp" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close