---
title: "Create and Assign One Organization API Key to One Project"
method: POST
path: "/api/atlas/v2/groups/{groupId}/apiKeys"
tags: ["Programmatic API Keys"]
---

# Create and Assign One Organization API Key to One Project

`POST /api/atlas/v2/groups/{groupId}/apiKeys`

Creates and assigns the specified organization API key to the specified project. Users with the Project Owner role in the project associated with the API key can use the organization API key to access the resources.

## Path parameters

- `groupId` string, required

## Query parameters

- `envelope` boolean
- `pretty` boolean

## Response `200`

OK

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

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