ConvertKit Subscriber (convertkit_subscriber_v1)

Replicate ConvertKit subscribers into a database. This is one of the only ways you can keep track of historical subscriber information with ConvertKit.

To get set up, run this code from the WebhookDB CLI:

webhookdb integrations create convertkit_subscriber_v1

Source documentation for this API: https://developers.convertkit.com/#list-subscribers

Features

Supports Webhooks
Supports Backfilling

Schema

Tables replicated from ConvertKit Subscribers have this schema. Note that the data types listed are for Postgres; when replicating to other databases, other data types maybe used.

Column Type Indexed
pk bigint  
convertkit_id bigint  
canceled_at timestamptz
created_at timestamptz
email_address text
first_name text  
last_name text  
state text  
data* jsonb  

* The data column contains the raw payload from the webhook or API. In many cases there is no canonical form, like if a webhook and API request return two different versions of the same resource. In that case we try to keep the most coherent and detailed resource.”

Table definition

This definition can also be generated through webhookdb fixture convertkit_subscriber_v1.

CREATE TABLE public.convertkit_subscriber_v1_fixture (
  pk bigserial PRIMARY KEY,
  convertkit_id bigint UNIQUE NOT NULL,
  canceled_at timestamptz,
  created_at timestamptz,
  email_address text,
  first_name text,
  last_name text,
  state text,
  data jsonb NOT NULL
);
CREATE INDEX IF NOT EXISTS svi_fixture_canceled_at_idx ON public.convertkit_subscriber_v1_fixture (canceled_at);
CREATE INDEX IF NOT EXISTS svi_fixture_created_at_idx ON public.convertkit_subscriber_v1_fixture (created_at);
CREATE INDEX IF NOT EXISTS svi_fixture_email_address_idx ON public.convertkit_subscriber_v1_fixture (email_address);