GET
/user/keys/{key_id}Get a public SSH key for the authenticated user
View extended details for a single public SSH key.
OAuth app tokens and personal access tokens (classic) need the read:public_key scope to use this endpoint.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
key_idintegerrequired
The unique identifier of the key.
200Response
keystringrequired
idintegerrequired
urlstringrequired
titlestringrequired
created_atstringrequired
verifiedbooleanrequired
read_onlybooleanrequired
last_usedstringoptional
304Not modified
401Requires authentication
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 401 is returned: Requires authentication. A 403 is returned: Forbidden. A 404 is returned: Resource not found.
Was this helpful?