---
title: "Complete a pending GitHub link with the email-verification OTP"
method: POST
path: "/v1/users/me/link-github-otp"
tags: ["Users Me"]
---

# Complete a pending GitHub link with the email-verification OTP

`POST /v1/users/me/link-github-otp`

## Request body

- UserMeLinkGithubOtpBodyDto
  - `code` string, required — OTP code the user entered on /connections/verify.
  - `pendingAuthenticationToken` string, required — Pending authentication token returned by an earlier link attempt.

## Response `200`

- UserMeLinkGithubResponseDto
  - `status` 'linked' | 'pending_verification', required
  - `githubUserId` string, nullable, required
  - `githubUsername` string, nullable, required
  - `pendingAuthenticationToken` string, nullable, required

## Other responses

- `400` — Validation failed
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `500` — Internal server error

---

[API](https://skmtc.net/vendure/apis/vendure-io-api-public.md) · [All operations](https://skmtc.net/vendure/apis/vendure-io-api-public/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vendure/vendure-io-api-public/revisions/5fc4757128af/schema)
