Skip to Content
SeyloDocs
API referenceRegistry logins

Add a registry login

POST
/api/v1/registries.create

Stores a login for a private Docker registry, sealed. The panel checks it with a registry login first and refuses ones that fail.

Needs registries.manage, which owners and admins hold. Not available to MCP clients or the assistant.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
name*string
Length1 <= length <= 60
server*string

Registry host, for example "ghcr.io" or "registry.example.com:5000". Docker Hub is "docker.io".

Match^[A-Za-z0-9.-]+(:[0-9]{1,5})?$
Length1 <= length <= 253
username*string
Length1 <= length <= 200
password*string

Password or access token.

Length1 <= length <= 5000

Response Body

Success.

application/json
  1. response
id*string

Panel-issued id.

Match^[a-z0-9]{16}$
name*string
Length1 <= length <= 60
server*string

Registry host, for example "ghcr.io" or "registry.example.com:5000". Docker Hub is "docker.io".

Match^[A-Za-z0-9.-]+(:[0-9]{1,5})?$
Length1 <= length <= 253
username*string
Length1 <= length <= 200
usedBy*integer
Range0 <= value
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://example.com/api/v1/registries.create' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "server": "string",  "username": "string",  "password": "string"}'
Example Response
{  "id": "string",  "name": "string",  "server": "string",  "username": "string",  "usedBy": 0,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}