This endpoint creates a Listing based on the given data
This endpoint creates a Listing based on the given data.
POST
/v1/Listings
curl \
--request POST 'https://marketplace.twilio.com/v1/Listings' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'ModuleInfo=%7B%22name%22+%3D%3E+%22My+Company+Marketplace+Listing%22%2C+%22tagline%22+%3D%3E+%22My+Company+Subheadline%22%2C+%22logo_url%22+%3D%3E+%22https%3A%2F%2Fmycompany.com%2Fimage.png%22%2C+%22provider_name%22+%3D%3E+%22My+Company+Name%22%2C+%22provider_web_url%22+%3D%3E+%22https%3A%2F%2Fwww.sampleurl.com%22%2C+%22logo_bg_color_hex%22+%3D%3E+%22%23ff5722%22%2C+%22short_description%22+%3D%3E+%22Short+description+on+what+the+Company+does.%22%7D&Configuration=%7B%22buttons%22+%3D%3E+%5B%7B%22url%22+%3D%3E+%22https%3A%2F%2Fmycompanysignup.com%22%2C+%22label%22+%3D%3E+%22Setup+Account%22%2C+%22help_text%22+%3D%3E+%22Help+caption+for+the+button%22%7D%5D%2C+%22notification_configuration%22+%3D%3E+%7B%22callback_url%22+%3D%3E+%22https%3A%2F%2Fexample.com%22%2C+%22notification_events%22+%3D%3E+%5B%22module_install%22%5D%7D%7D'
Request example
{"ModuleInfo" => {"name" => "My Company Marketplace Listing", "tagline" => "My Company Subheadline", "logo_url" => "https://mycompany.com/image.png", "provider_name" => "My Company Name", "provider_web_url" => "https://www.sampleurl.com", "logo_bg_color_hex" => "#ff5722", "short_description" => "Short description on what the Company does."}, "Configuration" => {"buttons" => [{"url" => "https://mycompanysignup.com", "label" => "Setup Account", "help_text" => "Help caption for the button"}], "notification_configuration" => {"callback_url" => "https://example.com", "notification_events" => ["module_install"]}}}
Response examples (200)
{
"sid": "XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://marketplace.twilio.com/v1/Listing/XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"pricing": {
"body": "Basic plan - $10/month"
},
"support": {
"billing_email": "anEmail",
"billing_phone": "+1 888-888-8888",
"technical_email": "anEmail",
"technical_phone": "+1 888-888-8888",
"support_description": "aDescription",
"customer_support_email": "anEmail",
"customer_support_phone": "+1 888-888-8888"
},
"policies": {
"legal": "someOtherUrl",
"privacy": "someUrl"
},
"description": {
"body": "aBody",
"highlights": [
{
"title": "aTitle",
"description": "aDescription"
}
],
"code_samples": [
{
"code": "aCode",
"title": "aTitle",
"description": "aDescription"
}
]
},
"module_info": {
"tag": "Description",
"tagline": "aTagline",
"logo_url": "aUrl",
"logo_bg_color_hex": "#ff5722"
},
"configuration": {
"buttons": [
{
"url": "https://example.com",
"label": "Configurable button text",
"help_text": "The button text, url, and help text are now configurable via self service"
}
],
"notification_configuration": {
"callback_url": "https://example.com"
}
},
"documentation": {
"body": "aBody"
}
}