# Mediatailors List

API call format

GET /broker/mediatailors                  //Use token autorization
GET /broker/private/mediatailors          //Use Api Key

Description

This call gets all available mediatailors (external ads).

Precondition

  • Authorization token/Api key is needed.

Postcondition

  • On success response code should be 200
  • On success the whole JSON body of the available video mediatailors is returned with details.
  • On failure an error will be returned with the right error code and description.

Example:

[Request] GET https://<base_api_url>/broker/mediatailors
[Request] GET https://<base_api_url>/broker/private/mediatailors
[Request Headers] {"Content-Type":"application/json","Accept":"application/json","Authorization":"<IdToken>"} //Use token autorization
[Request Headers] {"Content-Type":"application/json","Accept":"application/json","X-Api-Key":"<api_key>"}     //Use Api Key

[Response] 200
[Response Headers] {"Content-Type":["application/json"],"Content-Length":["..."],"Connection":["keep-alive"],"Date":["..... GMT"],"x-amzn-RequestId":["....."],....]}
[Response] 
{
  "status": true,
  "data": [
    {
      "name": "kris",
      "guid": "504c636f-dc65-4689-820e-a989302a1a55",
      "adServer": "https://drive.google.com",
      "masterEndpoint": "https://<server>/v1/master/703a141da0a277ceca8c0fd0d72d7b1f8a57af1a/504c636f-dc65-4689-820e-a989302a1a55/"
    }
  ]
}