Couchdrop Knowledge Base
Couchdrop HomepageDevelopersLogin
  • Welcome
  • Features
    • SFTP Server
      • Storage
      • Users
      • How to connect
      • Enabling FTPs
      • Host key authentication
    • Transfer Automations
      • Creating an Automation
      • Supported Actions
      • Variables
      • Troubleshooting
    • Shared Links
    • Upload Links
    • Inbound Mailboxes
    • Inbound Webhooks
    • File Actions
    • Inbound AS2 Stations
  • Administration
    • Users and Groups
      • User Roles
      • Creating Users
      • The Root Directory
      • Passwords and RSA Keys
      • Features Access
      • Firewalls and ACLs
    • Storage Connections
      • SharePoint
      • Azure Files
      • Amazon S3
      • Google Workspace
      • Google Drive
      • Box
      • Dropbox
      • Egnyte
      • Outbound AS2
      • External SFTP Server
      • Windows / Mac File Server
        • Server Requirements
        • Proxy Configuration
        • Non-GUI Environments
        • Running the Couchdrop Agent as a Service
        • Logging and Debugging
      • Others
        • OneDrive
        • Azure Blob
    • Folder Permissions
    • Alerting and Notifications
    • Custom Domains
    • SSO and Single Sign-on
      • SAML SSO
      • SCIM - Azure
      • SCIM - Okta
    • Security
      • Password Policies
      • Account Lockout
      • Account expiry
      • Two Factor Authentication
    • Other
      • Static IPs
      • Malware Scanning
  • Walkthroughs
    • Using SFTP Clients
      • OpenSSH SFTP
      • How to use SFTP with Cyberduck
      • How to use SFTP with FileZilla
      • Using SFTP with Golang
      • Using Python with SFTP
      • Using SFTP with Java
      • Using SFTP with Bash
      • Using SCP
    • SFTP To SharePoint
    • SFTP to Azure Files
    • Automated file transfers to SharePoint
    • Email Inboxes with Couchdrop
    • Delegating Domain-Wide Authority in Google Workspace
  • Other
    • FAQs
    • Trust/Security Center
    • Login to Couchdrop
    • API Documentation
Powered by GitBook

Couchdrop

  • Homepage
  • Register
  • Login

Platform

  • Cloud SFTP Server
  • Cloud FTP Server
  • Automated Transfers
  • Mailboxes and Inboxes

Copyright Couchdrop Limited 2025

On this page
  • Example 1: Upload via CURL
  • Example 2: Upload with Python using a stream
  • Example 3: Upload JSON data to a file

Was this helpful?

Export as PDF
  1. Features

Inbound Webhooks

Couchdrop supports data ingestion via webhooks.

Example 1: Upload via CURL

To upload via curl:

curl -v -F content=@CHRIS.txt 
-H "Authorization: Bearer <token>" 
https://my.couchdrop.io/webhook/0479ae21-a677-49bb-9937-d5841b3b9ed1

Example 2: Upload with Python using a stream

import requests

binary_file_path = "/Users/donald/testing/trophy.jpg"
webhook_id = "<webhook_id>"
token = "<token>"

with open(binary_file_path, 'rb') as f:
 data = f.read()
    
 res = requests.post(
     url='https://my.couchdrop.io/webhook/' + webhook_id, data=data,
     headers={
      'filename': 'trophy_webhook.jpg', 
      'Content-Type': 'application/octet-stream', 
      'Authorization': 'Bearer ' + token
     })

Example 3: Upload JSON data to a file

curl -H "Filename: json_test_file.json" 
-H "Content-Type: application/json" 
-XPOST https://my.couchdrop.io/webhook/0479ae21-a677-49bb-9937-d5841b3b9ed1 
-d '{"id": "dasflk34masd", "event": "purchase", "customer": "testaccount"}'
PreviousInbound MailboxesNextFile Actions

Last updated 2 months ago

Was this helpful?