Upload

Method: POST
URL: https://www.wellcomemat.com/api/media/upload.php

Notes:

  1. You can use media or media_url in the request BODY. For a direct upload, use media. For a file hosted elsewhere, use media_url.

  2. To upload a video to a specific user’s account contained under the main account’s key, use user_id (recommended for Individual integrators) or unique_id (recommended for MLS integrators).

  3. To replace a video, specify either customid or hash in the request BODY, along with #1. At this time, no other fields are accepted when replacing.

  4. Global distribution is not enabled for API uploads at this time.

Parameters

KeyTypeDescription
keytext{{key}}
secrettext{{secret}}
mediafileThis field or media_url is required.
media_urltextPublicly accessible video URL. This field or media is required.
video_typetextSelect a video categorization that best describes the video you are uploading. WellcomeMat uses this information for better search engine placement and to better organize videos within your account. Video types also determine the distribution options that are available to you for each kind of video. Must be a valid type id
user_idtextThis is WellcomeMat’s internal ID for users of our system.
unique_idtextThis is an ID assigned to users externally from WellcomeMat (Example: agent, member or associate IDs)
default_statetextMedia Activation Status. Sets this video to active or inactive when finished encoding, overriding the Default Video State in Global Videos Settings. Videos must be active before they can be seen on your channel or search engines.
  • Boolean: 1 or 0
  • Indicates that video is a active or inactive.
  • To change a video state after it is encoded use activate and deactivate.
titletext[Limit 100 characters]
descriptiontext[Limit 1500 characters]
keywordstextComma separated by keyword or phrase. Limit 10 keywords(“tags”) or phrases. Suggested Limit 63 characters (including commas)
customidtextCustom/Listing ID
external_link_urltextAdd a link to another location here so viewers can click through to more information about this video. [Limit 256 characters]
external_link_nametextLinks themselves are often not descriptive enough to entice people to click through. The words you enter here will instigate viewers to click through to another web location where they can find more information about your video. [Limit 256 characters]
slideshowtextBased on hundreds of thousands of videos in the WellcomeMat database, we know that full motion videos are exactly twice as engaging (on average) as slideshows and animations. Please mark slideshows and animations properly so that we can better inform your content strategies and allow you to correctly integrate different forms of content on your website(s).
  • Boolean: 1 or 0
  • Indicates that video is a slideshow or animation. We use this for distribution and statistics
bedroomstext[Integer or Decimal]
bathroomstext[Integer or Decimal]
pricetext[Integer or Decimal]
addresstext[Limit 100 characters]
citytext[Limit 50 characters]
statetext[Limit 50 characters]
postal_codetext[Limit 12 characters]
disable_emailtextDisable Email Notification
  • Boolean: 1 or 0 (defaults to 0)
  • Turns off the email a user receives when a video has finished encoding
distributetextDistribute to Service
  • Distributes to services configured by Connected Services
  • Options: youtube, facebook_page
  • Separate multiple services with a comma
default_phototextDefault Photo
  • Set the poster image that shows when your video loads
  • Accepts an image upload or publicly accessible image URL that has been URL encoded.
  • Will take effect after video has encoded
callback_locationtextCallback Location URL
When the video file has been received, the media object will be pushed to this URL. NOTE: This is the only callback parameter that is usable on the Embedded Uploader Tool. We expect a 200 response back from the server handshake. The following GET parameters will be appended to the URL: success, error, media, and key.

Example Callback: https://yourdomain.com/uploaded-location.php?success=1&media={MediaObject}&error=&key=yourKey
callback_uploadedtextRedirect URL
The API will redirect the client to this URL upon upload completion. NOTE: If you use callback_uploaded, you cannot use callback_location as callback_uploaded sends a redirect which ends execution. The following GET parameters will be appended to the URL:

success
error
hash
key

Example Callback: https://yourdomain.com/uploaded-callback.php?success=1&hash=abc123def&error=&key=youKey
callback_processedtextProcessed Callback URL
When the video has been processed, this URL will be called. The following GET parameters will be appended to the URL:

hash
status_code

Example Callback: https://yourdomain.com/processed-callback.php?hash=abc123def&status_code=400

Response

type MediaUploadResponse = {
    success: 0 | 1;
    error: string;
    warnings: string | string[];
    frontendMessages: string[];
    medias: Media[];
};