---
title: "Update the access token for a social identity by verification ID"
method: PUT
path: "/api/my-account/identities/{target}/access-token"
tags: ["My account"]
---

# Update the access token for a social identity by verification ID

`PUT /api/my-account/identities/{target}/access-token`

This API updates the token storage for a social identity by a given social verification ID. 
It is used to fetch a new access token from the social provider and store it securely in Logto.

## Path parameters

- `target` string, required

## Request body

- object
  - `verificationRecordId` string, required

## Response `200`

The token storage was updated successfully. The new access token is returned in the response body.

- object
  - `access_token` string, required
  - `scope` string
  - `token_type` string
  - `expires_in` union
    - number
    - string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — The verification record is invalid; the social identity does not exist; or the access token is not available.

---

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