---
title: Generate .ovpn profile for an existing device.
canonical: https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-0/device/generate--ovpn-profile-for-an-existing-device/
product: CloudConnexa Docs
---

# Generate .ovpn profile for an existing device.

`POST /api/v1/devices/{id}/profile`

Specify the `regionId` where this device will connect. The actual list of `regionIds` can be obtained from the `GET /api/beta/regions` endpoint.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| id | path | string | true | Device ID |
| userId | query | string | true | User ID |
| regionId | query | string | true | Region ID |

## Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | string |

To perform this operation, you must be authenticated by means of one of the following methods: oauth

---

Prev: [Create a new device](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-0/device/create-a-new-device.md)
Next: [Revoke profile for an existing device](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-0/device/revoke-profile-for-an-existing-device.md)
Index: https://openvpn.net/cloud-docs/llms.txt
