---
title: "Changes to Create an API key"
method: POST
path: "/v2/api_keys"
---

# Changes to Create an API key

`POST /v2/api_keys`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 2 of 8 revisions.

- **2026-08-08** `e85040b266cc` — 6 breaking, 6 info
- **2026-08-05** `fca567a46b3a` — 1 warning, 1 info

## Changes

- **2026-08-08** `e85040b266cc` — 6 breaking, 6 info
  - added `#/components/schemas/ApiKeyRole` to the `api_key_role` request property `allOf` list
  - removed the enum value `personal` of the request property `api_key_role`
  - removed the enum value `serving` of the request property `api_key_role`
  - removed the enum value `serving_and_indexing` of the request property `api_key_role`
  - the `api_key_role` request property type changed from `string` to no type
  - the `api_key_role` response's property type changed from `string` to no type for status `201`
  - request property `api_key_role` reactivated
  - added `#/components/schemas/ApiKeyRole` to the `api_key_role` response property `allOf` list for the response status `201`
  - removed the `personal` enum value from the `api_key_role` response property for the response status `201`
  - removed the `serving` enum value from the `api_key_role` response property for the response status `201`
  - removed the `serving_and_indexing` enum value from the `api_key_role` response property for the response status `201`
  - response property `api_key_role` reactivated
- **2026-08-05** `fca567a46b3a` — 1 warning, 1 info
  - added the new `agent_end_user` enum value to the `agent_roles/items/role` response property for the response status `201`
  - added the new `agent_end_user` enum value to the request property `agent_roles/items/role`

---

[Operation](https://skmtc.dev/vectara/apis/vectara-rest-api-v2/docs/v2/api_keys/post.md) · [API](https://skmtc.dev/vectara/apis/vectara-rest-api-v2.md) · [Page](https://skmtc.dev/vectara/apis/vectara-rest-api-v2/changes/v2/api_keys/post)
