---
title: "Create Personal Key"
method: POST
path: "/api/me/personal-keys"
tags: ["me"]
---

# Create Personal Key

`POST /api/me/personal-keys`

## Response `200`

Successful Response

- PersonalAPIKeyCreateResponse
  - `id` integer, required
  - `full_key` string, required — Plaintext personal key in the format xag_personal_<6 chars>_<32 chars>. Returned exactly once.
  - `key_prefix` string, required
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, nullable

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
