Skip to main content
GET
/
projects
/
{projectId}
/
intelligence
/
what-works
Get what-works recommendations
curl --request GET \
  --url https://devtune.ai/api/v2/projects/{projectId}/intelligence/what-works \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "recommendations": [
      {
        "recommendation": "<string>",
        "channel": "<string>",
        "sampleSize": 123,
        "avgImpactScore": 123,
        "avgMeasuredEffect": 123,
        "lastCorrelatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "hasCorrelatedData": true,
    "emptyState": {
      "message": "<string>",
      "requirements": [
        "<string>"
      ],
      "counts": {
        "markedInterventions": 123,
        "correlatedInterventions": 123,
        "recentEligibleCorrelations": 123
      }
    },
    "window": {
      "days": 123,
      "dateFrom": "2023-12-25",
      "dateTo": "2023-12-25"
    }
  },
  "meta": {
    "timestamp": "2023-11-07T05:31:56Z",
    "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.devtune.ai/llms.txt

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

Authorizations

Authorization
string
header
required

API key with dtk_live_ prefix. Obtain it from API Keys in the account sidebar. New keys start with all supported scopes selected for the chosen project, and you can narrow them to specific read/write scopes as needed.

Path Parameters

projectId
string<uuid>
required

Query Parameters

windowDays
enum<integer>
default:30

Fixed rolling window in days. Supported values are 30 and 90. Defaults to 30.

Available options:
30,
90
limit
integer
default:5
Required range: 1 <= x <= 20

Response

What-works recommendations

data
object
meta
object