---
title: "Update agent status (Agent Token)"
method: POST
path: "/agent/status"
tags: ["Agent"]
---

# Update agent status (Agent Token)

`POST /agent/status`

Receives status updates from agents including drift detection and errors. Authenticated via agent token.

## Request body

- PkgServerAgentStatusPayload
  - `agent_version` string
  - `commit_hash` string
  - `drift_details` GithubComPullbasePullbaseServerPkgModelsDriftDetails
    - `files` GithubComPullbasePullbaseServerPkgModelsDriftItem[]
      - `actual` string
      - `expected` string
      - `message` string
      - `name` string
      - `type` string
    - `packages` GithubComPullbasePullbaseServerPkgModelsDriftItem[]
      - `actual` string
      - `expected` string
      - `message` string
      - `name` string
      - `type` string
    - `services` GithubComPullbasePullbaseServerPkgModelsDriftItem[]
      - `actual` string
      - `expected` string
      - `message` string
      - `name` string
      - `type` string
    - `summary` string
  - `error_message` string
  - `is_drifted` boolean
  - `status` string

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/pullbase/apis/untitled-api.md) · [All operations](https://skmtc.dev/pullbase/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pullbase/untitled-api/revisions/edf8355bf78c/schema)
