Watch the same steps in the Polytomic admin console in this demo video.
Set your Polytomic API key as an environment variable:
This example covers three steps:
The following request creates an Airtable Connection. See the Airtable connection configuration for the required fields.
Airtable Connections authenticate with OAuth. Open the URL returned in the auth_url field of the response to complete the flow.
By default, the API expects auth_url to open in a new browser window.
Set the optional redirect_url parameter in the request body to change
the redirect target.
The following request creates a Postgres Connection. See the Postgres connection configuration for the required fields.
The PostgreSQL server must be reachable from Polytomic over the network.
The following request creates a Stripe Connection. See the Stripe connection configuration for the required fields.
The following request creates a HubSpot Connection. See the HubSpot connection configuration for the required fields.
HubSpot Connections authenticate with OAuth. Open the URL returned in the auth_url field of the response to complete the flow.
By default, the API expects the auth_url to be open in a new browser window. If you’d like to modify the redirect behavior, there is an optional redirect_url parameter that can be added to the request body.
The following request creates a User Details model over the Postgres users table:
The following request creates a Customers model from Stripe, joined to User Details on the email field:
The following request creates a Stars Data model from Airtable, joined to User Details on the email field:
The following request creates a Model Sync that loads the joined data into HubSpot: