---
title: "Get the SFTP login"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the SFTP login

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="get">GET</span>
<code class="cvo-op-path-code">/v1/sftp</code>
</div>
</div>

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.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The login. |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `503` | This deployment stores nothing (`sftp_not_configured`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/get-the-sftp-login/index.mdx
