---
title: "POST /v1/device/code"
method: POST
path: "/v1/device/code"
tags: ["OauthV1DeviceCode"]
---

# POST /v1/device/code

`POST /v1/device/code`

Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant

## Response `201`

Created

- OauthV1DeviceCode
  - `device_code` string, nullable — The device verification code.
  - `user_code` string, nullable — The verification code which end user uses to verify authorization request.
  - `verification_uri` string, nullable — The URI that the end user visits to verify authorization request.
  - `verification_uri_complete` string, nullable — The URI with user_code that the end-user alternatively visits to verify authorization request.
  - `expires_in` integer, nullable — The expiration time of the device_code and user_code in seconds.
  - `interval` integer, nullable — The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.

## Changes

- **2023-08-10** (v1) `69cec05717a0` — 1 info
  - api tag `OauthV1DeviceCode` added
- **2022-12-14** (v1) `135f2c698300` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/twilio/apis/oauth-v1/changes/v1/device/code/post.md)

---

[API](https://skmtc.dev/twilio/apis/oauth-v1.md) · [All operations](https://skmtc.dev/twilio/apis/oauth-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/twilio/oauth-v1/revisions/e04cf28ae0f2/schema)
