◆ Sapport for developers API reference Error catalog OpenAPI
Sections

Dashboards

Methods in this section: 2. All methods

MethodPathDescriptionScopesStatus
GET/dashboards/overviewThe Overview dashboarddashboards:readAvailable
GET/dashboards/pulseThe Pulse dashboarddashboards:readAvailable
GET /dashboards/overview Available

#The Overview dashboard

A slice of the Overview screen: up to eleven blocks, each with its own availability (ok, no_data, no_source, not_connected) and data date. A source failure never becomes an empty block: the answer is 503.

Scopes
dashboards:read
Rate limit
read
Idempotency
not required
Successful response
200 The requested blocks in screen order.

Parameters

FieldTypeDescription
fromstring
optional
In: query. Start of the period, inclusive. Format YYYY-MM-DD.
tostring
optional
In: query. End of the period, inclusive; not later than the last full day (a later value is clamped and echoed in the response). Format YYYY-MM-DD.
blocksstring
optional
In: query. Blocks, comma-separated; all by default: strategist, kpi, funnel, attention, ads, ai_assistants, popular_pages, clusters, data_trust, sitemap_health, status.

Response body

FieldTypeDescription
dataobject
required
data.fromstring
required
Date YYYY-MM-DD.
data.tostring
required
Date YYYY-MM-DD.
data.blocksobject
required
data.blocks.strategistobject
optional
data.blocks.strategist.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.strategist.reasonstring
optional
data.blocks.strategist.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.kpiobject
optional
data.blocks.kpi.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.kpi.reasonstring
optional
data.blocks.kpi.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.funnelobject
optional
data.blocks.funnel.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.funnel.reasonstring
optional
data.blocks.funnel.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.attentionobject
optional
data.blocks.attention.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.attention.reasonstring
optional
data.blocks.attention.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.adsobject
optional
data.blocks.ads.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.ads.reasonstring
optional
data.blocks.ads.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.ai_assistantsobject
optional
data.blocks.ai_assistants.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.ai_assistants.reasonstring
optional
data.blocks.ai_assistants.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.popular_pagesobject
optional
data.blocks.popular_pages.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.popular_pages.reasonstring
optional
data.blocks.popular_pages.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.clustersobject
optional
data.blocks.clusters.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.clusters.reasonstring
optional
data.blocks.clusters.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.data_trustobject
optional
data.blocks.data_trust.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.data_trust.reasonstring
optional
data.blocks.data_trust.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.sitemap_healthobject
optional
data.blocks.sitemap_health.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.sitemap_health.reasonstring
optional
data.blocks.sitemap_health.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.
data.blocks.statusobject
optional
data.blocks.status.availabilitystring
required

Values: ok no_data no_source not_connected
data.blocks.status.reasonstring
optional
data.blocks.status.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.

Examples

Request
curl -X GET 'https://wfacademy.org/api/public/v1/dashboards/overview' \
  -H 'Authorization: Bearer '"$SAPPORT_API_KEY"
Response 200
{
  "data": {
    "from": "string",
    "to": "string",
    "blocks": {
      "strategist": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "kpi": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "funnel": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "attention": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "ads": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "ai_assistants": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "popular_pages": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "clusters": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "data_trust": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "sitemap_health": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      },
      "status": {
        "availability": "ok",
        "reason": "string",
        "data_as_of": {}
      }
    }
  }
}
Error example
{
  "type": "https://wfacademy.org/developers/errors#scope_missing",
  "title": "Scope is missing",
  "status": 403,
  "code": "scope_missing",
  "detail": "EXAMPLE",
  "request_id": "req_EXAMPLE"
}

Examples are illustrative: the key in them is a placeholder (EXAMPLE), field values are made up.

Possible errors

invalid_api_key wrong_cell integration_inactive tenant_inactive ip_not_allowed feature_not_in_plan rate_limited wallet_suspended service_unavailable internal_error scope_missing validation_failed

GET /dashboards/pulse Available

#The Pulse dashboard

Pulse findings: demand topics that started to grow, with signal sources and the linked strategist queue topic.

Scopes
dashboards:read
Rate limit
read
Idempotency
not required
Successful response
200 Findings of the period.

Parameters

FieldTypeDescription
fromstring
optional
In: query. Start of the period, inclusive. Format YYYY-MM-DD.
tostring
optional
In: query. End of the period, inclusive; not later than the last full day (a later value is clamped and echoed in the response). Format YYYY-MM-DD.

Response body

FieldTypeDescription
dataobject
required
data.periodobject
required
data.period.fromstring
required
Date YYYY-MM-DD.
data.period.tostring
required
Date YYYY-MM-DD.
data.new_7dinteger
required
data.truncatedboolean
required
data.alertsarray<PulseAlert>
required
data.data_as_ofobject
required
Source → the date up to which its data is complete. A source with no data is not listed.

Examples

Request
curl -X GET 'https://wfacademy.org/api/public/v1/dashboards/pulse' \
  -H 'Authorization: Bearer '"$SAPPORT_API_KEY"
Response 200
{
  "data": {
    "period": {
      "from": "string",
      "to": "string"
    },
    "new_7d": 0,
    "truncated": false,
    "alerts": [
      {
        "id": null,
        "topic_id": null,
        "topic_name": null,
        "keyword": null,
        "horizon": null,
        "status": null,
        "episode_start": null,
        "last_seen": null,
        "score": null,
        "volume": null,
        "growth": null,
        "sources": null,
        "strategist_topic": null
      }
    ],
    "data_as_of": {}
  }
}
Error example
{
  "type": "https://wfacademy.org/developers/errors#scope_missing",
  "title": "Scope is missing",
  "status": 403,
  "code": "scope_missing",
  "detail": "EXAMPLE",
  "request_id": "req_EXAMPLE"
}

Examples are illustrative: the key in them is a placeholder (EXAMPLE), field values are made up.

Possible errors

invalid_api_key wrong_cell integration_inactive tenant_inactive ip_not_allowed feature_not_in_plan rate_limited wallet_suspended service_unavailable internal_error scope_missing validation_failed