Hanzo
OpenapiGit

Returns the SSH public keys registered to the caller's org — the keys that…

Returns the SSH public keys registered to the caller's org — the keys that authenticate `git clone git@<host>:<org>/<repo>.git`.

GET /v1/git/keys

Addresshttps://api.hanzo.ai/v1/git/keys
MethodGET
Operationget_git_keys
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the SSH public keys registered to the caller's org — the keys that authenticate git clone git@<host>:<org>/<repo>.git. Keys are org-scoped on read even though the fingerprint index is global, so one org never sees another's.

Request

GET /v1/git/keys takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200keyListok

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodykeyView[]Data holds the org's keys.
data[].createdAtbodystringCreatedAt is RFC 3339 UTC.
data[].fingerprintbodystringFingerprint is the key's SHA256 fingerprint ("SHA256:…"), globally unique and the handle SSH auth resolves a presented key by.
data[].idbodystringID is the key's identifier ("gitkey_…"), the handle to delete it by.
data[].publicKeybodystringPublicKey is the canonical OpenSSH authorized-key line as stored.
data[].titlebodystringTitle is the key's label — the caller's, or the comment on the key line.

Failure carries the platform error shape — see Errors.

Examples

hanzo git keys list

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page