---
title: "Restore revoked access token"
method: POST
path: "/tokens/{key}/restore"
tags: ["tokens"]
---

# Restore revoked access token

`POST /tokens/{key}/restore`

Restore access for the specified token if access had previously been revoked.

## Path parameters

- `key` string, required

## Response `200`

Success, token permission restored.

- TokensResponse — Metadata about the JSON web token.
  - `id` string
  - `isRevoked` string — Zero if the token is still active, non-zero if the token has been revoked.
  - `name` string — The name of the token.
  - `apiLinks` HATEOAS[] — Hypertext As The Engine Of Application State.
    - `href` string, required — URL of the related HATEOAS link you can use for subsequent calls.
    - `rel` string, required — Link relation that describes how this link relates to the previous call.
    - `method` string, required — The HTTP method required for the related call.

## Other responses

- `400` — Invalid arguments, e.g. trying to restore a token which had not been revoked. Please review the response for error details.
- `401` — Caller did not supply credentials or did not provide the correct credentials. If you are using an API key, it may be invalid or your Authorization header may be malformed.
- `404` — The resource you requested does not exist.
- `default` — An unexpected error occurred. Please review the response for error details.

---

[API](https://skmtc.net/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.net/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesforce/refocus-api/versions/42c2153b047e/schema)
