Browse sources$ls -a sources
Logo of gmail
Gmail
Access your users' email data for streamlined communication
Sync your customers' dataFiber pulls data from your customers' Gmail accounts into your database or cloud storage. Skip months of integration work and begin syncing in minutes.
Logo of gmail
Logo of gmail
Logo of gmail
Logo of gmail
Logo of gmail
Logo of gmail
Logo of gmail
Logo of gmail
Logo of gmail
Logo of gmail
Fiber
postgres-prod
gmail_messages
Your customers' Gmail accounts
Your production database
Meet your new integration toolkit: SQLReplace calls to the Gmail API with an interface you already use. Access the data you need straight from your database.
-- Fetch all the Messages belonging to the Gmail
-- account of a particular user.

SELECT *
FROM fiber.gmail_message
WHERE account_id = '{user.gmail_id}'
-- Fetch all the Messages belonging to the Gmail
-- account of a particular user.

SELECT *
FROM fiber.gmail_message
WHERE account_id = '{user.gmail_id}'
Code
CREATE TABLE fiber.gmail_message (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
date TIMESTAMP WITH TIME ZONE,
from TEXT,
to TEXT,
headers JSONB,
subject TEXT,
thread_id TEXT,
snippet TEXT,
payload JSONB
)
CREATE TABLE fiber.gmail_message (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
date TIMESTAMP WITH TIME ZONE,
from TEXT,
to TEXT,
headers JSONB,
subject TEXT,
thread_id TEXT,
snippet TEXT,
payload JSONB
)
Model definition
About this source
Logo of gmail
GmailGoogle's free email service.gmail.com  ↗
Available resources
Missing a resource? We will build it for you.
Similar integrations
OAuth
Need help with OAuth for Gmail?Handshake ↗ is a Next.js app boilerplate that handles your OAuth with Gmail and over 200 other APIs. Setup and deploy within minutes.
Logo of gmailIntegrate Gmail using Fiber Fiber makes it easy to access third-party data from Gmail accounts. Get started in just a few minutes.