Skip to main content
POST
/
insight
/
team
/
export
Export team insight
curl --request POST \
  --url 'https://api.flashcat.cloud/insight/team/export?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "start_time": 1712000000,
  "end_time": 1712604800,
  "team_ids": [
    4295771902131
  ],
  "severities": [
    "Critical",
    "Warning"
  ]
}
'
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.flashcat.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Restrictions

AspectValue
Rate limits10 requests/minute; 1 requests/second per account
PermissionsAnalytics Read (on-call)

Authorizations

app_key
string
query
required

App key issued from the Flashduty console under Account → APP Keys. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Body

application/json

Insight dimension-aggregation request. Extends InsightFilter with aggregation controls.

start_time
integer<int64>
required

Start time, Unix seconds. Must be greater than 0.

end_time
integer<int64>
required

End time, Unix seconds. Must be greater than start_time.

team_ids
integer<int64>[]

Filter by team IDs. At most 100 entries.

channel_ids
integer<int64>[]

Filter by channel IDs. At most 100 entries.

responder_ids
integer<int64>[]

Filter by responder person IDs. At most 100 entries.

severities
enum<string>[]

Filter by severity. At most 3 entries.

Available options:
Critical,
Warning,
Info,
Ok
incident_ids
string[]

Filter by incident IDs (MongoDB ObjectIDs). At most 100 entries.

Pattern: ^[0-9a-fA-F]{24}$
query
string

Full-text query applied to incident title and description.

labels
object

Label filters (exact match).

fields
object

Custom-field filters (exact match).

orderby
enum<string>

Field to sort the underlying incident set by.

Available options:
created_at
asc
boolean

Sort ascending when true, descending otherwise.

is_my_team
boolean

Restrict results to teams the caller belongs to. When true and the caller has no teams, the result set is empty.

time_zone
string

IANA time zone name used to interpret the time range (e.g. Asia/Shanghai). Defaults to the account time zone.

seconds_to_close_from
integer<int64>

Lower bound (inclusive) on time-to-close, in seconds.

seconds_to_close_to
integer<int64>

Upper bound (exclusive) on time-to-close, in seconds. Must be greater than seconds_to_close_from when both are set.

seconds_to_ack_from
integer<int64>

Lower bound (inclusive) on time-to-acknowledge, in seconds.

seconds_to_ack_to
integer<int64>

Upper bound (exclusive) on time-to-acknowledge, in seconds. Must be greater than seconds_to_ack_from when both are set.

export_fields
string[]

Subset of CSV column keys to include in the export. At most 50 entries. Only used by the export endpoints.

description_html_to_text
boolean

Strip HTML markup from the description column when exporting.

split_hours
boolean

When true, metrics are split into work/sleep/off hour buckets.

aggregate_unit
enum<string>

Aggregate metrics into time buckets. When set, the time range must cover at least 24 hours; day additionally caps the range at 31 days.

Available options:
day,
week,
month

Response

Success

Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object
required

Empty response body. The server returns data: null on success.