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

# Agent Activity

> Audit recent DevTune API and AI agent traffic across your account by API key, project, endpoint, scope, status code, and request latency.

The **Agent Activity** page is the account-level audit view for recent DevTune API usage.

It is designed for teams that want visibility into how internal tools, automations, and AI agents are using the DevTune API.

## What the Page Shows

Agent Activity displays a recent request log across the account, including:

* **When** the request happened
* **Project**
* **API key**
* **Method**
* **Endpoint**
* **Status**
* **Scope**
* **Latency**
* **Error / rate limit state**

The page shows a recent request window rather than long-term historical analytics. Use it as an operational audit surface.

## What It Is Useful For

Agent Activity helps answer questions like:

* Which integrations are actively using the API?
* Which projects are receiving the most programmatic traffic?
* Are requests failing because of scope or authorization issues?
* Are certain endpoints slower or more error-prone than expected?
* Is a key still being used after it should have been retired?

## Common Workflows

### Debugging an integration

1. Open **Agent Activity**
2. Find the affected endpoint or project
3. Check status codes, scopes, and error fields
4. Confirm the expected key is being used

### Auditing key usage

1. Review recent activity by key
2. Identify keys with no recent usage
3. Revoke unused keys from **API Keys**

### Reviewing agent behavior

1. Confirm agents or automations are only hitting the expected endpoints
2. Check response status and latency
3. Validate that assigned scopes match the intended access surface

## Permissions

Agent Activity is available on plans that include API access.

## Best Practices

* Use distinct API keys for distinct integrations so the log stays attributable
* Check Agent Activity after changing scopes or rotating secrets
* Review rate-limited or error-heavy endpoints before widening access

## Next Steps

* **[API Keys](/account-billing/api-keys)** - Create, scope, or revoke keys
* **[Authentication](/api-reference/authentication)** - Review how keys and scopes work
* **[Webhooks](/api-reference/webhooks)** - Pair outbound event delivery with inbound API usage
