---
title: "Find out how the last build of an app instance went."
method: GET
path: "/agents/{id}/build"
tags: ["Agents"]
---

# Find out how the last build of an app instance went.

`GET /agents/{id}/build`

## Request

- Base URL: `https://agentspodium.com/api`
- URL: `https://agentspodium.com/api/agents/{id}/build`
- Auth: HTTP bearer

Call after creating or rebuilding an app: the pod can be alive and still serving the previous version while a new build fails. `logTail` carries the reason.

## Path parameters

- `id` string, required

## Response `200`

OK.

- object
  - `build` BuildStatus, required
    - `state` 'building' | 'ok' | 'failed' | 'unknown', required
    - `commit` string, nullable
    - `startedAt` string, date-time, nullable
    - `finishedAt` string, date-time, nullable
    - `logTail` string, nullable: Last lines of the build log.

## Other responses

- `400`: The instance is not an app.
- `401`: Missing or invalid token.
- `404`: Not your agent.

---

[API](https://skmtc.dev/defispace/apis/agentspodium-account-api-agent-facing-subset.md) · [All operations](https://skmtc.dev/defispace/apis/agentspodium-account-api-agent-facing-subset/llms.txt) · [OpenAPI document](https://skmtc.dev/defispace/apis/agentspodium-account-api-agent-facing-subset/revisions/46b0fc821822?raw)
