For the complete documentation index, see llms.txt. This page is also available as Markdown.

Credentials

Create credential

post

Create a new container registry credential

Authorizations
x-api-keystringRequired
Body

Container Registry Credential Create Request (v2)

namestring · min: 1Required

Credential name (1-20 chars, starts with letter)

Example: docker-hub-credsPattern: ^(?=[A-Za-z])[A-Za-z0-9@._-]{1,20}$
usernamestring · min: 1 · max: 255Required

Registry username

Example: myuser
passwordstring · min: 1 · max: 255Required

Registry password/token

Example: dckr_pat_...
Responses
200

OK

*/*
messagestringOptional

message

codeinteger · int32Optional

code

post/v2/container-registry-auths
POST /v2/container-registry-auths HTTP/1.1
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 77

{
  "name": "docker-hub-creds",
  "username": "my-user",
  "password": "thisisapassword"
}
{
  "message": "success",
  "code": 10000,
  "data": {
    "id": "454591571947143492",
    "name": "docker-hub-creds"
  }
}

Delete credential

delete

Delete a credential

Authorizations
x-api-keystringRequired
Path parameters
idinteger · int64RequiredExample: 454591571947143500
Responses
200

Credential deleted

*/*
messagestringOptional

message

Example: success
codeinteger · int32Optional

code

Example: 10000
dataanyOptional

data

delete/v2/container-registry-auths/{id}
DELETE /v2/container-registry-auths/{id} HTTP/1.1
x-api-key: YOUR_API_KEY
Accept: */*
{
  "message": "success",
  "code": 10000,
  "data": null
}

Update credential

patch

Update an existing credential (partial update)

Authorizations
x-api-keystringRequired
Path parameters
idinteger · int64RequiredExample: 454591571947143500
Body

Container Registry Credential Update Request (v2)

namestring · min: 1 · max: 20Optional

Credential name (1-20 chars, starts with letter)

Example: docker-hub-creds-updated
usernamestring · min: 1 · max: 255Optional

Registry username

Example: myuser
passwordstring · min: 1 · max: 255Optional

Registry password/token

Example: dckr_pat_...
Responses
200

Credential updated

*/*
messagestringOptional

message

codeinteger · int32Optional

code

patch/v2/container-registry-auths/{id}
PATCH /v2/container-registry-auths/{id} HTTP/1.1
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 90

{
  "name": "docker-hub-creds-upd",
  "username": "my-user",
  "password": "thisistheupdatedpassword"
}
{
  "message": "success",
  "code": 10000,
  "data": {
    "id": "454591571947143492",
    "name": "docker-hub-creds-upd"
  }
}

Get credential

get

Get details of a specific credential

Authorizations
x-api-keystringRequired
Path parameters
idinteger · int64RequiredExample: 454591571947143500
Responses
200

Credential found

*/*
messagestringOptional

message

codeinteger · int32Optional

code

get/v2/container-registry-auths/{id}
GET /v2/container-registry-auths/{id} HTTP/1.1
x-api-key: YOUR_API_KEY
Accept: */*
{
  "message": "success",
  "code": 10000,
  "data": {
    "id": "454591571947143492",
    "name": "docker-hub-creds"
  }
}

List credentials

get

Get all credentials for your organization

Authorizations
x-api-keystringRequired
Responses
200

OK

*/*
messagestringOptional

message

codeinteger · int32Optional

code

get/v2/container-registry-auths
GET /v2/container-registry-auths HTTP/1.1
x-api-key: YOUR_API_KEY
Accept: */*
{
  "message": "success",
  "code": 10000,
  "data": [
    {
      "id": "454591571947143492",
      "name": "docker-hub-creds"
    }
  ]
}

Last updated

Was this helpful?