Skip to Content
Analytics boards

Create an analysis board

Permissionboards:createRetriesIdempotency-Key requiredAuthentication
POST
/analysis/boards

Creates an active board with no insights. Active board names are unique case-insensitively; archived boards do not reserve their names. Use Idempotency-Key for safe retries. A duplicate active name returns the stable 409 analysis_board_name_taken response without leaving a partial write or degrading idempotency persistence into a server error.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Header Parameters

Idempotency-Key*string

Required. Reuse the same key to retry this write safely. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
name*string

Trimmed display name. Active names are unique case-insensitively.

Length1 <= length <= 120

Response Body

Analysis board created.

application/json
  1. response

A complete analysis board. Insights are always present and ordered by position, then ID.

id*string
Formatuuid
name*string
Length1 <= length <= 120
archived_at*|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
insights*array<>
Example Request
curl -X POST 'https://api.kejue.co/v1/analysis/boards' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "insights": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "board_id": "75e8c400-2dbc-43a3-9af4-ff9e6c099385",      "name": "string",      "chart_type": "bar",      "time_range": "24h",      "bucket": "hour",      "group_by": "none",      "config": {        "queries": [          {            "name": "string",            "group_by": {              "source": "call",              "column": "string"            },            "extraction_object_id": "dd58f28a-20cf-4d0e-af7a-6fd115475937",            "column": "string",            "operation": "count",            "filters": [              {                "source": "call",                "column": "string",                "value": "string",                "op": "is_null"              }            ],            "agent_ids": [              "06fc211d-6a87-43c8-9a41-e3b40320420d"            ],            "source": "extraction"          }        ],        "formula": "string",        "group_by_2": "time",        "range_from": "2019-08-24T14:15:22Z",        "range_to": "2019-08-24T14:15:22Z",        "display": {          "series_colors": {            "property1": "string",            "property2": "string"          },          "legend": true,          "value_format": "number",          "stack_mode": "none",          "orientation": "vertical",          "goal": 0,          "lower_is_better": true        }      },      "position": 0,      "layout": {        "x": 0,        "y": 0,        "w": 1,        "h": 1      },      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ]}