---
title: "Data for the device sign-in screen"
method: GET
path: "/oauth/device-info"
tags: ["OAuth Consent"]
---

# Data for the device sign-in screen

`GET /oauth/device-info`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/oauth/device-info`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

## Query parameters

- `user_code` string, required
- `workspace_id` integer, nullable

## Response `200`

Device sign-in screen data

- DeviceConsentInfo
  - `client` ConsentClient, required
    - `client_id` string, required
    - `name` string, required
    - `logo_url` string, nullable
    - `tos_url` string, nullable
    - `privacy_url` string, nullable
  - `user` ConsentUser, required
    - `email` string, required
    - `name` string, nullable
  - `workspace` ConsentWorkspace, required
    - `id` integer, required
    - `name` string, required
  - `has_workspace_access` boolean, required: False when the user is not an active member of the app's workspace
  - `workspace_selectable` boolean, required: True when the workspace the person picks is the one used; false when the app is bound to its own workspace
  - `projects` ConsentProject[], required
    - `id` integer, required
    - `name` string, required
  - `already_connected` AlreadyConnected
    - `project_id` integer, nullable: The lowest project the app is already connected to; null = "All projects"
    - `project_ids` integer[], nullable: Every project the app is already connected to; null = "All projects"
    - `read_only` boolean, required: True when the connection was granted read-only; a re-approval must send it back, or the grant widens to full access
  - `user_code` string, required: The code as shown to the person, XXXX-XXXX

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
