Syndai Docs

List workspace agents

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/coding/customers/{customer_id}/goals

Every project's agents (standing goals) in the workspace; project narrows to one, finished lists the ended ones. Owners and admins.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid

Query Parameters

project?|null
finished?boolean
Defaultfalse

Response Body

Request fulfilled, document follows

application/json
  1. response
goals*array<>
month_spend_usd*number
projects*array<>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/goals'
Example Response
{  "goals": [    {      "capabilities": [        {          "badge": "string",          "custom_tool_id": "ee324563-c6f2-47e0-b512-683b3bbc5b59",          "kind": "string",          "name": "string",          "needs_connect": false,          "reason": "string",          "tool_registry_id": "b82179e0-6ccb-468f-9fd2-84eb76d99b47"        }      ],      "coding_repository_id": "0d18edb4-5201-4374-8af8-14fdbf761813",      "declared": [        {          "effect": "string",          "rule": "allow",          "title": "string",          "tool": "string"        }      ],      "ends_at": "string",      "ends_when_done": false,      "finished_at": "string",      "finished_summary": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "instruction": "string",      "last_fire_started_at": "string",      "last_fire_summary": "string",      "mandate": {        "bounds": {          "limits": [            "string"          ],          "max_monthly_usd": 0,          "max_term_months": 0,          "may_cancel": false,          "min_saving_usd": 0        },        "captcha_max_tasks": 0,        "channel": "string",        "counterparties": {          "domains": [            "string"          ],          "emails": [            "string"          ],          "phones": [            "string"          ],          "sites": [            "string"          ]        },        "estimate_usd": [          0,          0        ],        "owner_phone_masked": "string",        "pack": [          {            "label": "string",            "value_masked": "string"          }        ]      },      "monthly_budget_usd": 0,      "next_fire_at": "string",      "no_op_count": 0,      "pause_reason": "string",      "program_job": "string",      "run_spend_usd": 0,      "scored_on": "string",      "shared_with_admins": false,      "spend_usd": 0,      "status": "active",      "subscription_share": {        "account_label": "string",        "final": true,        "overage": true,        "pct": 0,        "provider": "string",        "window": "string"      },      "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",      "title": "string",      "trigger": {        "expr": "stringstr",        "kind": "cron",        "timezone": "string"      },      "trigger_label": "string",      "waiting_for_credits": false,      "watch_address": "string"    }  ],  "month_spend_usd": 0,  "projects": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    }  ]}
Was this page helpful?