Creates a new postcard object

POST {{baseUrl}}/postcards

Creates a new postcard given information

Request Params

KeyDatatypeRequiredDescription
idempotency_keynull(optional)

Request Body

[{"name"=>"description", "value"=>"Sample Postcard", "datatype"=>"string"}, {"name"=>"to", "value"=>"adr_58088d858a815c66", "datatype"=>"string"}, {"name"=>"from", "value"=>"", "datatype"=>"null"}, {"name"=>"billing_group_id", "value"=>"", "datatype"=>"null"}, {"name"=>"send_date", "value"=>"2021-06-01", "datatype"=>"string"}, {"name"=>"front", "value"=>"<html><body><h1>Hello World</h1></body></html>", "datatype"=>"string"}, {"name"=>"back", "value"=>"<html><body><h1>Goodbye</h1></body></html>", "datatype"=>"string"}, {"name"=>"size", "value"=>"4x6", "datatype"=>"string"}, {"name"=>"mail_type", "value"=>"usps_first_class", "datatype"=>"string"}, {"name"=>"merge_variables", "value"=>"{\"name\": \"Harry\"}", "datatype"=>"string"}, {"name"=>"metadata", "value"=>"{\"customer_id\": \"987654\"}", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Idempotency-KeystringA string of no longer than 256 characters that uniquely identifies this resource. For more help integrating idempotency keys, refer to our implementation guide.
Content-Typestring

RESPONSES

status: OK

{&quot;id&quot;:&quot;psc_208e45e48d271294&quot;,&quot;description&quot;:null,&quot;metadata&quot;:{},&quot;to&quot;:{&quot;id&quot;:&quot;adr_210a8d4b0b76d77b&quot;,&quot;description&quot;:null,&quot;name&quot;:null,&quot;company&quot;:&quot;LOB&quot;,&quot;phone&quot;:null,&quot;email&quot;:null,&quot;address_line1&quot;:&quot;185 BERRY ST STE 6100&quot;,&quot;address_line2&quot;:null,&quot;address_city&quot;:&quot;SAN FRANCISCO&quot;,&quot;address_state&quot;:&quot;CA&quot;,&quot;address_zip&quot;:&quot;94107-1741&quot;,&quot;address_country&quot;:&quot;UNITED STATES&quot;,&quot;metadata&quot;:{},&quot;date_created&quot;:&quot;2018-12-08T03:01:07.651Z&quot;,&quot;date_modified&quot;:&quot;2018-12-08T03:01:07.651Z&quot;,&quot;object&quot;:&quot;address&quot;},&quot;url&quot;:&quot;https://lob-assets.com/postcards/psc_208e45e48d271294.pdf?version=v1\u0026expires=1619218302\u0026signature=NfHHLBSr5tOHA_Z4kij4dKqZG8f3vMDtwvuFVeeF9pV_lylcjLsVVODhNCE5hR6-2slUr6t9WMNsi429Pj7_DA&quot;,&quot;carrier&quot;:&quot;USPS&quot;,&quot;front_template_id&quot;:null,&quot;back_template_id&quot;:null,&quot;front_template_version_id&quot;:null,&quot;back_template_version_id&quot;:null,&quot;date_created&quot;:&quot;2021-03-24T22:51:42.838Z&quot;,&quot;date_modified&quot;:&quot;2021-03-24T22:51:42.838Z&quot;,&quot;send_date&quot;:&quot;2021-03-24T22:51:42.838Z&quot;,&quot;object&quot;:&quot;postcard&quot;}