DOCS / API REFERENCE

Publish an egg

POST /v1/eggs

POSTHenHouse API v1

Request

POST /v1/eggs

Authenticate with a bearer token. Create one with POST /v1/tokens or cluck login.

Parameters

NameTypeDescription
servicestringService name
tagstringArtifact tag
sha256stringArtifact digest

Example

curl -X POST https://api.pollosoft.example/v1/eggs \
  -H "Authorization: Bearer $COOP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"service": "example-service", "tag": "example-tag", "sha256": "example-sha256"}'

Response

A successful call returns 201 Created with JSON like this:

{
  "id": "egg_5e11",
  "tag": "v183",
  "signed": true,
  "status": "stored"
}

Errors

IdempotencySend an Idempotency-Key header to make retries safe. We will return the original result instead of laying a second egg.