---
updatedAt: 2026-03-01T18:49:35.000Z
---

# Rotate the JWT

Generate a new JSON Web Token for the specified sandbox instance. Use this to prevent access to a particular sandbox by developers who had the previous JWT.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Sandbox API",
    "url": "https://techdocs.akamai.com/sandbox/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Sandboxes",
    "version": "v0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/sandboxes/{sandboxId}/rotateJWT": {
      "post": {
        "description": "Generate a new JSON Web Token for the specified sandbox instance. Use this to prevent access to a particular sandbox by developers who had the previous JWT.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Sandbox API",
          "url": "https://techdocs.akamai.com/sandbox/reference/post-sandbox-rotate-jwt"
        },
        "operationId": "post-sandbox-rotate-jwt",
        "parameters": [
          {
            "description": "__Enum__ The access level of the request. Either the default `USER` value to perform the request for the sandboxes that you can access, or `ACCOUNT` to perform the request for all sandboxes within the account.",
            "in": "query",
            "name": "access",
            "schema": {
              "default": "USER",
              "enum": [
                "USER",
                "ACCOUNT"
              ],
              "example": "ACCOUNT",
              "type": "string"
            },
            "x-akamai": {
              "file-path": "parameters/accessParam-query.yaml"
            }
          },
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "jwtToken": "eyJ0eXAiOiJKV1QiLC...NwpuL1f8z9U6Se3p_uYa_sgfWzw"
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "jwtToken": {
                      "description": "Generates a new JSON Web Token for the specified sandbox instance.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "jwtToken"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/rotate-jwt-response.yaml"
                  }
                }
              }
            },
            "description": "Successful operation."
          }
        },
        "summary": "Rotate the JWT",
        "tags": [
          "Rotate JWT"
        ]
      },
      "parameters": [
        {
          "description": "Unique identifier for the sandbox.",
          "in": "path",
          "name": "sandboxId",
          "required": true,
          "schema": {
            "example": "2956607f-854e-11e8-898a-0242ac110002",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/sandboxId-path.yaml"
          }
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/sandbox-api/v1"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "sandboxes.yaml"
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```