> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lokutor.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API keys, and what each one may do

> A walkthrough of the Developers page: the API keys and their usage, the Create key dialog with its name, access, agents, expiry and monthly limit, then where requests, webhook deliveries and traces are seen.

A narrated video (2:43), filmed on the real dashboard in a demo workspace, then the same steps in writing.

<video controls playsInline preload="metadata" poster="https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/poster.jpg">
  <source src="https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/video.mp4" type="video/mp4" />
</video>

## What you will see

In this video I'll show you the API keys on the Developers page, and what each one may do. We'll open the Create key dialog, look at its fields, then take a quick look at requests, webhooks and traces. Let's start with the keys. Each row shows a key's name, its access, when it was last used, and its usage. The access column tells you what that key may do.

![What you will see](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/images/intro.webp)

## The keys and their usage

Here are the four keys in this workspace, all working on Grupo Alba and its balance. You can have up to 25 keys, so give each one a clear name. The usage this month sits beside each key, so you can spot one being used more than you expect. Read the access column first, because it shows what a key is allowed to do.

![The keys and their usage](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/images/keys-list.webp)

## Creating a key

Now let's open the dialog for a new key. The full key is shown only once, right when it is made. The name comes first, so you can tell the key apart later. Next is what the key can do, either everything or a limited set, such as only running calls or only reading.

1. Press **Create key**.

![Creating a key](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/images/create-key.webp)

## Agents, expiry and limit

A limited set is useful when a key only needs to read data or only needs to place calls. Under agents, you can leave it on any agent, or pick only the ones this key should reach. The expiry field sets the day the key stops working. The monthly limit caps what the key can spend in a month, so one runaway script can't run up the bill. Keep the key on your server, never in a web page or an app, and for browsers make a short-lived ticket from it there.

![Agents, expiry and limit](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/images/limits.webp)

## Closing without saving

We don't need a new key for this demo, so I'll close the dialog without creating one. Nothing has been made, and the list stays as it was.

1. Press **Cancel**.

![Closing without saving](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/images/close-dialog.webp)

## Where requests are seen

Next, the Logs tab shows the requests. Each line shows what was called, which key made the call, and how long it took. You can filter by key, and by errors over the last day, seven days or thirty days, which helps when something stops working.

1. Press **Logs**.

![Where requests are seen](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/images/requests.webp)

## Webhook deliveries

Webhooks are the messages Lokutor sends to your own system when something happens. This is where you set them up, and each delivery appears here with how your system answered. Right now nothing has been sent, so the list is empty. Deliveries can be sent again from here if your system missed one.

1. Press **Webhooks**.

![Webhook deliveries](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/images/webhooks.webp)

## Traces, last stop

Last, the Traces tab. It sends each call as a trace to the observability tool you already use, with its turns, model requests, tools and timings. Traces never include what anyone said, so you can follow performance without storing conversation content. That covers the keys, their limits, and where to look when something needs checking.

1. Press **Traces**.

![Traces, last stop](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/api-keys/en/images/traces.webp)

*Voice made with AI.*

Read more: [Authentication](https://docs.lokutor.com/authentication.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.