---
title: "POST /api/v1/repository_access/authorize_git"
method: POST
path: "/api/v1/repository_access/authorize_git"
tags: ["repository_access"]
---

# POST /api/v1/repository_access/authorize_git

`POST /api/v1/repository_access/authorize_git`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/repository_access/authorize_git`
- Auth: HTTP bearer

Authorize an authenticated Git request for a physical repository, isolated import, or swarm runner. Ordinary repository grants require current Git authority and gateway backend fencing version 1. Anonymous/public-source, COM mirror, Home-view and component credentials are not supported. With server rollout enabled, a retained immutable import read may negotiate read-grant protocol 1 and receive a bounded reusable decision whose deadline never exceeds token expiry. Ordinary repository grants and import transfer capabilities do not receive a reusable deadline.

## Headers

- `X-Vex-Git-Read-Grant-Protocol` string

## Request body

- object

## Response `200`

Success

- object

## Other responses

- `401`: Unauthorized
- `402`: The organization's billing limit refuses this usage; see `error.upgrade_path`
- `403`: Forbidden
- `404`: Not found
- `422`: Unprocessable entity
- `502`: Bad gateway

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
