Skip to content
Listener.comDevelopers

Meta

API root, the OpenAPI document and the calling credential's workspace.

API root

GET/v1
No auth

Version, links and the docs URL. No authentication.

Returns

200

OK

  • objectanyrequired
  • namestringrequired
  • versionstringrequired
    The latest API version (Listener-Version).
  • versionsarray of stringsrequired
    Every supported API version.
  • server_versionstring
    The deployed build (git sha).
  • docs_urlstring (uri)
  • openapi_urlstring (uri)
  • linksmap of string (uri)

Errors

400parameter_invalid404resource_not_found429rate_limited500internal_error

OpenAPI document

GET/v1/openapi.json
No auth

This API as an OpenAPI 3.1 document. No authentication.

Returns

200

OK

An OpenAPI 3.1 document.

Errors

400parameter_invalid404resource_not_found429rate_limited500internal_error

Retrieve the workspace and credential

GET/v1/me

The workspace this credential resolves to: identity, kind (network, subnetwork or solo), plan, every show (id, name, handle, public URL, categories, connected platforms), missing_show_ids (shows the workspace points at that no longer exist; excluded everywhere), team and subnetwork counts, integrations summary and per-platform data freshness, plus the calling credential (type, id, label, scopes, OAuth client).

Start here: the show ids every other endpoint accepts come from this response or GET /v1/shows. Solo workspaces return one show; subnetworks report parent_network_uid.

Sent with X-Listener-Workspace (a network credential naming one of its subnetworks), the response describes the request as it ran: shows and the counts cover that subnetwork only, and note names the subnetwork it worked in.

SDKlistener.me.retrieve()client.me.retrieve()

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own. GET /v1/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.

Returns

200

OK

  • objectstringrequired
  • idstringrequired
    The workspace id (the network, subnetwork or show account).
  • kindstringrequired
    network | subnetwork | solo (one show) | brand (an advertiser a publisher invited: no shows, read-only, sees shared campaigns).
    One ofnetworksubnetworksolobrand
  • network_namestringrequired
  • planstringrequired
  • showsarray of objectsrequired
    Show child attributesHide child attributes
  • show_countintegerrequired
  • team_sizeintegerrequired
  • subnetwork_countintegerrequired
  • computed_atstring (date-time)required
  • cache_age_secondsnumberrequired
  • credentialobjectrequired
    Show child attributesHide child attributes
  • account_typestring
    'brand' for a brand account; every network, subnetwork and show account is 'publisher'.
    One ofpublisherbrand

    Default "publisher"

  • network_handlestringnullable
  • network_logostringnullable
  • missing_show_idsarray of strings
    managedKits entries with no users/ doc; excluded from shows.
  • campaign_countintegernullable
    Campaigns the workspace runs; for a brand account, the campaigns publishers shared with it.
  • publishersarray of objectsnullable
    Brand accounts only: the publishers that shared campaigns with this brand.
    Show child attributesHide child attributes
  • integrations_summarymap of integer
    platform → number of shows with that platform connected or holding data.
  • data_freshnessmap of object
    platform → oldest freshness across shows.
    Show child attributesHide child attributes
  • stale_platformsarray of strings
  • network_default_emvobjectnullable
  • public_urlstring (uri)nullable
  • app_urlstring (uri)nullable
  • notestringnullable
  • parent_network_idstringnullable

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error