DoPost
Developers

An API built for serious volume

A REST API and real-time webhooks for posting from your own systems and syncing inventory, replies and failures back.

  • REST with token auth
  • Scoped API keys
  • Real-time webhooks
Webhook events sent to your system
post.published
IKEA Malm dresser is live in San Francisco
9:02 AM
reply.received
Dana K. asked about price
9:14 AM
post.failed
Oak dining table could not be posted
9:20 AM

Post programmatically, sync your inventory, and pull Insights into your own tools. The same engine that powers the dashboard is available as a clean REST API. Daily posting limits of each platform still apply.

  • Posts and listings from your own systems
  • Real-time webhooks
  • Token-based auth and scopes
  • Up to 5 attempts per job
POST /v1/posts
# Create a listing and post it
curl -X POST https://api.dopost.io/v1/posts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "2018 Honda Civic LX, 41k miles, 1 owner",
    "priceCents": 1450000,
    "photos": [
      "https://example.com/civic-1.jpg"
    ],
    "targets": [
      {
        "platform": "facebook",
        "city": "Los Angeles"
      }
    ],
    "publish": true
  }'
Auth and keys

One key per tool

A key is a password for software. Give each tool its own, so you can switch one off without touching the rest.

  • 01
    Bearer token

    Send your key in the Authorization header of every request.

  • 02
    Read only or read and change

    Choose what each key can do when you create it, and set it to expire or never expire.

  • 03
    Replace or revoke any time

    A new key is shown once. Replacing a key stops the old one at once, and revoking switches it off for good.

Endpoints

What you can call

The calls below are the same ones shown in the API page of your dashboard. Send photos as a list of web addresses in the photos field.

GET
/v1/campaigns
List campaigns
GET
/v1/insights
Basic and Advanced Insights for a period
GET
/v1/listings
List listings
POST
/v1/listings
Create a listing from photo URLs
PATCH
/v1/listings/{id}
Edit a listing, or mark it sold or ended
POST
/v1/listings/{id}/publish
Publish a draft listing. Craigslist fees need maxFeeCents
GET
/v1/messages
List buyer conversations
POST
/v1/messages/{id}/reply
Reply to a buyer in a conversation
GET
/v1/posts
List posts, newest first
POST
/v1/posts
Create a listing and publish it
DELETE
/v1/posts/{id}
Cancel a post that is not live yet
GET
/v1/tags
List the tags used on listings
POST
/v1/tags
Add a tag to a listing
POST
/v1/webhook-endpoints/{id}/test
Send a signed test event to a webhook endpoint and answer the result
Webhooks

Events sent to your system

Real-time webhooks tell your own tools when a post goes live, fails or waits, a buyer writes, a reply looks like a scam, a listing sells, or a campaign reaches its cap.

Events sent to your system
post.published
IKEA Malm dresser, white is live in San Francisco
9:02 AM
post.failed
Oak dining table could not be posted
9:20 AM
post.waiting
Camry listing goes out tomorrow at 8 AM
9:24 AM
reply.received
Dana K. asked about price
9:14 AM
scam.flagged
A reply to the iPhone listing looks like a scam
9:31 AM
listing.sold
Mid-century dresser marked sold
10:05 AM
campaign.over_budget
LA Cars, Dealer reached its cap
10:12 AM
Access

API access comes with Business

The Business plan includes the full REST API and webhooks, with up to 5,000 calls a day, so you can post from your own systems, sync inventory and pull Insights. See plans.

Build on DoPost

The API and webhooks come with the Business plan, up to 5,000 calls a day.