# Recipes

- [curl: Authenticate to API using NETOSECRET](https://docs.fusion.vectra.ai/api-recipes/recipes/curl-authenticate-to-api-using-netosecret.md): Shell script that takes a NETOSECRET API key, builds a JWT request token, authenticates to the Fusion API, and output the bearer token to use in subsequent API calls.
- [NetoAPI Python class to create traffic sources in Fusion](https://docs.fusion.vectra.ai/api-recipes/recipes/netoapi-python-class-to-create-traffic-sources-in-fusion.md)
- [Retrieve a list of source IP addresses from the blocklist with the API](https://docs.fusion.vectra.ai/api-recipes/recipes/retrieve-a-list-of-source-ip-addresses-from-the-blocklist-with-the-api.md): An example of how to authenticate and then use the API to retrieve values from the blocklist.
- [Bulk add IP labels (php)](https://docs.fusion.vectra.ai/api-recipes/recipes/bulk-add-ip-labels-php.md)
- [Authenticate to the API](https://docs.fusion.vectra.ai/api-recipes/recipes/authenticate-to-the-api.md): Create a JWT request token and authenticate to the API with it, returning a JWT bearer token. Store the bearer token to a file.
- [Create a JWT request token](https://docs.fusion.vectra.ai/api-recipes/recipes/create-a-jwt-request-token.md): This simple recipe demonstrates how to encode a JWT request token and output it. The output can be used as the string to pass in the jwt params in the HTTP POST to /auth/token
- [Sanitize context label values](https://docs.fusion.vectra.ai/api-recipes/recipes/sanitize-context-label-values.md): Python code example of how to ensure invalid characters are not part of a context label value being sent to the context labels API.
- [netosecret.py - Python class and CLI](https://docs.fusion.vectra.ai/api-recipes/recipes/netosecret.py-python-class-and-cli.md): Python containing the NetoSecret class to encode and decode a netosecret string and a CLI to interact with the secret on command line.
- [netosecret.sh - bash script CLI](https://docs.fusion.vectra.ai/api-recipes/recipes/netosecret.sh-bash-script-cli.md): Bash shell script to encode and decode netosecret
- [Create a Traffic Source in Python](https://docs.fusion.vectra.ai/api-recipes/recipes/create-a-traffic-source-in-python.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://docs.fusion.vectra.ai/api-recipes/recipes.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.
