---
title: "Lock session"
method: POST
path: "/api/v2/user/lock"
tags: ["User"]
---

# Lock session

`POST /api/v2/user/lock`

Locks the current user session.  This disallows operations that require
an unlocked token, such as sending a transaction.

## Response `200`

OK

- object
  - `session` LockedSession
    - `created` string, date-time, required
    - `expires` string, date-time, required
    - `id` string, required
    - `ip` string, ipv4
    - `ipRestrict` string[] — IP addresses or CIDR blockof clients that are allowed to use this token
    - `origin` string, required — BitGo environment that issued this token. The token is only valid in this environment.
    - `scope` string[], required
    - `user` string, required

---

[API](https://skmtc.net/bitgo/apis/bitgo-api.md) · [All operations](https://skmtc.net/bitgo/apis/bitgo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitgo/bitgo-api/revisions/e445c15e5bee/schema)
