---
title: "Link a user account with the provider's account using an id token"
method: POST
path: "/link/idtoken"
tags: ["security"]
---

# Link a user account with the provider's account using an id token

`POST /link/idtoken`

Link the authenticated user's account with an external OAuth provider account using an ID token. Requires elevated permissions.

## Request body

- LinkIdTokenRequest
  - `provider` 'apple' | 'google', required
  - `idToken` string, required — Apple ID token
  - `nonce` string — Nonce used during sign in process

## Response `200`

Identity linked successfully

- 'OK'

## Other responses

- `default` — An error occurred while processing the request

---

[API](https://skmtc.net/nhost/apis/nhost-authentication-api.md) · [All operations](https://skmtc.net/nhost/apis/nhost-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nhost/nhost-authentication-api/revisions/a5c0d88b55c4/schema)
