# Cookbook

## [Protecting Access using JWT Tokens](/flat/cookbook/x-flat-jwt.md)

## [Performing Additional Checks on JWT Access Tokens](/flat/cookbook/checking-jwt-tokens.md)

## [Proxying Requests to Upstream APIs (Swagger)](/flat/cookbook/proxy-requests.md)

## [Testing Templates](/flat/cookbook/test-templates.md)

## [Testing API Requests](/flat/cookbook/test-api-request.md)

## [Testing with Backend Requests](/flat/cookbook/test-backend.md)

## [File Serving](/flat/cookbook/file-serving.md)

## [Error Handling](/flat/cookbook/error-flow.md)

## [Extracting Common Initialization Flow Tasks](/flat/cookbook/init-flow.md)

## [Using Environment Variables](/flat/cookbook/envvars.md)

## [Logging Custom Fields](/flat/cookbook/custom-logging.md)

## [Forwarding a Request to an Upstream API (Flow)](/flat/cookbook/forward-request-upstream.md)

## [How can I pass an arbitrary header field to an upstream system?](/flat/cookbook/pass-header-field-upstream.md)

## [How can I pass response headers to the client?](/flat/cookbook/pass-header-field-downstream.md)

## [How can I increase the request timeout to deal with a slow upstream system?](/flat/cookbook/request-timeout.md)

## [Sending POST requests](/flat/cookbook/upstream-post-requests.md)

## [Signing JWT](/flat/cookbook/jwt.md)

## [How can I inspect the client request?](/flat/cookbook/see-client-request.md)

## [Auto Docs with Swagger UI](/flat/cookbook/swagger-docs.md)

## [Using the Built-in Mocking](/flat/cookbook/builtin-mocking.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://sevenval.gitbook.io/flat/cookbook.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.
