API Documentation

    Integrate PostcardMe's services into your own applications.

    Our RESTful API gives you programmatic access to PostcardMe's functionality, allowing you to create, customize, and send postcards directly from your own applications.

    Getting Started

    Base URL

    https://api.postcardme.com/v1

    All API requests should be made to this base URL.

    Authentication

    Authentication to the API is performed via HTTP Bearer Authentication. All API requests must include your API key in the Authorization header:

    Authorization: Bearer YOUR_API_KEY

    Creating a Postcard

    Send a POST request to create and send a new postcard.

    POST/postcards

    Request Body

    {
      "front_image_url": "https://example.com/image.jpg",
      "message": "Hello from Paris! The weather is beautiful.",
      "recipient": {
        "name": "John Doe",
        "address_line1": "123 Main St",
        "address_line2": "Apt 4B",
        "city": "New York",
        "state": "NY",
        "postal_code": "10001",
        "country": "US"
      },
      "size": "standard",
      "shipping_level": "priority"
    }

    Response

    {
      "id": "pcd_12345678",
      "status": "processing",
      "estimated_delivery_date": "2025-04-25",
      "tracking_url": "https://postcardme.com/track/pcd_12345678"
    }

    Example Request

    curl -X POST https://api.postcardme.com/v1/postcards \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "front_image_url": "https://example.com/image.jpg",
        "message": "Hello from Paris! The weather is beautiful.",
        "recipient": {
          "name": "John Doe",
          "address_line1": "123 Main St",
          "address_line2": "Apt 4B",
          "city": "New York",
          "state": "NY",
          "postal_code": "10001",
          "country": "US"
        },
        "size": "standard",
        "shipping_level": "priority"
      }'

    Rate Limits and Usage

    PlanRate LimitDaily QuotaMonthly Quota
    Developer10 requests/minute500 requests5,000 requests
    Business30 requests/minute2,000 requests25,000 requests
    Enterprise100 requests/minute10,000 requestsUnlimited

    Support

    If you have any questions or need assistance with our API, please contact our developer support team.