Catalog
On this page
- Delete an environment
- List an environment's services
- Create a service
- List projects
- Create a project
- Get a project
- Rename or describe a project
- Delete a project and its environments
- List a project's environments
- Create an environment
- List servers
- Add a server; remote servers get a one-time join command
- Update a server's name, description, IP, or auto-prune
- Delete a server and revoke its agent certificate
- Issue a new join token for a remote server (valid for one hour)
- Refresh Docker and OS facts for a server
- All services with their project and environment
- Get a service
- Update a service
- Delete a service and its containers
- List environment variables; secret values are masked
- Set an environment variable
- Preview or save many variables from the text of a .env file
- Delete an environment variable
- Check a typed value against the saved one without revealing it
- Agent binaries and checksums
- Agent install script (text/x-shellscript)
Servers, projects, environments, and services
Delete an environment
/api/v1/environments/{id}Responses
- 204 Delete an environment
List an environment's services
/api/v1/environments/{id}/servicesResponses
200 List an environment's services
ServiceView[]created_atstring (date-time)requiredenvironment_idstring (uuid)requiredidstring (uuid)requiredkindstringrequirednamestringrequiredserver_idstring (uuid)requiredspecanyrequiredstatusstringrequired
Create a service
/api/v1/environments/{id}/servicesRequest bodyapplication/json
CreateService
kindstringrequirednamestringrequiredserver_idstring (uuid)requiredspecany
Responses
201 Create a service
ServiceViewcreated_atstring (date-time)requiredenvironment_idstring (uuid)requiredidstring (uuid)requiredkindstringrequirednamestringrequiredserver_idstring (uuid)requiredspecanyrequiredstatusstringrequired
List projects
/api/v1/projectsResponses
200 List projects
ProjectView[]created_atstring (date-time)requireddescriptionstringrequiredidstring (uuid)requirednamestringrequired
Create a project
/api/v1/projectsRequest bodyapplication/json
CreateProject
descriptionstring | nullnamestringrequired
Responses
201 Create a project
ProjectViewcreated_atstring (date-time)requireddescriptionstringrequiredidstring (uuid)requirednamestringrequired
Get a project
/api/v1/projects/{id}Responses
200 Get a project
ProjectViewcreated_atstring (date-time)requireddescriptionstringrequiredidstring (uuid)requirednamestringrequired
Rename or describe a project
/api/v1/projects/{id}Request bodyapplication/json
CreateProject
descriptionstring | nullnamestringrequired
Responses
200 Rename or describe a project
ProjectViewcreated_atstring (date-time)requireddescriptionstringrequiredidstring (uuid)requirednamestringrequired
Delete a project and its environments
/api/v1/projects/{id}Responses
- 204 Delete a project and its environments
List a project's environments
/api/v1/projects/{id}/environmentsResponses
200 List a project's environments
EnvironmentView[]descriptionstringrequiredidstring (uuid)requirednamestringrequiredproject_idstring (uuid)required
Create an environment
/api/v1/projects/{id}/environmentsRequest bodyapplication/json
CreateEnvironment
descriptionstring | nullnamestringrequired
Responses
201 Create an environment
EnvironmentViewdescriptionstringrequiredidstring (uuid)requirednamestringrequiredproject_idstring (uuid)required
List servers
/api/v1/serversResponses
200 List servers
ServerView[]agent_versionstring | nullauto_prunebooleanrequiredRemove dangling images and build cache once a day.
cpu_countinteger | null (int32)created_atstring (date-time)requireddescriptionstringrequireddocker_versionstring | nullenrolled_atstring | null (date-time)When the agent last exchanged a join token for a certificate.
hostnamestring | nullHostname the agent reported.
idstring (uuid)requiredkindstringrequiredlast_heartbeat_atstring | null (date-time)last_pruned_atstring | null (date-time)memory_bytesinteger | null (int64)namestringrequiredos_infostring | nullpublic_ipstring | nullstatusstringrequiredtelemetry_droppedinteger (int64)requiredTelemetry items the agent discarded because its buffer was full.
Add a server; remote servers get a one-time join command
/api/v1/serversRequest bodyapplication/json
CreateServer
descriptionstring | nullkindstringrequirednamestringrequiredpublic_ipstring | null
Responses
201 Add a server; remote servers get a one-time join command
CreatedServeragent_versionstring | nullauto_prunebooleanrequiredRemove dangling images and build cache once a day.
cpu_countinteger | null (int32)created_atstring (date-time)requireddescriptionstringrequireddocker_versionstring | nullenrolled_atstring | null (date-time)When the agent last exchanged a join token for a certificate.
hostnamestring | nullHostname the agent reported.
idstring (uuid)requiredkindstringrequiredlast_heartbeat_atstring | null (date-time)last_pruned_atstring | null (date-time)memory_bytesinteger | null (int64)namestringrequiredos_infostring | nullpublic_ipstring | nullstatusstringrequiredtelemetry_droppedinteger (int64)requiredTelemetry items the agent discarded because its buffer was full.
join_commandstring | nulljoin_tokenstring | null
Update a server's name, description, IP, or auto-prune
/api/v1/servers/{id}Request bodyapplication/json
UpdateServer
auto_pruneboolean | nullPrune dangling images and build cache once a day.
descriptionstring | nullnamestring | nullpublic_ipstring | null
Responses
200 Update a server's name, description, IP, or auto-prune
ServerViewagent_versionstring | nullauto_prunebooleanrequiredRemove dangling images and build cache once a day.
cpu_countinteger | null (int32)created_atstring (date-time)requireddescriptionstringrequireddocker_versionstring | nullenrolled_atstring | null (date-time)When the agent last exchanged a join token for a certificate.
hostnamestring | nullHostname the agent reported.
idstring (uuid)requiredkindstringrequiredlast_heartbeat_atstring | null (date-time)last_pruned_atstring | null (date-time)memory_bytesinteger | null (int64)namestringrequiredos_infostring | nullpublic_ipstring | nullstatusstringrequiredtelemetry_droppedinteger (int64)requiredTelemetry items the agent discarded because its buffer was full.
Delete a server and revoke its agent certificate
/api/v1/servers/{id}Responses
- 204 Delete a server and revoke its agent certificate
Issue a new join token for a remote server (valid for one hour)
/api/v1/servers/{id}/join-tokenResponses
200 Issue a new join token for a remote server (valid for one hour)
JoinTokenexpires_atstring (date-time)requiredjoin_commandstringrequiredjoin_tokenstringrequired
Refresh Docker and OS facts for a server
/api/v1/servers/{id}/probeResponses
200 Refresh Docker and OS facts for a server
ServerViewagent_versionstring | nullauto_prunebooleanrequiredRemove dangling images and build cache once a day.
cpu_countinteger | null (int32)created_atstring (date-time)requireddescriptionstringrequireddocker_versionstring | nullenrolled_atstring | null (date-time)When the agent last exchanged a join token for a certificate.
hostnamestring | nullHostname the agent reported.
idstring (uuid)requiredkindstringrequiredlast_heartbeat_atstring | null (date-time)last_pruned_atstring | null (date-time)memory_bytesinteger | null (int64)namestringrequiredos_infostring | nullpublic_ipstring | nullstatusstringrequiredtelemetry_droppedinteger (int64)requiredTelemetry items the agent discarded because its buffer was full.
All services with their project and environment
/api/v1/servicesResponses
200 All services with their project and environment
ServiceSummary[]environment_idstring (uuid)requiredenvironment_namestringrequiredidstring (uuid)requiredkindstringrequirednamestringrequiredproject_idstring (uuid)requiredproject_namestringrequiredserver_idstring (uuid)requiredstatusstringrequired
Get a service
/api/v1/services/{id}Responses
200 Get a service
ServiceViewcreated_atstring (date-time)requiredenvironment_idstring (uuid)requiredidstring (uuid)requiredkindstringrequirednamestringrequiredserver_idstring (uuid)requiredspecanyrequiredstatusstringrequired
Update a service
/api/v1/services/{id}Request bodyapplication/json
UpdateService
server_idstring | null (uuid)specany
Responses
200 Update a service
ServiceViewcreated_atstring (date-time)requiredenvironment_idstring (uuid)requiredidstring (uuid)requiredkindstringrequirednamestringrequiredserver_idstring (uuid)requiredspecanyrequiredstatusstringrequired
Delete a service and its containers
/api/v1/services/{id}Responses
- 204 Delete a service and its containers
List environment variables; secret values are masked
/api/v1/services/{id}/envResponses
200 List environment variables; secret values are masked
EnvVarView[]is_build_secretbooleanrequiredkeystringrequiredlengthinteger (int32)requiredCharacters in the saved value, so a typo or a truncated paste shows without revealing it.
updated_atstring (date-time)requiredWhen the value was last written.
Set an environment variable
/api/v1/services/{id}/envRequest bodyapplication/json
PutEnvVar
is_build_secretbooleanrequiredkeystringrequiredvaluestringrequired
Responses
- 204 Set an environment variable
Preview or save many variables from the text of a .env file
/api/v1/services/{id}/env/importRequest bodyapplication/json
ImportEnv
dry_runbooleanOnly report what would change; save nothing.
is_build_secretbooleantextstringrequiredThe text of a
.envfile:KEY=valuelines,#comments, quotes.
Responses
200 Preview or save many variables from the text of a .env file
ImportEnvResultappliedbooleanrequiredThe values were saved. False for a dry run or when the text has errors.
entriesImportEnvEntry[]requiredImportEnvEntry[]
keystringrequiredlengthinteger (int32)requiredstatusstringrequirednew,changed, orunchangedcompared with what is saved.
errorsImportEnvError[]requiredImportEnvError[]
lineinteger (int32)requiredmessagestringrequired
Delete an environment variable
/api/v1/services/{id}/env/{key}Responses
- 204 Delete an environment variable
Check a typed value against the saved one without revealing it
/api/v1/services/{id}/env/{key}/verifyRequest bodyapplication/json
VerifyEnvVar
is_build_secretbooleanvaluestringrequired
Responses
200 Check a typed value against the saved one without revealing it
VerifyEnvResultmatchesbooleanrequiredThe value typed matches the saved one exactly.
Agent binaries and checksums
/downloads/{file}Responses
- 200 Agent binaries and checksums
Agent install script (text/x-shellscript)
/install-agent.shResponses
- 200 Agent install script (text/x-shellscript)