---
title: "GET /api/{org_id}/settings/gen_ai/agent_mapping"
method: GET
path: "/api/{org_id}/settings/gen_ai/agent_mapping"
tags: ["GenAI Settings"]
---

# GET /api/{org_id}/settings/gen_ai/agent_mapping

`GET /api/{org_id}/settings/gen_ai/agent_mapping`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/settings/gen_ai/agent_mapping`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/settings/gen_ai/agent_mapping/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Response `200`

Gen-AI agent mapping config

- GenAiAgentMappingConfig: Org-level fallback mapping for normalizing Gen-AI agent identity.
  - `agent_id_fields` string[]: Incoming telemetry attribute names to use as fallbacks for `gen_ai.agent.id`.
  - `agent_name_fields` string[]: Incoming telemetry attribute names to use as fallbacks for `gen_ai.agent.name`.
  - `env_fields` string[]: Incoming telemetry attribute names to use as fallbacks for the agent's environment.
  - `version_fields` string[]: Incoming telemetry attribute names to use as fallbacks for the agent's version.

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
