Get details about an API key
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_api_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>",
"apiKeyId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g. 1746736509954)",
"result": {
"apiKey": {
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR>"
},
"apiKeyId": "<string>",
"apiKeyName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"expirationSeconds": "<string>"
}
}
}
}
Unique identifier for a given Organization.
Unique identifier for a given API key.
A successful response returns the following fields:
apiKey field
Show apiKey details
credential field
Show credential details
The public component of a cryptographic key pair used to sign messages and transactions.
type field
Enum options: CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR
, CREDENTIAL_TYPE_API_KEY_P256
, CREDENTIAL_TYPE_RECOVER_USER_KEY_P256
, CREDENTIAL_TYPE_API_KEY_SECP256K1
, CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256
, CREDENTIAL_TYPE_API_KEY_ED25519
, CREDENTIAL_TYPE_OTP_AUTH_KEY_P256
, CREDENTIAL_TYPE_READ_WRITE_SESSION_KEY_P256
, CREDENTIAL_TYPE_OAUTH_KEY_P256
, CREDENTIAL_TYPE_LOGIN
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_api_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>",
"apiKeyId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g. 1746736509954)",
"result": {
"apiKey": {
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR>"
},
"apiKeyId": "<string>",
"apiKeyName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"expirationSeconds": "<string>"
}
}
}
}
Was this page helpful?
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_api_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>",
"apiKeyId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g. 1746736509954)",
"result": {
"apiKey": {
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR>"
},
"apiKeyId": "<string>",
"apiKeyName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"expirationSeconds": "<string>"
}
}
}
}
Get details about an API key
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_api_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>",
"apiKeyId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g. 1746736509954)",
"result": {
"apiKey": {
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR>"
},
"apiKeyId": "<string>",
"apiKeyName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"expirationSeconds": "<string>"
}
}
}
}
Unique identifier for a given Organization.
Unique identifier for a given API key.
A successful response returns the following fields:
apiKey field
Show apiKey details
credential field
Show credential details
The public component of a cryptographic key pair used to sign messages and transactions.
type field
Enum options: CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR
, CREDENTIAL_TYPE_API_KEY_P256
, CREDENTIAL_TYPE_RECOVER_USER_KEY_P256
, CREDENTIAL_TYPE_API_KEY_SECP256K1
, CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256
, CREDENTIAL_TYPE_API_KEY_ED25519
, CREDENTIAL_TYPE_OTP_AUTH_KEY_P256
, CREDENTIAL_TYPE_READ_WRITE_SESSION_KEY_P256
, CREDENTIAL_TYPE_OAUTH_KEY_P256
, CREDENTIAL_TYPE_LOGIN
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_api_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>",
"apiKeyId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g. 1746736509954)",
"result": {
"apiKey": {
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR>"
},
"apiKeyId": "<string>",
"apiKeyName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"expirationSeconds": "<string>"
}
}
}
}
Was this page helpful?
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_api_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>",
"apiKeyId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g. 1746736509954)",
"result": {
"apiKey": {
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR>"
},
"apiKeyId": "<string>",
"apiKeyName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"expirationSeconds": "<string>"
}
}
}
}