---
title: "Track Agent Sub Task"
method: POST
path: "/protocol/agent-sub-tasks"
tags: ["Protocol - Access"]
---

# Track Agent Sub Task

`POST /protocol/agent-sub-tasks`

## Request

- Base URL: `https://api.sandbox.nevermined.app/api/v1`
- URL: `https://api.sandbox.nevermined.app/api/v1/protocol/agent-sub-tasks`
- Auth: HTTP bearer

Records task completion and credit consumption for complex agent workflows.

## Request body

- TrackSubTaskRequest
  - `requestId` string
  - `taskName` string
  - `creditsUsed` integer
  - `status` string
  - `metadata` object

## Response `200`

Task tracked

- SuccessResponse
  - `success` boolean

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/nevermined/apis/nevermined-api.md) · [All operations](https://skmtc.dev/nevermined/apis/nevermined-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nevermined/apis/nevermined-api/revisions/cabbe618c80b?raw)
