Skip to content
Dashboard
Theme
Theme

Retrieve the generated SFTP key of a directory source

GET /v1/directories/{dir}/source/ssh_key: Retrieve the generated SFTP key of a directory source.

View Markdown

GET /v1/directories/{dir}/source/ssh_key

The public key of the key pair generated for an sftp_csv directory. Not found until one is generated.

Scope
directories:read
Auth
Secret key (sk_…)
Since
1.0
  • dir string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

Errors share one shape; see the error code catalogue.

curl -X GET \
"https://api.ohauthcat.com/v1/directories/dir_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/source/ssh_key" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 200
{
"object": "directory_source_ssh_key",
"directory_id": "dir_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"public_key": "plan",
"fingerprint": "example_fingerprint",
"created_at": "2026-01-15T09:30:00Z"
}