Skip to Content
zued

Strategy

Actions, page wins, new pages, briefs and the Changes log, with writes for status, assignee and comments.

GET
/recommendations

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

scope?|null
status?|null
page?|

Only the recommendations of this page.

limit?Limit
Range1 <= value <= 200
Default50
cursor?Cursor
Range0 <= value
Default0

Header Parameters

Zued-Project?|

The project this request reads, by id. Needed with an account key (from sign-in by link); a project key reads its own project and ignores it. GET /v1/projects lists the ids.

Response Body

Successful Response

application/json
  1. response
recommendations*array<>
total*Total
has_more*Has More
next_cursor*integer|null
Example Request
curl -X GET 'https://api.zued.ai/v1/recommendations'
Example Response
{  "recommendations": [    {      "id": "string",      "scope": "project",      "page": {        "id": "string",        "url": "string"      },      "title": "string",      "description": "string",      "steps": [        "string"      ],      "category": "string",      "effort": "string",      "impact": "string",      "priority_score": 0,      "priority": "string",      "engines": [        "string"      ],      "evidence": [        "string"      ],      "urls": [        "string"      ],      "pattern": {        "kind": "string",        "description": "string",        "pages": 0,        "example_urls": [          "string"        ],        "recommendation": "string"      },      "status": "open",      "reason": "string",      "published_url": "string",      "assignee": {        "id": "string",        "name": "string",        "email": "string"      },      "comments": [        {          "id": "string",          "author": {            "id": "string",            "name": "string",            "email": "string"          },          "body": "string",          "created_at": "string"        }      ],      "first_seen_at": "string",      "decided_at": "string",      "outcome": {        "figures": {          "property1": {            "before": 0,            "after": 0,            "delta": 0          },          "property2": {            "before": 0,            "after": 0,            "delta": 0          }        },        "pages_named": 0,        "pages_measured": 0,        "pages_changed": 0,        "snapshots_since": 0,        "pages": [          {            "url": "string",            "change_seen": "before_done",            "change_week": "string",            "words": 0,            "baseline_week": "string",            "latest_week": "string",            "snapshots_since": 0,            "figures": {              "property1": {                "before": 0,                "after": 0,                "delta": 0              },              "property2": {                "before": 0,                "after": 0,                "delta": 0              }            }          }        ]      },      "generated_at": "string"    }  ],  "total": 0,  "has_more": true,  "next_cursor": 0}
GET
/changes

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

weeks?Weeks

How many of the newest completed weeks to return.

Range1 <= value <= 52
Default12

Header Parameters

Zued-Project?|

The project this request reads, by id. Needed with an account key (from sign-in by link); a project key reads its own project and ignores it. GET /v1/projects lists the ids.

Response Body

Successful Response

application/json
  1. response
definitions*
weeks*array<>

Newest week first.

snapshots_total*Snapshots Total

Completed weeks the project has. 1 means no earlier week to compare with, which an empty list does not tell.

Example Request
curl -X GET 'https://api.zued.ai/v1/changes'
Example Response
{  "definitions": {    "property1": {      "meaning": "string",      "url": "string"    },    "property2": {      "meaning": "string",      "url": "string"    }  },  "weeks": [    {      "snapshot_id": "string",      "week": "string",      "pages_tracked": 0,      "pages_changed": 0,      "pages_unverifiable": 0,      "changes": [        {          "page_id": "string",          "url": "string",          "kind": "changed",          "words": 0,          "figures": {            "property1": {              "before": 0,              "after": 0,              "delta": 0            },            "property2": {              "before": 0,              "after": 0,              "delta": 0            }          },          "snapshots_since": 0,          "done_actions": [            {              "id": "string",              "title": "string",              "decided_at": "string"            }          ]        }      ]    }  ],  "snapshots_total": 0}
GET
/strategy

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

Zued-Project?|

The project this request reads, by id. Needed with an account key (from sign-in by link); a project key reads its own project and ignores it. GET /v1/projects lists the ids.

Response Body

Successful Response

application/json
  1. response
generated_at*|

Null before the project's first strategy run.

summary*string|null
patterns*array<>
roadmap*

The work in four phases: immediate_actions (this week), short_term_goals (2 to 4 weeks), medium_term_initiatives (1 to 3 months), long_term_vision (3 to 6 months).

new_pages*array<>
Example Request
curl -X GET 'https://api.zued.ai/v1/strategy'
Example Response
{  "generated_at": "string",  "summary": "string",  "patterns": [    {      "kind": "string",      "description": "string",      "pages": 0,      "example_urls": [        "string"      ],      "recommendation": "string"    }  ],  "roadmap": {    "property1": [      {        "text": "string",        "action_id": "string",        "new_page": "string"      }    ],    "property2": [      {        "text": "string",        "action_id": "string",        "new_page": "string"      }    ]  },  "new_pages": [    {      "id": "string",      "topic": "string",      "rationale": "string",      "audience": "string",      "sections": [        "string"      ],      "evidence": [        "string"      ],      "link_from": [        "string"      ],      "type": "string",      "priority": "string"    }  ]}
GET
/pages/{page_id}/brief

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

page_id*Page Id
Formatuuid

Header Parameters

Zued-Project?|

The project this request reads, by id. Needed with an account key (from sign-in by link); a project key reads its own project and ignores it. GET /v1/projects lists the ids.

Response Body

Successful Response

application/json
  1. response
page*
generated_at*string|null
brief*|

Null when the page has no strategy yet, or its strategy holds no brief.

Example Request
curl -X GET 'https://api.zued.ai/v1/pages/497f6eca-6276-4993-bfeb-53cbbbba6f08/brief'
Example Response
{  "page": {    "id": "string",    "url": "string"  },  "generated_at": "string",  "brief": {    "page_type": "string",    "topic": "string",    "audiences": [      "string"    ],    "opening": {      "clear": true,      "current": "string",      "missing": [        "string"      ],      "suggested": "string"    },    "add": [      {        "heading": "string",        "placement": "string",        "what_to_cover": [          "string"        ],        "format": "string",        "why": "string",        "evidence_needed": [          "string"        ],        "words": 0,        "example_sentences": [          "string"        ]      }    ],    "rewrite": [      {        "heading": "string",        "problem": "string",        "direction": "string",        "evidence_needed": [          "string"        ]      }    ],    "move": [      {        "heading": "string",        "problem": "string",        "action": "string"      }    ],    "freshness": {      "last_updated": "string",      "outdated": [        "string"      ],      "priority": "string"    }  }}
GET
/briefs

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

limit?Limit
Range1 <= value <= 200
Default50
cursor?Cursor
Range0 <= value
Default0

Header Parameters

Zued-Project?|

The project this request reads, by id. Needed with an account key (from sign-in by link); a project key reads its own project and ignores it. GET /v1/projects lists the ids.

Response Body

Successful Response

application/json
  1. response
briefs*array<>

Newest first.

total*Total
has_more*Has More
next_cursor*integer|null
Example Request
curl -X GET 'https://api.zued.ai/v1/briefs'
Example Response
{  "briefs": [    {      "id": "string",      "created_at": "string",      "engines": [        "string"      ],      "questions_read": 0,      "answers_read": 0,      "working_title": "string",      "question": "string",      "criteria": [        "string"      ],      "recurring_claims": [        "string"      ],      "who_wins_and_why": [        "string"      ],      "rewarded_formats": [        "string"      ],      "sections": [        {          "heading": "string",          "what_to_cover": "string",          "why": "string",          "grounded": true        }      ],      "what_would_make_it_win": "string",      "published_url": "string",      "published_at": "string",      "page_id": "string"    }  ],  "total": 0,  "has_more": true,  "next_cursor": 0}
PATCH
/recommendations/{action_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

action_id*Action Id

Header Parameters

Zued-Project?|

The project this request reads, by id. Needed with an account key (from sign-in by link); a project key reads its own project and ignores it. GET /v1/projects lists the ids.

Request Body

application/json
  1. body
status*Status
Value in"open""done""parked"
reason?|

Why it is parked or done. Needed with status parked. Opening it again clears it.

note?|null
published_url?|

For a new page marked done: the address it went live at. Kept on a done recommendation only.

Response Body

Successful Response

application/json
  1. response
id*Id
status*Status
Value in"open""done""parked"
reason*string|null
note*string|null
published_url*string|null
decided_at*string|null
Example Request
curl -X PATCH 'https://api.zued.ai/v1/recommendations/string' \  -H 'Content-Type: application/json' \  -d '{  "status": "open"}'
Example Response
{  "id": "string",  "status": "open",  "reason": "string",  "note": "string",  "published_url": "string",  "decided_at": "string"}
PATCH
/recommendations/{action_id}/assignee

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

action_id*Action Id

Header Parameters

Zued-Project?|

The project this request reads, by id. Needed with an account key (from sign-in by link); a project key reads its own project and ignores it. GET /v1/projects lists the ids.

Request Body

application/json
  1. body
assignee_id*|

A member's id, as GET /v1/project lists them. Null takes the assignment away.

Response Body

Successful Response

application/json
  1. response
id*Id
assignee*|null
Example Request
curl -X PATCH 'https://api.zued.ai/v1/recommendations/string/assignee' \  -H 'Content-Type: application/json' \  -d '{  "assignee_id": "e209ca2d-190b-4818-b659-67d4ef4f1ce8"}'
Example Response
{  "id": "string",  "assignee": {    "id": "string",    "name": "string",    "email": "string"  }}
POST
/recommendations/{action_id}/comments

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

action_id*Action Id

Header Parameters

Zued-Project?|

The project this request reads, by id. Needed with an account key (from sign-in by link); a project key reads its own project and ignores it. GET /v1/projects lists the ids.

Request Body

application/json
  1. body
body*Body
Length1 <= length <= 2000

Response Body

Successful Response

application/json
  1. response
id*Id
author*|

Null when the author's account was deleted.

body*Body
created_at*Created At
Example Request
curl -X POST 'https://api.zued.ai/v1/recommendations/string/comments' \  -H 'Content-Type: application/json' \  -d '{  "body": "string"}'
Example Response
{  "id": "string",  "author": {    "id": "string",    "name": "string",    "email": "string"  },  "body": "string",  "created_at": "string"}