DOCS / API REFERENCE

Create a coop

POST /v1/coops

POSTHenHouse API v1

Request

POST /v1/coops

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

Parameters

NameTypeDescription
namestringUnique coop name
regionstringHome region, such as us-east-1
replicasintegerOptional replica count

Example

curl -X POST https://api.pollosoft.example/v1/coops \
  -H "Authorization: Bearer $COOP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "example-name", "region": "example-region", "replicas": 10}'

Response

A successful call returns 201 Created with JSON like this:

{
  "id": "coop_c914",
  "name": "staging",
  "region": "eu-west-1",
  "status": "hatching"
}

Errors

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