---
updatedAt: 2026-06-08T17:21:56.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/linode-api/llms.txt
---

# Reset an OAuth client secret

Resets the OAuth Client secret for a client you own, and returns the OAuth Client with the plaintext secret. This secret is not supposed to be publicly known or disclosed anywhere. This can be used to generate a new secret in case the one you have has been leaked, or to get a new secret if you lost the original. The old secret is expired immediately, and logins to your client with the old secret will fail.


**Permissions and scopes**

To call this operation, you need the following:

- **Identity and access permissions**. Your user needs a role with these permissions assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).
  - Permissions: `reset_oauth_client_secret`
- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).

  - Scopes: `account:read_write`


**CLI**

```shell
linode-cli account client-reset-secret \
  edc6790ea9db4d224c5c
```

[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)

# OpenAPI definition

````json
{
  "components": {
    "securitySchemes": {
      "oauth": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.linode.com/oauth/authorize",
            "scopes": {
              "account:read_only": "Allows access to GET information about your account.",
              "account:read_write": "Allows access to all endpoints related to your account.",
              "child_account:read_only": "Allows access to GET information about deprecated parent/child operations.",
              "child_account:read_write": "Allows access to deprecated parent/child operations.",
              "databases:read_only": "Allows access to GET information about databases.",
              "databases:read_write": "Allows access to all endpoints related to databases.",
              "domains:read_only": "Allows access to GET Domains on your account.",
              "domains:read_write": "Allows access to all Domain endpoints.",
              "events:read_only": "Allows access to GET your Events.",
              "events:read_write": "Allows access to all endpoints related to your Events.",
              "firewall:read_only": "Allows access to GET information about your Firewalls.",
              "firewall:read_write": "Allows access to all Firewall endpoints.",
              "images:read_only": "Allows access to GET your Images.",
              "images:read_write": "Allows access to all endpoints related to your Images.",
              "ips:read_only": "Allows access to GET your ips.",
              "ips:read_write": "Allows access to all endpoints related to your ips.",
              "linodes:read_only": "Allows access to GET Linodes on your account.",
              "linodes:read_write": "Allow access to all endpoints related to your Linodes.",
              "lke:read_only": "Allows access to GET LKE Clusters on your account.",
              "lke:read_write": "Allows access to all endpoints related to LKE Clusters on your account.",
              "longview:read_only": "Allows access to GET your Longview Clients.",
              "longview:read_write": "Allows access to all endpoints related to your Longview Clients.",
              "monitor:read_only": "Allows access to Monitor (Akamai Cloud Pulse) data.",
              "monitor:read_write": "Allows access to GET Monitor (Akamai Cloud Pulse) data.",
              "natgateways:read_only": "Allows access to Get NAT Gateways on your account.",
              "natgateways:read_write": "Allows access to all NAT Gateway endpoints.",
              "nodebalancers:read_only": "Allows access to GET NodeBalancers on your account.",
              "nodebalancers:read_write": "Allows access to all NodeBalancer endpoints.",
              "object_storage:read_only": "Allows access to GET information related to your Object Storage.",
              "object_storage:read_write": "Allows access to all Object Storage endpoints.",
              "stackscripts:read_only": "Allows access to GET your StackScripts.",
              "stackscripts:read_write": "Allows access to all endpoints related to your StackScripts.",
              "volumes:read_only": "Allows access to GET your Volumes.",
              "volumes:read_write": "Allows access to all endpoints related to your Volumes.",
              "vpc:read_only": "Allows access to GET information for VPCs.",
              "vpc:read_write": "Allows access to all endpoints related to VPC and Subnet creation, updating, and deletion."
            },
            "tokenUrl": "https://login.linode.com/oauth/token"
          }
        },
        "type": "oauth2"
      },
      "personalAccessToken": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "description": "See documentation for Akamai's Linode API",
    "url": "https://techdocs.akamai.com/linode-api/reference"
  },
  "info": {
    "description": "\"[Read the API documentation](https://techdocs.akamai.com/linode-api/reference/api).\"",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Administration",
    "version": "4.229.1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/{apiVersion}/account/oauth-clients/{clientId}/reset-secret": {
      "post": {
        "description": "Resets the OAuth Client secret for a client you own, and returns the OAuth Client with the plaintext secret. This secret is not supposed to be publicly known or disclosed anywhere. This can be used to generate a new secret in case the one you have has been leaked, or to get a new secret if you lost the original. The old secret is expired immediately, and logins to your client with the old secret will fail.\n\n\n**Permissions and scopes**\n\nTo call this operation, you need the following:\n\n- **Identity and access permissions**. Your user needs a role with these permissions assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).\n  - Permissions: `reset_oauth_client_secret`\n- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).\n\n  - Scopes: `account:read_write`\n\n\n**CLI**\n\n```shell\nlinode-cli account client-reset-secret \\\n  edc6790ea9db4d224c5c\n```\n\n[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Linode API",
          "url": "https://techdocs.akamai.com/linode-api/reference/post-reset-client-secret"
        },
        "operationId": "post-reset-client-secret",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "2737bf16b39ab5d7b4a1",
                  "label": "Client",
                  "public": false,
                  "redirect_uri": "https://example.org/oauth/callback",
                  "secret": "<REDACTED>",
                  "status": "active",
                  "thumbnail_url": "https://api.linode.com/v4/account/clients/2737bf16b39ab5d7b4a1/thumbnail"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "A third-party application registered to Akamai that users may log into with their Akamai Cloud account through our authentication server at [login.linode.com](https://login.linode.com).  Using an OAuth Client, a third-party developer may be given access to some, or all, of a user's account for the purposes of their application.",
                  "properties": {
                    "id": {
                      "description": "__Read-only__ The OAuth Client ID.  This is used to identify the client, and is a publicly known value (it is not a secret).",
                      "example": "2737bf16b39ab5d7b4a1",
                      "readOnly": true,
                      "type": "string",
                      "x-linode-cli-display": 1
                    },
                    "label": {
                      "description": "__Filterable__ The name of this application.  This will be presented to users when they are asked to grant it access to their Account.",
                      "example": "Test_Client_1",
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-cli-display": 2,
                      "x-linode-filterable": true
                    },
                    "public": {
                      "default": false,
                      "description": "__Filterable__ If this is a public or private OAuth Client.  Public clients have a slightly different authentication workflow than private clients.  See the [OAuth spec](https://oauth.net/2/) for more details.",
                      "example": false,
                      "type": "boolean",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-cli-display": 4,
                      "x-linode-filterable": true
                    },
                    "redirect_uri": {
                      "description": "The location a successful log in from [login.linode.com](https://login.linode.com) should be redirected to for this client.  The receiver of this redirect should be ready to accept an OAuth exchange code and finish the OAuth exchange.",
                      "example": "https://example.org/oauth/callback",
                      "format": "url",
                      "type": "string",
                      "x-linode-cli-display": 5
                    },
                    "secret": {
                      "description": "__Read-only__ The OAuth Client secret, used in the OAuth exchange.  This is returned as `<REDACTED>` except when an OAuth Client is created or its secret is reset.  This is a secret, and should not be shared or disclosed publicly.",
                      "example": "<REDACTED>",
                      "readOnly": true,
                      "type": "string"
                    },
                    "status": {
                      "description": "__Read-only__ The status of this application, either `active` (default), `disabled`, or `suspended`.",
                      "enum": [
                        "active",
                        "disabled",
                        "suspended"
                      ],
                      "example": "active",
                      "readOnly": true,
                      "type": "string",
                      "x-linode-cli-color": {
                        "default_": "white",
                        "suspended": "red"
                      },
                      "x-linode-cli-display": 3
                    },
                    "thumbnail_url": {
                      "description": "__Read-only__ The URL where this client's thumbnail may be viewed, or `null` if this client does not have a thumbnail set.",
                      "example": "https://api.linode.com/v4/account/clients/2737bf16b39ab5d7b4a1/thumbnail",
                      "format": "url",
                      "nullable": true,
                      "readOnly": true,
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/oauth-client.yaml"
                  }
                }
              }
            },
            "description": "Client secret reset successfully."
          },
          "default": {
            "content": {
              "application/json": {
                "example": {
                  "errors": [
                    {
                      "reason": "Invalid JSON"
                    }
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "errors": {
                      "description": "Any warnings associated with a response.",
                      "items": {
                        "additionalProperties": false,
                        "description": "An object for describing a single error that occurred during the processing of a request.",
                        "properties": {
                          "field": {
                            "description": "The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as `null` if the error is not specific to any single element of the request.",
                            "example": "fieldname",
                            "type": "string"
                          },
                          "reason": {
                            "description": "What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to [Open a support ticket](ref:post-ticket) or perform some other action before you can complete the request successfully.",
                            "example": "fieldname must be a valid value",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-object.yaml"
                        }
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "See [Errors](ref:errors) for the range of possible error response codes."
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth": [
              "account:read_write"
            ]
          }
        ],
        "summary": "Reset an OAuth client secret",
        "tags": [
          "OAuth clients"
        ],
        "x-akamai": {
          "tabs": [
            {
              "syntax": "linode-cli account client-reset-secret \\\n  edc6790ea9db4d224c5c",
              "title": "CLI",
              "url": "https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli"
            }
          ]
        },
        "x-linode-cli-action": "client-reset-secret",
        "x-linode-iam": [
          {
            "permissions": [
              "reset_oauth_client_secret"
            ]
          }
        ]
      },
      "parameters": [
        {
          "description": "__Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta.",
          "in": "path",
          "name": "apiVersion",
          "required": true,
          "schema": {
            "enum": [
              "v4",
              "v4beta"
            ],
            "example": "v4",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/api-version-path.yaml"
          }
        },
        {
          "description": "The OAuth Client ID to look up.",
          "in": "path",
          "name": "clientId",
          "required": true,
          "schema": {
            "example": "2737bf16b39ab5d7b4a1",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/oauth-client-id-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/oauth-client-reset-secret.yaml",
        "path-info": "/{apiVersion}/account/oauth-clients/{clientId}/reset-secret"
      },
      "x-linode-cli-command": "account"
    }
  },
  "servers": [
    {
      "url": "https://api.linode.com"
    }
  ],
  "tags": [
    {
      "description": "Use an OAuth client to allow users (using their Akamai Cloud Computing account) to log in to your own application, and optionally grant your application some amount of access to their Akamai Cloud Computing services.",
      "name": "OAuth clients"
    }
  ],
  "x-akamai": {
    "auth-type": "OAUTH",
    "file-path": "administration.yaml"
  },
  "x-readme": {
    "apply-tag-changes": true,
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
````

# Sibling pages

* [Create an OAuth client](https://techdocs.akamai.com/linode-api/reference/post-client.md)
* [List OAuth clients](https://techdocs.akamai.com/linode-api/reference/get-clients.md)
* [Get an OAuth client](https://techdocs.akamai.com/linode-api/reference/get-client.md)
* [Update an OAuth client](https://techdocs.akamai.com/linode-api/reference/put-client.md)
* [Delete an OAuth client](https://techdocs.akamai.com/linode-api/reference/delete-client.md)
* [Get an OAuth client's thumbnail](https://techdocs.akamai.com/linode-api/reference/get-client-thumbnail.md)
* [Update an OAuth client's thumbnail](https://techdocs.akamai.com/linode-api/reference/put-client-thumbnail.md)