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>"
    }
  ]
}
POST
/
public
/
v1
/
query
/
get_api_keys

Authorizations

X-Stamp
string
required
Cryptographically signed (stamped) request to be passed in as a header. For more info, see here.

Body

organizationId
string
required
Unique identifier for a given organization.
userId
string
Unique identifier for a given user.

Response

A successful response returns the following fields:
apiKeys
array
required
A list of API keys.
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>"
    }
  ]
}