curl -X POST "https://app.talkover.ai/api/v1/campaigns/campaign-uuid/sftp" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{
"host": "sftp.example.com",
"port": 22,
"username": "campaigns_user",
"auth_type": "password",
"password": "secret",
"import_path": "/inbox",
"export_path": "/outbox",
"import_schedule": "daily"
}'
{
"success": true,
"data": {
"id": "sftp-config-uuid-1",
"campaign_id": "campaign-uuid",
"host": "sftp.example.com",
"is_enabled": false,
"created_at": "2024-01-15T16:00:00Z"
}
}
SFTP de Campanha
Criar Configuração SFTP da Campanha
Configurar integração SFTP para uma campanha
POST
/
api
/
v1
/
campaigns
/
{campaign_id}
/
sftp
curl -X POST "https://app.talkover.ai/api/v1/campaigns/campaign-uuid/sftp" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{
"host": "sftp.example.com",
"port": 22,
"username": "campaigns_user",
"auth_type": "password",
"password": "secret",
"import_path": "/inbox",
"export_path": "/outbox",
"import_schedule": "daily"
}'
{
"success": true,
"data": {
"id": "sftp-config-uuid-1",
"campaign_id": "campaign-uuid",
"host": "sftp.example.com",
"is_enabled": false,
"created_at": "2024-01-15T16:00:00Z"
}
}
Criar Configuração SFTP da Campanha
Configura a integração SFTP para uma campanha. A configuração é criada no estadodisabled — teste a conexão com sucesso antes de habilitar.
Endpoint
POST /api/v1/campaigns/{campaign_id}/sftp
Parâmetros de caminho
Cabeçalhos da requisição
Corpo da requisição
Exemplos
curl -X POST "https://app.talkover.ai/api/v1/campaigns/campaign-uuid/sftp" \
-H "Authorization: Bearer talq_your_environment_token_here" \
-H "Content-Type: application/json" \
-d '{
"host": "sftp.example.com",
"port": 22,
"username": "campaigns_user",
"auth_type": "password",
"password": "secret",
"import_path": "/inbox",
"export_path": "/outbox",
"import_schedule": "daily"
}'
Resposta
{
"success": true,
"data": {
"id": "sftp-config-uuid-1",
"campaign_id": "campaign-uuid",
"host": "sftp.example.com",
"is_enabled": false,
"created_at": "2024-01-15T16:00:00Z"
}
}
Esta página foi útil?