Trillet AI logo

List API Keys

Retrieve all API keys for the authenticated user.

GEThttps://api.trillet.ai/v1/api/keys

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

Response Fields

keysarray

Array of API key objects.

_idstring

Unique identifier for the API key.

keystring

The API key (partially masked for security).

userIdstring

User ID associated with the API key.

metadataobject

Metadata associated with the API key.

createdAtstring

Timestamp when the API key was created.

[
  {
    "_id": "665a1b2c3d4e5f6a7b8c9d0e",
    "key": "tk_a1b2****o5p6",
    "userId": "664a1b2c3d4e5f6a7b8c9d0e",
    "metadata": {},
    "createdAt": "2024-06-01T09:00:00.000Z"
  }
]