GET
/
api-keys
/
{id}
TypeScript
import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: 'My API Key',
});

const apiKey = await client.apiKeys.retrieve('apk_pdGukGd4BTmHj8dscBDE5Mc9');

console.log(apiKey.id);
{
  "data": {
    "id": "<string>",
    "org_id": "<string>",
    "apikey_truncated": "<string>",
    "name": "<string>",
    "status": "enabled",
    "user_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "modified_at": "2023-11-07T05:31:56Z",
    "region": "eu-west-1",
    "kind": "api-key"
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Path Parameters

id
string
required

The api key id previously created

Response

200
application/json

A successful response

The response is of type object.