---
title: "Create Remote Server Credential"
method: POST
path: "/remote_server_credentials"
tags: ["remote_server_credentials", "Remote Server Credentials"]
---

# Create Remote Server Credential

`POST /remote_server_credentials`

Create Remote Server Credential

## Response `201`

The RemoteServerCredentials object.

- RemoteServerCredentialEntity — RemoteServerCredentialEntity model
  - `id` integer — Remote Server Credential ID
  - `workspace_id` integer — Workspace ID (0 for default workspace)
  - `name` string — Internal name for your reference
  - `description` string — Internal description for your reference
  - `server_type` 'ftp' | 'sftp' | 's3' | 'google_cloud_storage' | 'webdav' | 'wasabi' | 'backblaze_b2' | 'one_drive' | 'box' | 'dropbox' | 'google_drive' | 'azure' | 'sharepoint' | 's3_compatible' | 'azure_files' | 'files_agent' | 'filebase' | 'cloudflare' | 'linode' | 'files_com' — Remote server type. Remote Server Credentials are only valid for a single type of Remote Server.
  - `aws_access_key` string — AWS Access Key.
  - `s3_assume_role_arn` string — AWS IAM Role ARN for AssumeRole authentication.
  - `s3_assume_role_duration_seconds` integer — Session duration in seconds for AssumeRole authentication (900-43200).
  - `s3_assume_role_external_id` string — External ID for AssumeRole authentication.
  - `google_cloud_storage_s3_compatible_access_key` string — Google Cloud Storage: S3-compatible Access Key.
  - `wasabi_access_key` string — Wasabi: Access Key.
  - `s3_compatible_access_key` string — S3-compatible: Access Key
  - `filebase_access_key` string — Filebase: Access Key.
  - `cloudflare_access_key` string — Cloudflare: Access Key.
  - `linode_access_key` string — Linode: Access Key
  - `sharepoint_tenant_id` string — SharePoint: Microsoft Entra tenant ID for app-only authentication.
  - `sharepoint_client_id` string — SharePoint: Microsoft Entra application client ID for app-only authentication.
  - `sharepoint_app_credential_type` string — SharePoint: App-only credential type. Either secret or certificate.
  - `username` string — Remote server username.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `409` — Conflict
- `412` — Precondition Failed
- `422` — Unprocessable Entity
- `423` — Locked
- `429` — Too Many Requests

---

[API](https://skmtc.net/files/apis/files-com-api.md) · [All operations](https://skmtc.net/files/apis/files-com-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/files/files-com-api/revisions/c6d6f57e6da8/schema)
