---
title: "Approve an MCP client for a team with a policy. The page then accepts the OAuth consent, which binds the client to this grant."
method: POST
path: "/v1/connect"
tags: ["account"]
---

# Approve an MCP client for a team with a policy. The page then accepts the OAuth consent, which binds the client to this grant.

`POST /v1/connect`

## Request

- Base URL: `https://api.briq.cloud`
- URL: `https://api.briq.cloud/v1/connect`
- Auth: none declared

## Request body

- object
  - `clientId` string, required
  - `teamId` string, required
  - `name` string
  - `policy` KeyPolicy
    - `maxConcurrentBriqs` integer
    - `dailySpendCapCents` integer
    - `allowedSizes` string[]
    - `allowedRegistries` string[]
    - `maxSleep` string: The longest sleep this credential may give a briq, "never" included ("never": no bound of its own; the environment and the plan still apply)
    - `expiresAt` string, date-time, nullable

## Response `201`

ok

- object
  - `id` string, required
  - `teamId` string, required
  - `policy` object, required
    - `maxConcurrentBriqs` integer
    - `dailySpendCapCents` integer
    - `allowedSizes` string[]
    - `allowedRegistries` string[]
    - `maxSleep` string: The longest sleep this credential may give a briq, "never" included ("never": no bound of its own; the environment and the plan still apply)
    - `expiresAt` string, date-time, nullable

## Other responses

- `400`: validation
- `401`: unauthorized
- `403`: forbidden
- `404`: not found

---

[API](https://skmtc.dev/briq/apis/briq-api.md) · [All operations](https://skmtc.dev/briq/apis/briq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/briq/apis/briq-api/revisions/609b424459cb?raw)
