# Add a Custom Auth Type

Akto is designed to automatically detect standard authentication methods like JWT and Bearer authorization headers. This helps in identifying and addressing potential security threats. However, not all APIs follow standard practices. Hence, Akto also supports custom authentication methods.

For example, suppose your agentic component uses a non-standard authentication method, such as sending the auth token under a non-standard header. In that case, Akto provides the flexibility to set this up as a custom auth type.

In the demonstration below, let's add a custom auth type with the name **`New_Auth_Type_1`**.

Go to **Settings > Auth types**. Click on Create new auth type and enter the required details, then click on the **Save** button to create a custom auth type.

{% embed url="<https://demo.arcade.software/Fh2L5kP2Td0EDF0Vj2Ab?embed=>" %}
Add a Custom Auth Type
{% endembed %}

In the above demonstration, we have added a new custom auth type named **`"New_Auth_Type_1"`** Akto. This custom auth type contains conditions for both the header and payload key. Now Akto will recognize this custom authentication method when processing the agentic component's requests.


---

# 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-ai-discovery/how-to/add-a-custom-auth-type.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.
