List GPG keys
Returns a paginated list of the user’s GPG public keys.
The key and subkeys fields can also be requested from the endpoint.
See Partial Responses for more details.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example: {account UUID}.
Responses
Section titled “ Responses ”A list of the GPG keys associated with the account.
A paginated list of GPG keys.
object
Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute.
Page number of the current results. This is an optional element that is not provided in all responses.
Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.
Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs.
Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs.
object
object
Links related to an Account.
object
A link to a resource related to this object.
object
The GPG key value in X format.
The unique identifier for the GPG key
The GPG key fingerprint.
The fingerprint of the parent key. This value is null unless the current key is a subkey.
The user-defined label for the GPG key
object
A link to a resource related to this object.
object
Examples
{ "page": 1, "pagelen": 10, "size": 1, "values": [ { "added_on": "2024-09-24T12:09:33.154081+00:00", "created_on": "2018-03-20T13:09:04.207005+00:00", "expires_on": null, "fingerprint": "h4m26ppxrol7blr7spbc7lhyymokdbnkxd06kzrt", "key_id": "ymokdbnkxd06kzrt", "last_used": "2024-09-25T15:18:05.196003+00:00", "links": { "self": { "href": "https://api.bitbucket.org/2.0/users/{d7dd0e2d-3994-4a50-a9ee-d260b6cefdab}/gpg-keys/H4M26PPXROL7BLR7SPBC7LHYYMOKDBNKXD06KZRT" } }, "name": "Alice's OpenPGP key", "owner": { "display_name": "Mark Adams", "links": { "avatar": { "href": "https://bitbucket.org/account/markadams-atl/avatar/32/" }, "html": { "href": "https://bitbucket.org/markadams-atl/" }, "self": { "href": "https://api.bitbucket.org/2.0/users/{d7dd0e2d-3994-4a50-a9ee-d260b6cefdab}" } }, "type": "user", "username": "markadams-atl", "nickname": "markadams-atl", "uuid": "{d7dd0e2d-3994-4a50-a9ee-d260b6cefdab}" }, "parent_fingerprint": null, "type": "gpg_key" } ]}If the specified user’s keys are not accessible to the current user
If the specified user does not exist
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}