---
title: "Consume"
method: POST
path: "/gate/{app}/consume"
tags: ["gate"]
---

# Consume

`POST /gate/{app}/consume`

## Request

- Base URL: `https://api.b2metric.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.b2metric.com/gate/{app}/consume`
- Auth: none declared

## Path parameters

- `app` string, required

## Headers

- `x-b2m-tenant` string, nullable
- `authorization` string, nullable

## Request body

- GateRequest
  - `tenant` string, required
  - `user` string, required
  - `session_id` string, nullable
  - `roles` string[]

## Response `200`

Successful Response

- GateDecisionOut
  - `granted` boolean, required
  - `reason` string, nullable
  - `mode` 'normal' | 'setup'

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/b2metric/apis/b2metric-license-api.md) - [All operations](https://skmtc.dev/b2metric/apis/b2metric-license-api/llms.txt) - [OpenAPI document](https://skmtc.dev/b2metric/apis/b2metric-license-api/revisions/5c26e11e8b53?raw)
