---
title: "Get Agent Optimizations"
method: GET
path: "/gateway/settings/agents/{agent_id}/optimizations"
---

# Get Agent Optimizations

`GET /gateway/settings/agents/{agent_id}/optimizations`

## Path parameters

- `agent_id` string, required

## Response `200`

Successful Response

- AgentOptimization[]
  - `id` string, required — A unique ID for the request (not the message). Repeated identical requests get different IDs. However, for a streaming response, the ID will be the same for all responses in the stream.
  - `keys` string[], required
  - `name` string, required
  - `description` string, required
  - `category` string, required
  - `availability` string, required
  - `safety` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ai21/apis/ai21-studio-api.md) · [All operations](https://skmtc.net/ai21/apis/ai21-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ai21/ai21-studio-api/versions/4105747cd57d/schema)
