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

# Oauth Url

`POST /api/gitlab/oauth/url`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/gitlab/oauth/url`
- Auth: none declared

## 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.dev/deeptrace/apis/deeptrace-api.md) - [All operations](https://skmtc.dev/deeptrace/apis/deeptrace-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/deeptrace-api/revisions/855e59bb07f0?raw)
