---
title: "Finish a device sign-in"
url: https://xovris.ai/docs/api/operations/postdevicetoken/
---

# Finish a device sign-in

`POST /v1/device/token`

Open to anyone, so no Idempotency-Key is kept: nobody is signed in to keep it for, and replaying one caller's answer to another would hand it over.

No token needed: anyone may call this.

## Request body

### `application/json`

- `grant_type` (string)
- `device_code` (string)
- `client_id` (string)

Example:

```json
{
  "grant_type": "string",
  "device_code": "string",
  "client_id": "string"
}
```

## Answers

- `200`: Done. (application/json: T0bcf00e90cf0 | T7ab370e71f84)
- `400`: Refused, as OAuth 2.0 says (RFC 6749, RFC 7591, RFC 8628). (application/json: OAuthError)
- `401`: Refused, as OAuth 2.0 says (RFC 6749, RFC 7591, RFC 8628). (application/json: OAuthError)
- `404`: Nothing with that id here, or it belongs to another workspace. Nothing was changed. (application/json: Problem)
- `default`: Refused or failed: an OAuth 2.0 error from the standard's own checks, otherwise the Problem with what to do next. (application/json: Problem | OAuthError; application/problem+json: Problem)

## A call

The address is https://api.xovris.ai/v1/device/token - put your own value in place of each part in braces.

```sh
curl --request POST \
  --url 'https://api.xovris.ai/v1/device/token' \
  --header 'Content-Type: application/json' \
  --data '{"grant_type":"string","device_code":"string","client_id":"string"}'
```
