Skip to main content

Get access key details

Reviewed on

Returns the details of an AK/SK credential attached to a service account. The secret key is never returned: it is only available in the creation response.

Permissions​

info

This action requires the following IAM (Identity and Access Management) permission:

  • iam.accessKey.get

API​

Retrieve the details of a single credential: access key, status and lifetime.

info

Prerequisites: the credential must exist — its identifier is available in the list of access keys.

This operation requires an access token and the permissions listed at the top of the page.

GET https://api.eu-west-2.numspot.com/iam/organisations/{organisationId}/serviceAccounts/{serviceAccountId}/aksk/{akskId}

Full documentation for this endpoint ↗

Parameters​

ParameterLocationRequiredTypeExampleDescription
organisationIdpathyesUUID123e4567-e89b-12d3-a456-426614174000Organisation owning the service account
serviceAccountIdpathyesUUID123e4567-e89b-12d3-a456-426614174000Service account the credential is attached to
akskIdpathyesUUID123e4567-e89b-12d3-a456-426614174000Credential identifier, from the list of access keys

Example​

export TOKEN="{TOKEN}"

curl 'https://api.eu-west-2.numspot.com/iam/organisations/{ORGANISATION-ID}/serviceAccounts/{SERVICE-ACCOUNT-ID}/aksk/{AKSK-ID}' \
--header "Authorization: Bearer $TOKEN"
VariableRepresentsWhere to find its value
{TOKEN}OAuth 2.0 access token of the requestGenerated by the API authentication flow (see Access token)
{ORGANISATION-ID}Organisation owning the service accountNumspot console (active organisation)
{SERVICE-ACCOUNT-ID}Service account the credential is attached toResponse of the List service accounts ↗ API
{AKSK-ID}Credential to readid field of the list of access keys

Response​

200 OK — the credential metadata:

FieldTypeDescription
idstringCredential identifier
accessKeystringAccess key of the credential
statusstringACTIVE, INACTIVE or EXPIRED
createdAtstringCreation date
expiresAtstringExpiration date
lastUsedAtstringDate of the last use, if the credential has already authenticated a session
{
"id": "019db8c2-1a7b-7de1-8a42-797176d8bbf0",
"accessKey": "AKIAIOSF",
"status": "ACTIVE",
"createdAt": "2026-10-07T10:15:30.485Z",
"expiresAt": "2027-10-07T10:15:30.485Z",
"lastUsedAt": "2026-10-07T14:02:11.220Z"
}
Was this page helpful?