---
title: "GET /auth/tokens/github.com"
method: GET
path: "/auth/tokens/github.com"
tags: ["tokens"]
---

# GET /auth/tokens/github.com

`GET /auth/tokens/github.com`

Add a new github.com token, used by accounts page.

## Query parameters

- `code` string
- `state` string

## Response `200`

Successfully added a new github.com token

- TokenUser
  - `dbCreateDate` integer
  - `dbUpdateDate` integer
  - `id` integer
  - `tokenSource` 'quay.io' | 'github.com' | 'dockstore' | 'bitbucket.org' | 'gitlab.com' | 'zenodo.org' | 'google.com' | 'orcid.org'
  - `userId` integer
  - `username` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict

## Changes

- **2026-06-03** `63efefdfd734` — 1 info
  - added the new optional `query` request parameter `state`
- **2025-05-05** `7a89c3c933f1` — 1 warning
  - deleted the `query` request parameter `state`

[Change history](https://skmtc.dev/dockstore/apis/dockstore-api/changes/auth/tokens/github.com/get.md)

---

[API](https://skmtc.dev/dockstore/apis/dockstore-api.md) · [All operations](https://skmtc.dev/dockstore/apis/dockstore-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dockstore/dockstore-api/revisions/9d82a4e96aa7/schema)
