# JSON Recording for Automated Auth Tokens

JSON Recording automates the process of capturing and managing authentication tokens for AI red teaming. It allows you to record the authentication flow once and reuse it automatically in security probes, ensuring consistent and reliable scanning with valid authentication.

This feature is particularly useful for probing agent components that require authentication, such as LLM provider tool calls, MCP server connections, or tool invocations requiring bearer tokens.

Learn how to [Set Up JSON Recording for Auth Tokens](/akto-argus-agentic-ai-security-for-homegrown-ai/agentic-red-teaming/how-to/set-up-json-recording-for-auth-tokens.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-security-docs.akto.io/akto-argus-agentic-ai-security-for-homegrown-ai/agentic-red-teaming/concepts/json-recording-for-automated-auth-tokens.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
