Tooltips
Get a tooltip
GET
/tooltips/{id}Needscontent.viewThe tooltip's working draft — every field — and what each environment serves.
Authorization
secretKeyheader
AuthorizationBearer <sk_…>A secret API key from Settings → API keys. It acts with its creator's role.
Path Parameters
id*integerThe tooltip's id.
Range
1 <= valueResponse Body
OK
application/json- response
tooltip*A tooltip with its working draft. What visitors see is the version in publication.
Shell
curl -X GET 'https://app.cueston.com/api/tooltips/1'Example Response
JSON
{
"tooltip": {
"id": 42,
"name": "Onboarding tour",
"urlPattern": "https://app.acme.com/*",
"selector": "#export-button",
"isActive": true,
"triggerType": "click",
"dismissType": "button",
"iconType": "pulse_dot",
"iconEdge": "left",
"iconOffset": -500,
"iconOffsetY": -500,
"iconSize": 8,
"iconColor": "string",
"cardOffsetY": -500,
"title": "Welcome to Acme",
"body": "Here's a quick look at where everything is.",
"imageUrl": "string",
"cardWidth": 200,
"cardPadding": 0,
"cardBorderRadius": 0,
"cardShadow": "none",
"textAlign": "left",
"cardTextColor": "string",
"cardBgColor": "string",
"showBorder": true,
"borderColor": "string",
"borderThickness": 0,
"titleSize": 10,
"bodySize": 10,
"bodyLineHeight": 1,
"buttonText": "Next",
"buttonColor": "string",
"buttonTextColor": "string",
"buttonBorderRadius": 0,
"buttonSize": "xxs",
"buttonPosition": "left",
"buttonType": "regular",
"zIndex": 0,
"delayMs": 0,
"scheduleType": "immediate",
"scheduleDate": "string",
"scheduleTime": "string",
"timezone": "string",
"forceTimezone": true,
"frequencyType": "once",
"frequencyCount": 1,
"frequencyDays": 1,
"showOnce": true,
"audienceRules": {
"enabled": false,
"matchType": "all",
"rules": [
{
"id": "string",
"attribute": "string",
"operator": "equals",
"value": "string",
"key": "string"
}
]
},
"priority": 0,
"goal": {
"type": "event",
"event": "string",
"urlPattern": "https://app.acme.com/*",
"contentRef": "string",
"withinDays": 7
},
"holdoutPercent": 0,
"createdAt": "2026-10-26T09:30:00Z",
"updatedAt": "2026-10-26T09:30:00Z",
"publication": {
"production": {
"versionId": 7,
"version": 3,
"publishedAt": "2026-10-26T09:30:00Z"
},
"staging": {
"versionId": 7,
"version": 3,
"publishedAt": "2026-10-26T09:30:00Z"
}
},
"hasUnpublishedChanges": true
}
}Create a tooltipPOST
Creates a draft tooltip. Nothing is shown to visitors until you publish it (or send `isActive: true`).
Update a tooltipPATCH
Saves changes to the working draft. Fields you leave out keep their value; `null` clears a nullable field. If it's live, visitors keep seeing the published version until you publish again. `PUT` is accepted as an alias.