---
title: "Generate new cloudKey token for a specific action on a specific lockdown plan"
method: POST
path: "/orgs/{orgId}/users/{userId}/credentials/{credentialId}/generateCloudKeyLockdownPlanActionToken"
tags: ["orgs/users"]
---

# Generate new cloudKey token for a specific action on a specific lockdown plan

`POST /orgs/{orgId}/users/{userId}/credentials/{credentialId}/generateCloudKeyLockdownPlanActionToken`

__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-user{params.userId}:w,o{params.orgId}-user:w,o:w,s-o:w<br/><br/>__Endpoint name__: generateCloudKeyLockdownPlanActionToken

## Path parameters

- `orgId` integer, required
- `userId` integer, required
- `credentialId` integer, required

## Request body

- object
  - `actionData` object[], required
    - `lockdownPlanId` integer, required
    - `action` 'trigger' | 'revert', required
    - `uiLabel` string, required
  - `notBefore` string, date, nullable
  - `expires` string, date, nullable
  - `description` string, nullable

## Response `201`

Created

- object
  - `data` object
    - `token` string
    - `apiUrl` string
  - `meta` object
    - `accessToken` object, nullable
      - `scopeUpdatedAt` string, date
    - `siteSpecificAccess` object, nullable
      - `isSiteSpecific` boolean
      - `siteIds` integer[], nullable
      - `siteIdsByScope` object, nullable
        - `string` integer[], nullable

---

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