Skip to the page

Search the titles, headings and text of every guide and API reference page.

    Chapters

    SFTP account

    Get the SFTP account

    GET/api/v1/sftp-account

    The organization's SFTP account: its status, the host, port and host key fingerprint to connect to, the four folders, the keys that may log in, and when it last logged in and last had a file taken. The password is never shown: it is shown once, when it is made. Not found when the organization has no SFTP account.

    Needs a key with read permission.

    Request

    This request takes no parameters and no body.

    Response

    The account. Status 200.

    Response fields
    NameTypeDescription
    idstringAn ID that starts with sftp_.
    objectstringAlways `sftp_account`.
    statusstringA disabled account is refused at login; its files stay where they are.One of: `active`, `disabled`.
    usernamestringThe user name to log in with.
    hostvalueThe host to connect to; null in an environment that has no SFTP host.
    portinteger or nullThe port to connect to; null in an environment that has no SFTP host.At least -9007199254740991.
    host_key_fingerprintvalueThe SHA256 fingerprint of the server's host key: check it the first time you connect. Null in an environment that has no SFTP host.
    foldersobjectThe folders of the account. A file dropped in a folder under TEST is a test file; the folder is the mode.
    folders.testobject
    folders.test.instringAlways `TEST/IN`.
    folders.test.outstringAlways `TEST/OUT`.
    folders.liveobject
    folders.live.instringAlways `IN`.
    folders.live.outstringAlways `OUT`.
    keysarray of objectThe public keys that may log in, at most 5.At most 5 items.
    keys[].idstringAn ID that starts with sfk_.
    keys[].objectstringAlways `sftp_key`.
    keys[].labelstringThe name you gave the key.At most 64 characters.
    keys[].fingerprintstringThe key's SHA256 fingerprint, as ssh-keygen -l shows it.
    keys[].added_atstring (date-time)
    last_login_atstring (date-time) or null
    last_file_atstring (date-time) or nullWhen the last file dropped on the account was taken.
    created_atstring (date-time)

    Errors

    Errors
    HTTP statusCodeWhat it means
    401UNAUTHORIZEDA valid API key is required. Send it as "Authorization: Bearer <key>".
    403PERMISSION_DENIEDThis API key is not allowed to do that.
    404NOT_FOUNDNot found.
    422INVALID_REQUESTThe request is not valid.
    429TOO_MANY_REQUESTSToo many requests of this kind lately. Wait, then try again.
    504TIMEOUTThe request took too long. Send it again with the same Idempotency-Key and body after Retry-After seconds: a 409 means it is still finishing (wait and send again), and any other answer is final. If this 504 comes back, find what the request made by listing with ?idempotency_key=<the key>.
    500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

    Example

    Example request

    Shell
    curl "https://app.myclaimhouse.com/api/v1/sftp-account" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY"

    Example response: 200

    JSON
    {
      "id": "sftp_01JM000000E00800000000008G",
      "object": "sftp_account",
      "status": "active",
      "username": "example-dental-group",
      "host": "sftp.example.com",
      "port": 22,
      "host_key_fingerprint": "SHA256:3rJq0nX1m2Yw8dVf5uQ7bT9kLz4cE6hA1sPoGvNxYdI",
      "folders": {
        "test": {
          "in": "TEST/IN",
          "out": "TEST/OUT"
        },
        "live": {
          "in": "IN",
          "out": "OUT"
        }
      },
      "keys": [
        {
          "id": "sfk_01JM000000E00800000000008H",
          "object": "sftp_key",
          "label": "Billing server",
          "fingerprint": "SHA256:Nn0vBzE3Lx9sT2kqYw7dPfH5cRj8uAm1GoVtXiQ4eZs",
          "added_at": "2026-09-24T15:05:00+00:00"
        }
      ],
      "last_login_at": "2026-09-24T21:00:00+00:00",
      "last_file_at": "2026-09-24T21:01:00+00:00",
      "created_at": "2026-09-24T15:00:00+00:00"
    }