---
title: "Get Login Short Code"
method: POST
path: "/v2/oauth/getshortcode"
tags: ["OAuth2"]
---

# Get Login Short Code

`POST /v2/oauth/getshortcode`

Generates a new login short code

## Request body

- GetShortCodeRequest — Details needed to generate a login short code
  - `client_id` string, required — The API client id generated from your app management dashboard.
  - `scopes` string[], required — The list of scopes to request from the user.
  - `version` integer — Determines the format of the shortcode returned (defaults to v1) * 1 - a 6 digit numeric shortcode * 2 - a 6 digit code consisting of numbers and uppercase letters, excluding 1, I, 0, and O

## Response `200`

Success

- ShortCodeDetails — Details about a generated short code login request
  - `code` string, required — The short code that should be displayed to a user to use for login
  - `device_id` string, required — The identifier for this device's request that will be needed to check the status of the short code login
  - `expires_at` string, date-time, required — The date and time at which the short code has expired and is no longer valid
  - `interval` integer, required — How often (in seconds) you may poll to check the short code's status
  - `verification_url` string, required — The URL that the user should visit to enter their short code

## Other responses

- `400` — The data provided to the call was incorrect or incomplete.

---

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