The Marketplace API provides resources for users to browse, install, and manage Listings. Listing Partners can use Marketplace API resources to retrieve and update Listings, and to manually report customer usage.
All relative URLs in the Marketplace API reference documentation use the following base URL:
https://marketplace.twilio.com/v1
The API is served over HTTPS. To ensure data privacy, unencrypted HTTP isn't supported. All responses are in JSON format.
The Marketplace API uses the same HTTP Basic Authentication as other Twilio APIs. Use your Twilio account SID as your username and your Auth Token as your password.
The following table lists some common scenarios along with associated HTTP response codes, Twilio Debugger notifications, and messages that the Marketplace API returns.
HTTP response code | Debugger notification | Description |
---|---|---|
404 | Warning | The Add-on isn't installed on the customer account or no Listing is found with the Installation SID. |
403 | Warning | The Account Sid in the API request doesn't match with the Partner Account Sid attached to the Add-on. |
403 | Warning | The Add-on isn't set up to accept Manual Usage Reporting. |
403 | Warning | The Add-on isn't in one of the Marketing Preview, Private Beta, or Active state. |
400 | Warning | Quantity is either null, empty, or 0. |
500 | Error | Error received while generating a billing event. |
202 | N/A | The request is successful, and a billing event is generated. |
The Marketplace API includes the following resources for Marketplace Listing publishers:
Resource | Description |
---|---|
Listing | Get or update published Marketplace Listings. |
Installed Add-ons Usages | Manually report customer usage for your own published Listings. |