# How to: Insert Resource Tags with API

## How to: Insert Resource Tags with API

## Overview

Your organization probably has thousands of resources from different cloud services, tools and data repositories, that may be sensitive for different reasons: some contain financial data, some contain customer data, some may contain PII and others are critical production assets.

You may already be using tagging tools (DSPM) like Varonis, Securiti, Dig Security, Laminar, Centra or others.

With Apono, you can stream these resource tags using our API and [dynamically manage access](https://docs.apono.io/docs/access-flows/dynamic-access-management) to these resources.

Simply create an Access Flow for some tagged resources, like Prod, Region, PII, etc. and access to all present and future resources tagged will be controlled JIT with Apono based on the access duration and approval flow you set.

## How to use the Public API to insert custom tags

### Using the GET resources command

1. Use the [get integration resources](https://docs.apono.io/api-reference/apono/integrations) API command to get a list of resources managed by Apono. Insert the integration ID you'd like to get resources from.

### Adding tags to resources

2. Then, use the [update user tags of a resource](https://docs.apono.io/api-reference/apono/integrations) API command to update tag keys and values for resources. Insert the resource ID you got in step 1, then insert pairs of keys and values per ID.

### Inserting the tags into Apono

3. If successful, you'll get `200 - updated resource tags` response.

* Using the same API endpoint, it is also possible to edit or delete custom tags

## Results

1. Verify that tags were inserted successfully in the UI:
   1. Go to Apono -> Access Flows -> Create or edit an Access Flow -> under Tags, find your tags keys and values.
   2. You may also use the API [get integration resources](https://docs.apono.io/api-reference/apono/integrations) command. You should find your keys and values there.

> 👍 That's it! Now you can [create Access Flows](https://docs.apono.io/docs/access-flows/access-flows) using these tags.


---

# 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.apono.io/docs/access-flows/how-to-insert-resource-tags-with-api.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.
