---
title: "Returns current account credentials or secret details for the registry."
method: GET
path: "/orgs/{orgId}/registries/{regId}/creds"
tags: ["public", "Registry"]
---

# Returns current account credentials or secret details for the registry.

`GET /orgs/{orgId}/registries/{regId}/creds`

## Path parameters

- `orgId` string, required
- `regId` string, required

## Response `200`

Current account credentials or secret details for the registry.

- RegistryCredsResponse — RegistryCreds represents current registry credentials (either, username- or token-based).
  - `expires` string, nullable — Account credentials expiration timestamp.
  - `password` string — Account password or token secret.
  - `registry` string, required — Registry name, usually in a "{domain}" or "{domain}/{project}" format.
  - `secrets` ClusterSecretsMapResponse — ClusterSecretsMap stores a list of Kuberenetes secret references for the target deployment clusters.
  - `username` string — Security account login or token.

## Other responses

- `400` — Request parameters are incomplete or invalid.
- `401` — Authentication token is missing or invalid.
- `404` — Specified 'orgId' or 'regId' do not match any record.

---

[API](https://skmtc.net/humanitec/apis/humanitec-api.md) · [All operations](https://skmtc.net/humanitec/apis/humanitec-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humanitec/humanitec-api/revisions/e21ad140ec3c/schema)
