---
title: "Register an external Docker image"
method: POST
path: "/projects/{project_id}/external-images"
tags: ["External Images"]
---

# Register an external Docker image

`POST /projects/{project_id}/external-images`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/external-images`
- Auth: HTTP bearer

Registers an external Docker image reference without triggering a deployment.
The image can be deployed later using the deploy/image endpoint.

## Path parameters

- `project_id` integer, required

## Request body

- RegisterImageRequest
  - `digest` string, nullable: Image digest (sha256:...)
  - `image_ref` string, required: Docker image reference (e.g., "ghcr.io/org/app:v1.0")
  - `metadata` unknown
  - `tag` string, nullable: Image tag

## Response `201`

Image registered successfully

- ExternalImageResponse
  - `created_at` string, date-time, required
  - `digest` string, nullable
  - `id` integer, required
  - `image_ref` string, required
  - `metadata` unknown
  - `project_id` integer, required
  - `pushed_at` string, date-time, required
  - `size_bytes` integer, nullable
  - `tag` string, nullable

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Project not found
- `500`: Internal server error

## Changes

- **2026-07-01** `d83dcb738585`: 1 info
  - api tag `External Images` added
- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/external-images/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
