Syndai Docs

List next-task offers

GET
/api/v1/external/coding/backlog

List the top open next-task offers on the tenant's active repositories: a completed run's own evidence-cited next steps (suggested, listed for 14 days), open pre-existing findings (finding), follow-up marks (follow_up) and evidence-backed Google search moves (seo, listed for 28 days after the weekly scan last re-saw them), bug-scan findings (bug_scan) and Project Home chat cards (chat, listed only to the signed-in person who asked for them; never to an API key). Pass source to list one source only (the SEO tab asks for seo so its moves are not crowded out by limit; source=seo lists Google moves only, each with its seo facts). source in the response is an open string: tolerate values you do not know. Ranked server-side by priority then recency, with at most one finding and one bug_scan unless fewer than limit other offers exist. Offers never run on their own: start one by sending its id as backlog_task_id on POST /runs. A group's parts are not listed here: GET /backlog/groups lists each group once.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Query Parameters

customer_id?|null
coding_repository_id?|null
limit?integer
Range1 <= value <= 20
Default3
source?|
Value in"suggested""finding""follow_up""seo""bug_scan""chat""goal""roadmap"null

Response Body

Request fulfilled, document follows

application/json
  1. response
tasks*array<>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/backlog'
Example Response
{  "tasks": [    {      "accepted_at": "2019-08-24T14:15:22Z",      "action": "string",      "added_by_syndai": false,      "coding_repository_id": "0d18edb4-5201-4374-8af8-14fdbf761813",      "compile": {        "agent_month_usd": 0,        "build_usd": 0,        "fix_the_job": false,        "goal_id": "3854d9ad-4bca-4a70-a63e-7c6bc2f12aee",        "payback_months": 0,        "update_site_first": false      },      "created_at": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "link": {        "anchor": "string",        "surface": "string"      },      "price_label": "string",      "price_usd": "string",      "prompt": "string",      "reason": "string",      "repo_name": "string",      "seo": {        "impressions": 0,        "kind": "string",        "page": "string",        "queries": [          "string"        ]      },      "source": "string",      "standing": "string",      "steps": [        "string"      ],      "synthesized": false,      "title": "string"    }  ]}