Insights
Analytics and recommendations
All endpoints require a bearer token (oh_... API key or user JWT) and are served under https://api.orderly-hub.com. Use the Try it consoles to run a request against the Preview (test) server.
Ask a natural language question about insights
POST
/api/v1/insights/askRequest body
| Field | Type | Description |
|---|---|---|
query | string | |
context | object |
{
"query": "string",
"context": {}
}
Responses
200 Insight answer
POST
/api/v1/insights/askAsk a natural language question about insights
https://api-test.orderly-hub.com/api/v1/insights/askGet carrier performance metrics
GET
/api/v1/insights/carriers/performanceParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
days | query | no | integer |
Responses
200 Carrier performance data
GET
/api/v1/insights/carriers/performanceGet carrier performance metrics
https://api-test.orderly-hub.com/api/v1/insights/carriers/performanceGenerate insights for an operation or organization
POST
/api/v1/insights/generateRequest body
| Field | Type | Description |
|---|---|---|
operationId | string | |
scope | operation | organization | orders | |
orderIds | array | |
types | array |
{
"operationId": "550e8400-e29b-41d4-a716-446655440000",
"scope": "operation",
"orderIds": [
"string"
],
"types": [
"string"
]
}
Responses
200 Generated insights
POST
/api/v1/insights/generateGenerate insights for an operation or organization
https://api-test.orderly-hub.com/api/v1/insights/generateGet operation insights summary
GET
/api/v1/insights/operations/{operationId}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
operationId | path | yes | string |
Responses
200 Operation insights summary
GET
/api/v1/insights/operations/{operationId}Get operation insights summary
https://api-test.orderly-hub.com/api/v1/insights/operations/Acknowledge, resolve, or dismiss an insight
POST
/api/v1/insights/{insightId}/acknowledgeParameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
insightId | path | yes | string |
Request body
| Field | Type | Description |
|---|---|---|
action | acknowledge | resolve | dismiss | |
note | string |
{
"action": "acknowledge",
"note": "string"
}
Responses
200 Insight acknowledged
POST
/api/v1/insights/{insightId}/acknowledgeAcknowledge, resolve, or dismiss an insight
https://api-test.orderly-hub.com/api/v1/insights//acknowledge