---
title: "Oauth Url"
method: POST
path: "/api/gitlab/oauth/url"
tags: ["gitlab-code"]
---

# Oauth Url

`POST /api/gitlab/oauth/url`

## Request body

- GitLabOAuthURLRequest — Request body for generating a GitLab OAuth URL.
  - `redirect_uri` string, nullable — Frontend callback URL registered with the GitLab OAuth application.
  - `scope` string, nullable — Space-delimited GitLab OAuth scopes.
  - `base_url` string, nullable — GitLab base URL, for example https://gitlab.com.

## Response `200`

Successful Response

- GitLabOAuthURLResponse — Authorization URL response.
  - `authorization_url` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deeptrace/apis/fastapi.md) · [All operations](https://skmtc.net/deeptrace/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrace/fastapi/versions/2e2a6de8aeda/schema)
