---
title: "Create a new API key"
method: POST
path: "/groups/{groupId}/apps/{appId}/api_keys"
tags: ["apikeys"]
---

# Create a new API key

`POST /groups/{groupId}/apps/{appId}/api_keys`

Create a new [API key](https://www.mongodb.com/docs/atlas/app-services/authentication/api-key).

## Request body

- object
  - `name` string, required

## Response `201`

The API key was successfully created.

- ApiKey
  - `_id` string
  - `key` string
  - `name` string
  - `disabled` string

---

[API](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/1365ab72bc03/schema)
