How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitLab Tokens API

Endpoints for exchanging, refreshing, and revoking OAuth tokens.

GitLab Tokens API is one of 44 APIs that GitLab publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Tokens. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, rate-limit docs, and an AsyncAPI specification.

This API exposes 3 operations across 3 paths, and defines 4 schemas. It is described by OpenAPI 3.0.1, at version v4.

Requests are made against a single base URL, https://www.gitlab.com/api/.

3 operations 3 paths 4 schemas 1 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
v4
Base URL
https://gitlab.com/api/graphql
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

GitLab Tokens API declares 1 security scheme for authenticating requests. An API key is passed in the header as Private-Token (ApiKeyAuth). By default, every request must be authenticated.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 1 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Tokens 3

Endpoints for exchanging, refreshing, and revoking OAuth tokens.

POST
/oauth/token
GitLab Exchange Code for Access Token
exchangeToken body → 200400401
POST
/oauth/revoke
GitLab Revoke an OAuth Token
revokeToken body → 200401
GET
/oauth/token/info
GitLab Get Token Information
getTokenInfo → 200401

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are TokenRequest (10 properties), TokenResponse (6 properties), TokenInfo (5 properties), RevokeTokenRequest (3 properties). Each schema is shown below with its type and property counts.

TokenResponse
object
6 properties
TokenInfo
object
5 properties
RevokeTokenRequest
object
3 properties 3 required
TokenRequest
object
10 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitlab-tokens-api-openapi.yml Raw ↑

Other APIs GitLab publishes across the network.

GitLab GraphQL API
GitLab Issues API
GitLab Merge Requests API
GitLab Pipelines API
GitLab Jobs API
GitLab Runners API
GitLab Users API
GitLab Repositories API
GitLab Commits API
GitLab Branches API
GitLab Tags API
GitLab Releases API
Where this information came from

This is an independent, third-party profile of GitLab Tokens API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.