ReportsGet an insight

Get an insight

Needs: Reports, Read

Returns one insight: its settings as a spec (what create and edit accept), its link, its spaces, and its results (value, grouped rows and cells) when the server can calculate them. Otherwise it says why not.

Note: Settings made in Imploy that a spec cannot express are listed as set_in_imploy. The results shape depends on the visualization, so only the common keys are shown.

curl -X GET "https://app.imploy.com.au/api/integrations/v1/reports/insights/123?include_results=true" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "id": 31,
  "name": "Hours by week",
  "spec": {
    "source": "appointments",
    "metric": "hours::sum",
    "visualization": "bar",
    "group_by": "week",
    "date_range": {
      "preset": "3m"
    }
  },
  "results": {
    "available": true,
    "value": 480.5,
    "rows": [
      "..."
    ]
  }
}
GET
/reports/insights/{id}
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
path
idinteger
Required

The insight id.

query
include_resultsboolean

Include results. Defaults to true.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Path Parameters

idinteger
Required

The insight id.

Query Parameters

include_resultsboolean

Include results. Defaults to true.

Responses

OK