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" => {"name" => "My Company Marketplace Listing", "short_description" => "Short description on what the Company does.", "tagline" => "My Company Subheadline", "logo_url" => "https://mycompany.com/image.png", "provider_web_url" => "https://www.sampleurl.com", "provider_name" => "My Company Name", "logo_bg_color_hex" => "#ff5722"}, "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"]}}}'
Request example
{"ModuleInfo" => {"name" => "My Company Marketplace Listing", "short_description" => "Short description on what the Company does.", "tagline" => "My Company Subheadline", "logo_url" => "https://mycompany.com/image.png", "provider_web_url" => "https://www.sampleurl.com", "provider_name" => "My Company Name", "logo_bg_color_hex" => "#ff5722"}, "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",
"description": {
"body": "aBody",
"highlights": [
{
"title": "aTitle",
"description": "aDescription"
}
],
"code_samples": [
{
"title": "aTitle",
"description": "aDescription",
"code": "aCode"
}
]
},
"support": {
"customer_support_email": "anEmail",
"customer_support_phone": "+1 888-888-8888",
"support_description": "aDescription",
"billing_email": "anEmail",
"billing_phone": "+1 888-888-8888",
"technical_email": "anEmail",
"technical_phone": "+1 888-888-8888"
},
"policies": {
"privacy": "someUrl",
"legal": "someOtherUrl"
},
"module_info": {
"tag": "Description",
"tagline": "aTagline",
"logo_url": "aUrl",
"logo_bg_color_hex": "#ff5722"
},
"documentation": {
"body": "aBody"
},
"pricing": {
"body": "Basic plan - $10/month"
},
"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"
}
}
}