---
title: "Rotate Agent Credential"
method: POST
path: "/v1/agents/{agent_id}/credentials:rotate"
tags: ["Agent collaboration"]
---

# Rotate Agent Credential

`POST /v1/agents/{agent_id}/credentials:rotate`

## Request

- Base URL: `https://api.corvio.ai`
- URL: `https://api.corvio.ai/v1/agents/{agent_id}/credentials:rotate`
- Auth: HTTP bearer

## Path parameters

- `agent_id` string, uuid, required

## Response `200`

Successful Response

- PublicAgentCredentialResponse
  - `agent_id` string, uuid, required
  - `secret` string, required
  - `display_prefix` string, required
  - `scopes` string[], required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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