Back to GithubGet a GPG key for the authenticated user
View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least read:gpg_key
scope.
Input
type: object
properties:
parameters:
type: object
properties:
gpg_key_id:
type: integer
description: The unique identifier of the GPG key.
required:
- gpg_key_id
title: Parameters
Output
type: object
title: GPG Key
properties:
id:
type: integer
example: 3
name:
type: string
example: Octocat's GPG Key
nullable: true
primary_key_id:
type: integer
nullable: true
key_id:
type: string
example: 3262EFF25BA0D270
public_key:
type: string
example: xsBNBFayYZ...
emails:
type: array
items:
type: object
properties:
email:
type: string
verified:
type: boolean
subkeys:
type: array
items:
type: object
properties:
id:
type: number
primary_key_id:
type: number
key_id:
type: string
public_key:
type: string
emails:
type: array
items:
type: object
properties:
email:
type: string
verified:
type: boolean
subkeys:
type: array
can_sign:
type: boolean
can_encrypt_comms:
type: boolean
can_encrypt_storage:
type: boolean
can_certify:
type: boolean
created_at:
type:
- string
- object
expires_at:
type:
- 'null'
- string
raw_key:
type: string
nullable: true
revoked:
type: boolean
can_sign:
type: boolean
example: true
can_encrypt_comms:
type: boolean
can_encrypt_storage:
type: boolean
can_certify:
type: boolean
example: true
created_at:
type: string
format: date-time
example: '2016-03-24T17:31:04.000Z'
expires_at:
type: string
format: date-time
nullable: true
revoked:
type: boolean
example: true
raw_key:
type: string
nullable: true