Unique identifier for a given organization.
Unique identifier for a given API key.
apiKey field
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get details about an API key.
Show apiKey details
curl --request POST \
--url https://api.0xkey.io/public/v1/query/get_api_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"apiKeyId": "<string>"
}'
import { ZeroXKey } from "@0xkey-io/sdk-server";
const zeroXKey = new ZeroXKey({
apiBaseUrl: "https://api.0xkey.io",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await zeroXKey.apiClient().publicApiService_GetApiKey({
organizationId: "<string> (Unique identifier for a given organization.)",
apiKeyId: "<string> (Unique identifier for a given API key.)"
});
{
"apiKey": {
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_UNSPECIFIED>"
},
"apiKeyId": "<string>",
"apiKeyName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"expirationSeconds": "<string>"
}
}
curl --request POST \
--url https://api.0xkey.io/public/v1/query/get_api_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"apiKeyId": "<string>"
}'
import { ZeroXKey } from "@0xkey-io/sdk-server";
const zeroXKey = new ZeroXKey({
apiBaseUrl: "https://api.0xkey.io",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await zeroXKey.apiClient().publicApiService_GetApiKey({
organizationId: "<string> (Unique identifier for a given organization.)",
apiKeyId: "<string> (Unique identifier for a given API key.)"
});
{
"apiKey": {
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_UNSPECIFIED>"
},
"apiKeyId": "<string>",
"apiKeyName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"expirationSeconds": "<string>"
}
}