Skip to main content

Nests

A nest is a group of eggs. These endpoints manage nests, list the eggs in a nest, and import eggs into a nest.

In every path, {nest} is the nest's numeric id.

The nest object​

{
"object": "nest",
"attributes": {
"id": 1,
"uuid": "5f1c3a2b-7d8e-4f60-9a1b-2c3d4e5f6a7b",
"author": "support@example.com",
"name": "Minecraft",
"description": "Minecraft - the classic game from Mojang.",
"created_at": "2026-11-20T14:02:11+00:00",
"updated_at": "2026-11-20T14:02:11+00:00"
}
}
AttributeTypeDescription
idintegerNest ID.
uuidstringNest UUID.
authorstringAuthor email address. Set when the nest is created and never changed.
namestringName.
descriptionstring or nullDescription.
created_atstringISO 8601 timestamp.
updated_atstringISO 8601 timestamp.

Includes: eggs (the nest's eggs, as egg objects) and servers (servers using the nest, as server objects). See includes.

List nests​

GET /api/application/nests

Admin permission: nests.read

Returns a paginated list of nests.

curl "https://panel.example.com/api/application/nests?include=eggs" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json"

Query parameters​

ParameterTypeRequiredDescription
per_pageintegerNoUp to 100. Defaults to 20. See pagination.
pageintegerNoPage number.
filter[id]stringNoPartial match on the nest ID.
filter[name]stringNoPartial match on the name.
filter[author]stringNoPartial match on the author.
sortstringNoid, name or author, optionally prefixed with -. See filtering and sorting.
includestringNoeggs, servers.

Filters are case-insensitive substring matches. A comma-separated value matches any of the values.

A per_page above 100 is rejected with 400. A per_page of 0 or less returns every nest without pagination (no meta block).

Response​

200 OK

{
"object": "list",
"data": [
{
"object": "nest",
"attributes": {
"id": 1,
"uuid": "5f1c3a2b-7d8e-4f60-9a1b-2c3d4e5f6a7b",
"author": "support@example.com",
"name": "Minecraft",
"description": "Minecraft - the classic game from Mojang.",
"created_at": "2026-11-20T14:02:11+00:00",
"updated_at": "2026-11-20T14:02:11+00:00"
}
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 20,
"current_page": 1,
"total_pages": 1,
"links": []
}
}
}

Get a nest​

GET /api/application/nests/{nest}

Admin permission: nests.read

Returns one nest.

Query parameters​

ParameterTypeRequiredDescription
includestringNoeggs, servers.

Response​

200 OK

A nest object.

List eggs in a nest​

GET /api/application/nests/{nest}/eggs

Admin permission: eggs.read

Returns a paginated list of the eggs in the nest.

Query parameters​

ParameterTypeRequiredDescription
per_pageintegerNoUp to 100. Defaults to 50. See pagination.
pageintegerNoPage number.
filter[id]stringNoPartial match on the egg ID.
filter[name]stringNoPartial match on the name.
filter[author]stringNoPartial match on the author.
sortstringNoid, name or author, optionally prefixed with -.
includestringNoconfig, nest, script, servers, variables. See eggs.

As with list nests, a per_page above 100 is rejected with 400, and a per_page of 0 or less returns every egg in the nest without pagination.

Response​

200 OK

A list of egg objects with meta.pagination.

{
"object": "list",
"data": [
{
"object": "egg",
"attributes": {
"id": 3,
"uuid": "9e0a7b5c-3d2f-4a18-8b6c-1d2e3f4a5b6c",
"name": "Paper",
"nest_id": 1,
"...": "see the egg object"
}
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 50,
"current_page": 1,
"total_pages": 1,
"links": []
}
}
}

Create a nest​

POST /api/application/nests

Admin permission: nests.create

Creates a nest. Logs the activity event admin:nests:create.

Request body​

JSON body.

FieldTypeRequiredDescription
namestringYesUp to 191 characters.
descriptionstringNoCan be null.
authorstringNoMust be a valid email address. Can be null. If missing or null, the author is the APP_SERVICE_AUTHOR value from the Panel's .env file (default unknown@unknown.com).

Response​

200 OK (not 201)

A nest object.

Import an egg​

POST /api/application/nests/{nest}/import

Admin permission: eggs.import

Creates a new egg in the nest from an egg export file. It always creates a new egg, even if an egg with the same name or UUID exists. The new egg gets a new UUID. Logs the activity event admin:nests:import.

Request body​

The raw egg file is the request body. It is not a multipart upload and not wrapped in a JSON field. Set the Content-Type header to say which format it is:

Content-Type starts withBody is parsed as
application/jsonJSON
application/yamlYAML

Any other content type, or no Content-Type header, is rejected with 400 and the detail unknown content type.

curl -X POST "https://panel.example.com/api/application/nests/1/import" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data-binary @egg-paper.json

The parsed document must have meta.version set to PTDL_v1 or PTDL_v2. The Panel reads these keys:

KeyStored as
nameEgg name.
authorEgg author. Must be a valid email address.
descriptionDescription.
featuresFeatures.
docker_imagesDocker images. For PTDL_v1 files, built from images (or the single image) instead, as an object mapping each image to itself.
file_denylistFile denylist. Empty entries are removed.
meta.update_urlUpdate URL.
config.filesConfiguration files. A JSON string.
config.startupStartup detection. A JSON string.
config.stopStop command.
startupStartup command.
scripts.installation.scriptInstall script.
scripts.installation.entrypointInstall script entrypoint.
scripts.installation.containerInstall script container image.
variablesOne egg variable is created per entry. Each entry's keys are written to the variable as is (field_type is dropped). PTDL_v1 files must include variables.

The egg is checked against the egg model's rules when it is saved: name, author (an email), docker_images (at least one), startup, config.files, config.startup and config.stop are all needed, and config.files and config.startup must be valid JSON strings. A file exported with export an egg meets these rules.

Response​

200 OK

The new egg, reloaded from the database, as an egg object.

Errors​

StatusWhen
400The document is not an object, or meta.version is missing or not PTDL_v1/PTDL_v2. detail is The JSON file provided is not in a format that can be recognized.
400The YAML could not be parsed. detail is There was an error while attempting to parse the YAML: <parser message>.
400The JSON could not be parsed. This is caught before the controller runs; see request headers.
500The egg or one of its variables failed the model's validation rules (code is DataValidationException), or a variable entry contains a key that is not a column. Nothing is saved.

Update a nest​

PATCH /api/application/nests/{nest}

Admin permission: nests.update

Updates a nest's name and description. Logs the activity event admin:nests:update, with the raw request body in the new_data property.

Request body​

JSON body. name is required even though the method is PATCH.

FieldTypeRequiredDescription
namestringYesUp to 191 characters.
descriptionstringNoCan be null.
authorstringNoIf sent, must be a valid email address or null. Ignored: a nest's author cannot be changed.

Response​

200 OK

The updated nest object.

Delete a nest​

DELETE /api/application/nests/{nest}

Admin permission: nests.delete

Deletes a nest. Its eggs, and their variables, are deleted with it by the database. Logs the activity event admin:nests:delete.

Response​

204 No Content

Errors​

StatusWhen
400A server uses the nest. detail is A Nest with active servers attached to it cannot be deleted from the Panel.