Skip to content
Pickcell
Menu

Developers

Connect your systems to Pickcell

Call the API over HTTPS with a token from your API key, and get signed webhooks when something happens in your account.

What you can build

How the products connect

Your app calls a product's API. When something changes, the product publishes an event to Pickcell events, which delivers it to the endpoint you registered. Choose a product to see both sides.

Showing Messaging

Messaging

Your app calls

  • POST /v1/messaging/messages
  • POST /v1/messaging/campaigns
  • POST /v1/lists/{listId}/contacts

Some events to your endpoint

  • message.queued
  • message.sent
  • message.delivered
  • message.bounced
  • contact.verified
  • contact.unsubscribed
Read the Messaging guide

Authentication

  1. 1The account owner creates an API key in the console under Identity & Access, API keys, with roles for the products it will call. The key is shown once.
  2. 2Your server exchanges the key for a short-lived access token, naming your account address in the x-original-host header.
  3. 3Send the token as Authorization: Bearer <token> on every call. There is no refresh token: when it expires, exchange the key again.

Examples use https://api.pickcell.io.

Exchange a key for a token
curl -X POST https://api.pickcell.io/v1/auth/key-exchange \
  -H "content-type: application/json" \
  -H "x-original-host: <your account address>" \
  -d '{"key": "<your API key>"}'
const res = await fetch('https://api.pickcell.io/v1/auth/key-exchange', {
  method: 'POST',
  headers: {
    'content-type': 'application/json',
    'x-original-host': process.env.PICKCELL_ACCOUNT_ADDRESS,
  },
  body: JSON.stringify({ key: process.env.PICKCELL_API_KEY }),
});
const { accessToken } = await res.json();
import { Pickcell } from '@pickcell/sdk/pickcell';

// The client exchanges the key on its first call, and again
// when the token is within a minute of expiring.
const pickcell = new Pickcell({
  baseUrl: 'https://api.pickcell.io',
  apiKey: process.env.PICKCELL_API_KEY,
  accountIdentifier: process.env.PICKCELL_ACCOUNT_ADDRESS, // sent as x-original-host
});

Guides

Ready to build?

Create an account, then make your first API key in the console.