Sample Census Custom API Endpoints

You should have the following integration endpoints available on this server.

Name Description Endpoint URL
minimal An endpoint that stubs every method but doesn't push data https://census-custom-api-samples.netlify.app/.netlify/functions/minimal
canny A basic integration with canny.io that upserts users https://census-custom-api-samples.netlify.app/.netlify/functions/canny?census_secret=YOUR_SECRET
postgres A basic integration that can write into PostgreSQL databases https://census-custom-api-samples.netlify.app/.netlify/functions/postgres

Installation & Testing Instructions

These functions are currently deployed and waiting to be connected in Census.

Note: In order to use Canny, you need to add a shared secret for authentication (CENSUS_SECRET) as well as your Canny API Key (CANNY_API_KEY) as environment variables

  1. Login to Census at app.getcensus.com
  2. Click on the Connections tab
  3. Click on Add Service and select Custom API
  4. Paste the appropriate endpoint URL of the custom API
  5. Replace YOUR_SECRET with a secret you generate and save

Notes for PostgreSQL Connection

The code for a custom connector doesn't embed any credentials for accessing your destination database. There's a few ways to provide these credentials when building your own connectors (see our docs). In this basic setup, you should add credentials to the environment using Netlify's site settings

How to Debug

The folks at Netlify provide an easy way to access the log of how lambda functions execute. For example, this page shows the log for the minimal endpoint.