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

# Get Campaign SFTP Config

> Retrieve a campaign's SFTP integration configuration

# Get Campaign SFTP Config

Retrieve the SFTP integration configuration for a campaign. Campaign SFTP lets you import contact lists from a remote SFTP server and export call results back.

## Endpoint

```
GET /api/v1/campaigns/{campaign_id}/sftp
```

## Path parameters

<ParamField path="campaign_id" type="string" required>Campaign UUID.</ParamField>

## Request headers

<ParamField header="Authorization" type="string" required>
  Bearer token. Format: `Bearer talq_your_environment_token_here`
</ParamField>

## Examples

<RequestExample>
  ```bash theme={null}
  curl "https://app.talkover.ai/api/v1/campaigns/campaign-uuid/sftp" \
    -H "Authorization: Bearer talq_your_environment_token_here"
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "id": "sftp-config-uuid-1",
      "campaign_id": "campaign-uuid",
      "host": "sftp.example.com",
      "port": 22,
      "username": "campaigns_user",
      "auth_type": "password",
      "import_path": "/inbox",
      "export_path": "/outbox",
      "import_schedule": "daily",
      "is_enabled": false,
      "last_test_at": "2024-01-10T14:30:00Z",
      "last_test_success": true,
      "created_at": "2024-01-01T10:00:00Z"
    }
  }
  ```
</ResponseExample>

## Notes

* The configured `password` or `private_key` is never returned.
* A new SFTP config starts disabled — run [Test SFTP Connection](/api-reference/endpoints/test-campaign-sftp-connection) successfully before enabling it.
