---
title: "POST /v1/device/code"
method: POST
path: "/v1/device/code"
---

# 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.
  - `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.
  - `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.

---

[API](https://skmtc.net/twilio/apis/twilio-oauth-v1.md) · [All operations](https://skmtc.net/twilio/apis/twilio-oauth-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/twilio/twilio-oauth-v1/versions/068c03c6d8e3/schema)
