Skip to content

Get a factory agent

View .md
GET

Fetch a single factory agent fully rendered: the function files to scaffold (an index.ts that declares the agent with defineAgent and its skills with defineTool) plus the secrets it needs. This is what npx zavudev agents pull <id> writes to disk before npx zavudev deploy.

Authorization

  • Authorizationheaderrequired

    Bearer YOUR_API_KEY. Create a key in the dashboard.

Path parameters

  • templateIdstringrequired

Responses

200Rendered factory agent.
  • templateobjectrequired

    A fully rendered factory agent: the function files to scaffold plus the secrets it needs. Returned by GET /v1/agent-templates/{templateId} and consumed by npx zavudev agents pull.

    9 properties
    • idstringrequired
    • namestringrequired
    • summarystringrequired
    • categorystringrequired
      One ofsalessupportfrontDeskops
    • voicebooleanrequired
    • defaultSlugstringrequired
    • filesobject[]required
      2 properties
      • pathstringrequired
      • contentstringrequired

        File contents to write verbatim.

    • dependenciesobjectrequired

      npm dependencies for the scaffolded function.

      1 properties
      • {key}string
    • requiredSecretsobject[]required
      2 properties
      • keystringrequired
      • hintstringrequired
401Unauthorized.
  • codestringrequired
  • messagestringrequired
  • detailsobject
404Template not found.
  • codestringrequired
  • messagestringrequired
  • detailsobject