---
title: "Register Build"
method: POST
path: "/agents/register-build"
tags: ["Agents"]
---

# Register Build

`POST /agents/register-build`

Register an agent at build time, before it is deployed, so it can be permissioned and shared prior to deploy. Idempotent by name.

## Request body

- RegisterBuildRequest — Request model for registering an agent at build time (pre-deploy). Unlike RegisterAgentRequest, there is no acp_url (the agent is not running yet) and no acp_type is required. The created agent is left in BUILD_ONLY status so it can be permissioned/shared before it is deployed.
  - `name` string, required — The unique name of the agent.
  - `description` string, required — The description of the agent.
  - `registration_metadata` object, nullable — The metadata for the agent's build registration.
  - `agent_input_type` 'text' | 'json'

## Response `200`

Successful Response

- Agent
  - `id` string, required — The unique identifier of the agent.
  - `name` string, required — The unique name of the agent.
  - `description` string, required — The description of the action.
  - `status` 'Ready' | 'Failed' | 'Unknown' | 'Deleted' | 'Unhealthy' | 'BuildOnly'
  - `acp_type` 'sync' | 'async' | 'agentic', required
  - `status_reason` string, nullable — The reason for the status of the action.
  - `created_at` string, date-time, required — The timestamp when the agent was created
  - `updated_at` string, date-time, required — The timestamp when the agent was last updated
  - `registration_metadata` object, nullable — The metadata for the agent's registration.
  - `registered_at` string, date-time, nullable — The timestamp when the agent was last registered
  - `agent_input_type` 'text' | 'json'
  - `production_deployment_id` string, nullable — ID of the current production deployment.

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-10** `54e49ef03dad` — 1 warning
  - removed the request property `principal_context`
- **2026-06-02** `6ddcd81c830b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/scaleapi/apis/agentex-api/changes/agents/register-build/post.md)

---

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