---
title: "POST /v1/me/apikeys/{id}/rotate"
method: POST
path: "/v1/me/apikeys/{id}/rotate"
tags: ["UserAPIKeyService"]
---

# POST /v1/me/apikeys/{id}/rotate

`POST /v1/me/apikeys/{id}/rotate`

## Path parameters

- `id` string, required

## Request body

- ApikeyV1RotateAPIKeyRequest
  - `id` string

## Response `200`

OK

- ApikeyV1RotateAPIKeyReply
  - `apikey` ApikeyV1APIKeyInfo — APIKeyInfo API Key 元数据；plaintext key 仅在 Create/Rotate 时一次性返回。
    - `billingMode` string
    - `channelSourceCode` string
    - `channelSourceId` string
    - `createdAt` string, date-time
    - `creatorId` string
    - `creatorName` string
    - `expiresAt` string, date-time
    - `id` string
    - `keyPrefix` string
    - `lastUsedAt` string, date-time
    - `lastUsedIp` string
    - `name` string
    - `scopes` string[]
    - `status` integer
    - `subscriptionId` string
    - `teamId` string
    - `teamName` string
    - `updatedAt` string, date-time
    - `userId` string
  - `plaintextKey` string

---

[API](https://skmtc.dev/apiqik/apis/apiqik-api.md) · [All operations](https://skmtc.dev/apiqik/apis/apiqik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apiqik/apiqik-api/revisions/e06b96127408/schema)
