---
title: "Issue (rotate) an agent-scoped operator key: raw token returned once"
method: POST
path: "/agents/{agentId}/operator-key"
tags: ["Setup · Agent management"]
---

# Issue (rotate) an agent-scoped operator key: raw token returned once

`POST /agents/{agentId}/operator-key`

## Request

- Base URL: `https://api.ziggsai.com`
- URL: `https://api.ziggsai.com/agents/{agentId}/operator-key`
- Auth: HTTP bearer

## Path parameters

- `agentId` string, required

## Response `200`

OK

- AgentOperatorKeyIssueResponseSchema
  - `keyId` string, required
  - `token` string, required
  - `scopes` string[], required
  - `boundAgentId` string, required

---

[API](https://skmtc.dev/ziggsai/apis/ziggs-developer-api.md) · [All operations](https://skmtc.dev/ziggsai/apis/ziggs-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ziggsai/apis/ziggs-developer-api/revisions/eda79030e072?raw)
