Documentation Index
Fetch the complete documentation index at: https://turnkey-0e7c1f5b-ethan-captcha-protection.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API Key
WebAuthn (Passkey)
Cryptographically signed (stamped) request to be passed in as a header. For more info, see
here.
Cryptographically signed (stamped) request to be passed in as a header. For more info, see
here.
Body
Unique identifier for a given organization.
Unique identifier for a given user.
Response
A successful response returns the following fields:
A list of API keys.
credential field
apiKeys.credential.publicKey
The public component of a cryptographic key pair used to sign messages and transactions.
type fieldEnum 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
Unique identifier for a given API Key.
Human-readable name for an API Key.
createdAt field
apiKeys.createdAt.seconds
updatedAt field
apiKeys.updatedAt.seconds
apiKeys.expirationSeconds
Optional window (in seconds) indicating how long the API Key should last.
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_api_keys \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"userId": "<string>"
}'
{
"apiKeys": [
{
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_API_KEY_P256>"
},
"apiKeyId": "<string>",
"apiKeyName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"expirationSeconds": "<string>"
}
]
}