---
title: "Get code."
method: GET
path: "/api/v1/token/code"
tags: ["Token"]
---

# Get code.

`GET /api/v1/token/code`

## Request

- Base URL: `https://api.intheloop.io`
- URL: `https://api.intheloop.io/api/v1/token/code`
- Auth: API key in header `Authorization`

## Headers

- `Authorization` string
- `X-Impersonate-User` string
- `X-ClientId` string

## Response `200`

OK

- AuthenticationCode: Authentication Code for code exchange
  - `code` string: Just the auth code
  - `codeDeepLink` string: Code in an appropriate deep link form

## Other responses

- `401`: Unauthorized request. Check fields message and error code from response body for additional information.
- `429`: Too many requests. Check response header Retry-After indicating how long to wait before making a new request.
- `451`: Unavailable because account is not verified.

---

[API](https://skmtc.dev/intheloop/apis/loop-api.md) - [All operations](https://skmtc.dev/intheloop/apis/loop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/intheloop/apis/loop-api/revisions/0892c5ba0787?raw)
