user

Get a public key

Changed on
get/user/keys/{id}

Request

  • Base URL
    https://demo.gitea.com/api/v1
  • Auth
    • HTTP basic
    • or API key in query parameter token
    • or API key in query parameter access_token
    • or API key in header Authorization
    • or API key in query parameter sudo
    • or API key in header Sudo
    • or API key in header X-GITEA-OTP
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

idinteger required

id of key to get

Response

PublicKey

created_atstring date-time

Created is the time when the key was added

fingerprintstring

Fingerprint is the key's fingerprint

idinteger

ID is the unique identifier for the public key

keystring

Key contains the actual SSH public key content

key_typestring

KeyType indicates the type of the SSH key

last_used_atstring date-time

Updated is the time when the key was last used

read_onlyboolean

ReadOnly indicates if the key has read-only access

titlestring

Title is the human-readable name for the key

urlstring

URL is the API URL for this key

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status