Account Setup
Before you can use the API, you’ll need to create a Nightly account and get an API key.Create an account
If you don’t already have one, start by creating a Nightly account at app.nightly.sh. This registration process will guide you through the necessary steps to open an active Nightly account.Get an API key
Once your Nightly account is active, head to your settings page to find your API key. You’ll need this key to authenticate your API requests.Use the API
Now that you have a Nightly account, you can start using the API to create buckets and receive data.Create a Bucket
We’ll start by using cURL, but you can also use our libraries to access the Nightly API. In Nightly, a Bucket is an SFTP server that you control. You can create as many buckets as you need to receive data from your customers. Before making your first API request, you need to make sure cURL is installed:Don’t forget to replace
API_KEY_GOES_HERE with your API key from the
settings page.Create a User
Now that you have a bucket, you can create a user to access it.Don’t forget to replace
API_KEY_GOES_HERE with your API key from the
settings page and
BUCKET_ID_FROM_PREVIOUS_STEP with the id from the previous JSON response.Access Your Bucket
Finally, you can use any SFTP client to access your bucket. At Nightly, we’re big fans of Transmit, but you can use any SFTP client you like. You can also use the command line:What’s Next
Congratulations! You’ve successfully set up your first SFTP bucket. Here are some more resources to help you dig deeper:Pipelines
Transform received data using a pipeline before sending it to your
application
EdTech Guides
Learn how EdTech startups use Nightly to move upmarket and support more
district requirements
FinTech Guides
Learn how FinTech startups use Nightly to build pipelines for their
transaction data (and more!)
Libraries
Use our open-source libraries to integrate with Nightly inside of your
backend application