---
title: "Create Duo Account"
method: POST
path: "/api/v2/duo/accounts"
tags: ["Duo"]
---

# Create Duo Account

`POST /api/v2/duo/accounts`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/duo/accounts`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/duo/accounts/post.ts> (a function with typed inputs; its response is checked against the schema)

Registers a Duo account for an organization. Only one Duo account will be allowed,
in case an organization has a Duo account already a 409 (Conflict) code will be returned.

#### Sample Request
```
  curl -X POST https://console.jumpcloud.com/api/v2/duo/accounts \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -H 'x-api-key: {API_KEY}' \
  -d '{}'
```

## Headers

- `x-org-id` string

## Response `201`

- DuoAccount
  - `id` string, required: object ID
  - `name` string: Duo application name.
  - `readOnly` boolean: When true, the credential is governed by the primary organization and cannot be modified.

## Other responses

- `400`: Bad Request
- `401`: Unauthenticated
- `403`: Unauthorized
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
