Skip to content

Create Endpoint

POST
/api/endpoints
curl --request POST \
--url https://kelpie.example.com/api/endpoints \
--header 'Content-Type: application/json' \
--data '{ "name": "example" }'
Media typeapplication/json
EndpointIn
object
name
required
Name
string
/^[a-z0-9][a-z0-9_-]{0,62}$/

Example generated

{
"name": "example"
}

Successful Response

Media typeapplication/json
EndpointKey
object
endpoint
required
EndpointOut
object
id
required
Id
string format: uuid
name
required
Name
string
connected
required
Connected
boolean
hostname
required
Hostname
Any of:
string
docker_version
required
Docker Version
Any of:
string
agent_version
required
Agent Version
Any of:
string
swarm
required
Swarm
boolean
connected_at
required
Connected At
Any of:
string format: date-time
disconnected_at
required
Disconnected At
Any of:
string format: date-time
stacks
required
Stacks
Array<string>
key
required
Key
string
docker_command
required
Docker Command
string
swarm_command
required
Swarm Command
string

Example generated

{
"endpoint": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"connected": true,
"hostname": "example",
"docker_version": "example",
"agent_version": "example",
"swarm": true,
"connected_at": "2026-04-15T12:00:00Z",
"disconnected_at": "2026-04-15T12:00:00Z",
"stacks": [
"example"
]
},
"key": "example",
"docker_command": "example",
"swarm_command": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}