M2A Multiviewer API (v1)

Download OpenAPI specification:

Product Team: team@m2amedia.tv URL: m2amedia.tv/apis/support License: MIT

This is the API specification of the M2A Multiviewer API

events

Event endpoints of the Multiviewer API

List all events

List all events

Authorizations:
http_security_schema
query Parameters
target-account-id
required
string (Resource identifier)
Example: target-account-id=a79e10d1-bbcb-4297-a246-c3223137bbd0

The id of the owning target account

limit
integer

Specifies the maximum number of results to return in the response.

offset
string

The last evaluated page key

sortby
string

Describes how to sort the items

Responses

Response samples

Content type
application/vnd.api+json
{
  • "links": {
    },
  • "data": [
    ]
}

List all events with components

List all events with components

Authorizations:
http_security_schema
query Parameters
target-account-id
required
string (Resource identifier)
Example: target-account-id=a79e10d1-bbcb-4297-a246-c3223137bbd0

The id of the owning target account

limit
integer

Specifies the maximum number of results to return in the response.

offset
string

The last evaluated page key

sortby
string

Describes how to sort the items

Responses

Response samples

Content type
application/vnd.api+json
{
  • "links": {
    },
  • "data": [
    ]
}

Info for a specific event

Retrieves information about a specific event

Authorizations:
http_security_schema
path Parameters
event-id
required
string (Resource identifier)
Example: a79e10d1-bbcb-4297-a246-c3223137bbd0

The id of the event to retrieve or delete

query Parameters
target-account-id
required
string (Resource identifier)
Example: target-account-id=a79e10d1-bbcb-4297-a246-c3223137bbd0

The id of the owning target account

Responses

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete a specific event

Deletes a specific event

Authorizations:
http_security_schema
path Parameters
event-id
required
string (Resource identifier)
Example: a79e10d1-bbcb-4297-a246-c3223137bbd0

The id of the event to retrieve or delete

query Parameters
target-account-id
required
string (Resource identifier)
Example: target-account-id=a79e10d1-bbcb-4297-a246-c3223137bbd0

The id of the owning target account

Responses

Response samples

Content type
application/vnd.api+json
{
  • "errors": [
    ]
}

Components

Component endpoints for the Multiviewer API

Get a list of components

Get a paged list of components either:

  • for a specific target account and a specific event (with an option to filter components by type using query parameter type) Example URL for getting all type components: https://cloud.m2amedia.tv/api/multiviewer/v1/components?target-account-id=a79e10d1-bbcb-4297-a246-c3223137bbd0&event-id=6bf270e5-bac4-4193-baea-3af5663e3fa5.
  • or for a specific target account and a set of events using the comma-separated event-ids query parameter (with an option to filter components by type using query parameter type). Example URL: https://cloud.m2amedia.tv/api/multiviewer/v1/components?target-account-id=a79e10d1-bbcb-4297-a246-c3223137bbd0&event-ids=6bf270e5-bac4-4193-baea-3af5663e3fa5,6bf270e5-bac4-4193-baea-3af5663e3fa6. This is a bulk fetch and follows the partial success pattern. Up to 100 event ids may be supplied; a request exceeding this limit returns 400 Bad Request. Duplicate event ids are de-duplicated on input. The request always returns 200 OK regardless of how many ids resolve: components for resolved events appear in the top-level data array, and any event id that could not be resolved (it does not exist or has been soft-deleted) is reported as an entry in meta.errors carrying the requested id and a 404 status. Events that exist but have no components contribute no entries to data and are not reported as errors. The event-id and event-ids parameters are mutually exclusive.
  • or for a specific target account and any event with a specific component type. Example URL for getting all source components: https://cloud.m2amedia.tv/api/multiviewer/v1/components?target-account-id=a79e10d1-bbcb-4297-a246-c3223137bbd0&type=source.

Each page has 10 components by default, but page size can be specified using query parameter limit.

In order to get a specific page query parameter offset can be used. Responses for event-ids requests are not paginated, so offset and limit are ignored.

Authorizations:
http_security_schema
query Parameters
target-account-id
required
string (Resource identifier)
Example: target-account-id=a79e10d1-bbcb-4297-a246-c3223137bbd0

The id of the owning target account

event-id
string <uuid>
Example: event-id=6bf270e5-bac4-4193-baea-3af5663e3fa5

Related event id

event-ids
string
Example: event-ids=6bf270e5-bac4-4193-baea-3af5663e3fa5,6bf270e5-bac4-4193-baea-3af5663e3fa6

Comma-separated list of related event ids (maximum 100; exceeding this returns 400). Duplicates are de-duplicated. Mutually exclusive with event-id. This is a bulk fetch following the partial success pattern - the response is always 200, unresolvable ids are reported in meta.errors, and results are not paginated.

offset
string

The last evaluated page key

limit
integer

Specifies the maximum number of results to return in the response.

type
string
Enum: "source" "endpoint" "encoder"

Component type

header Parameters
Accept
string
Value: "application/vnd.api+json"

Content type (expressed as MIME types) the client is able to understand.

Responses

Response samples

Content type
application/vnd.api+json
Example
{
  • "links": {
    },
  • "data": [
    ]
}

Delete a specific component

Deletes a specific component

Authorizations:
http_security_schema
path Parameters
component-id
required
string (Resource identifier)
Example: a79e10d1-bbcb-4297-a246-c3223137bbd0

The id of the component to retrieve or delete

query Parameters
target-account-id
required
string (Resource identifier)
Example: target-account-id=a79e10d1-bbcb-4297-a246-c3223137bbd0

The id of the owning target account

Responses

Response samples

Content type
application/vnd.api+json
{
  • "errors": [
    ]
}