---
title: "GET /github/authorize"
method: GET
path: "/github/authorize"
tags: ["github"]
---

# GET /github/authorize

`GET /github/authorize`

Get and save a user github token to their database object. This allows subsequent queries for github data from the users scope.

## Query parameters

- `code` string, required
- `state` string, required

## Response `200`

Default Response

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

---

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