---
title: "POST /v1alpha1/auth/approve_token"
method: POST
path: "/v1alpha1/auth/approve_token"
tags: ["AuthService"]
---

# POST /v1alpha1/auth/approve_token

`POST /v1alpha1/auth/approve_token`

## Request

- Base URL: `http://localhost:4000`
- URL: `http://localhost:4000/v1alpha1/auth/approve_token`
- Auth: HTTP bearer and API key in header `x-id-api-key`

Handle manual approval of external authorization requets

## Request body

- ApproveTokenRequest
  - `deviceId` string: The device id used to handle the approval requestion
  - `sessionId` string: The session id related to the token that needs to be approved
  - `otp` string: The OTP sent to the device related to the request
  - `approve` boolean: The action made by the user (true: allow the token, false: deny the token)

## Response `200`

OK

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/agntcy/apis/agntcy-identity-service-api.md) - [All operations](https://skmtc.dev/agntcy/apis/agntcy-identity-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agntcy/apis/agntcy-identity-service-api/revisions/1dc8f8328648?raw)
