Intuitive, RESTful, and Built for Developers

curl

node

ruby

python

php

              curl https://api.lob.com/v1/postcards \
-u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: \
-d "name=My First Postcard" \
-d "to[name]=Joe Smith" \
-d "to[address_line1]=123 Main Street" \
-d "to[address_city]=Mountain View" \
-d "to[address_state]=CA" \
-d "to[address_zip]=94041" \
-d "front=<html style='font-size: 50;'>Front HTML</html>" \
-d "back=https://lob.com/postcardback.pdf"
            
              Lob.postcards.create({
  name: 'My First Postcard',
  to: {
    name: 'Joe Smith',
    address_line1: '123 Main Street',
    address_city: 'Mountain View',
    address_state: 'CA',
    address_zip: '94041'
  },
  front: '<html style="font-size: 50;">Front HTML</html>',
  back: 'https://lob.com/postcardback.pdf'
}, function (err, res) {
  console.log(err, res);
});
            
              @Lob.postcards.create(
  name: "My First Postcard",
  to: {
    name: "Joe Smith",
    address_line1: "123 Main Street",
    city: "Mountain View",
    state: "CA",
    zip: 94041
  },
  front: "<html style='font-size: 50;'>Front HTML</html>",
  back: "https://lob.com/postcardback.pdf"
)
            
              Lob.Postcard.create(
    name = 'My First Postcard',
    to_address = {
        'name': 'Joe Smith',
        'address_line1': '123 Main Street',
        'address_city': 'Mountain View',
        'address_state': 'CA',
        'address_zip': '94041',
    },
    front = '<html style="font-size: 50;">Front HTML</html>',
    back = 'https://lob.com/postcardback.pdf'
)
            
              $Lob->postcards()->create(array(
  'name'    => 'My First Postcard',
  'to'      => array(
    'name'          => 'Joe Smith',
    'address_line1' => '123 Main Street',
    'address_city'  => 'Mountain View',
    'address_state' => 'CA',
    'address_zip'   => '94041',
  ),
  'front'   => '<html style="font-size: 50;">Front HTML</html>',
  'back'    => 'https://lob.com/postcardback.pdf'
));
              
            

INTEGRATION IS EASY


Send a transactional postcard through a simple REST API.

We built Lob with developers in mind and offer wrappers in Node, Ruby, Python, PHP, Java, and iOS to help you get started in minutes.


READ DOCS

Built With Your Business in Mind

No Hassle and Easy-to-use Service that Just Works

Simple Pricing

On demand access, pay-as-you-go pricing, no minimums

Clear Docs

Get up and running in minutes with clean documentation

Read Docs >

Secure & Safe

Bank-grade security with PCI and HIPAA compliance

Reliable Support

Lightning-fast support directly from our engineers

Contact Us >