GitLab · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for GitLab REST Access tokens API

35 actions 35 updates phrasing extends openapi/gitlab-access-tokens-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for GitLab's API. It is a proposal applied on top of the contract, not a document GitLab publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 35 · first 16 shown; the file carries all of them

$.info
$.paths['/api/v4/users/{user_id}/impersonation_tokens'].get
$.paths['/api/v4/users/{user_id}/impersonation_tokens'].post
$.paths['/api/v4/users/{user_id}/impersonation_tokens/{impersonation_token_id}'].get
$.paths['/api/v4/users/{user_id}/impersonation_tokens/{impersonation_token_id}'].delete
$.paths['/api/v4/users/{user_id}/personal_access_tokens'].post
$.paths['/api/v4/user/personal_access_tokens'].post
$.paths['/api/v4/projects/{id}/service_accounts/{user_id}/personal_access_tokens'].get
$.paths['/api/v4/projects/{id}/service_accounts/{user_id}/personal_access_tokens'].post
$.paths['/api/v4/projects/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}'].delete
$.paths['/api/v4/projects/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}/rotate'].post
$.paths['/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens'].get
$.paths['/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens'].post
$.paths['/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}'].delete
$.paths['/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}/rotate'].post
$.paths['/api/v4/projects/{id}/access_tokens/self/rotate'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for GitLab REST Access tokens API
  version: 1.0.0
extends: openapi/gitlab-access-tokens-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-23'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 34
- target: $.paths['/api/v4/users/{user_id}/impersonation_tokens'].get
  update:
    x-apievangelist-phrasing:
      intent: List impersonation tokens for a user
      effect: read
      questions:
      - Which impersonation tokens exist for a user?
      - Can I filter a user's impersonation tokens by state or expiry?
      instructions:
      - text: List impersonation tokens for user {user_id}.
        slots:
          user_id: path.user_id
      - text: Show impersonation tokens for user {user_id} with state {state}.
        slots:
          user_id: path.user_id
          state: query.state
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/users/{user_id}/impersonation_tokens'].post
  update:
    x-apievangelist-phrasing:
      intent: Create an impersonation token for a user
      effect: write
      questions:
      - How do I create an impersonation token for a user?
      - Can an impersonation token be scoped to certain API actions?
      instructions:
      - text: Create impersonation token {name} for user {user_id}.
        slots:
          name: requestBody.name
          user_id: path.user_id
      - text: Create impersonation token {name} for user {user_id} expiring {expires_at} with scopes {scopes}.
        slots:
          name: requestBody.name
          user_id: path.user_id
          expires_at: requestBody.expires_at
          scopes: requestBody.scopes
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/users/{user_id}/impersonation_tokens/{impersonation_token_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an impersonation token
      effect: read
      questions:
      - How do I look up an impersonation token for a user?
      - Do only administrators have access to impersonation tokens?
      instructions:
      - text: Show impersonation token {token} for user {user}.
        slots:
          token: path.impersonation_token_id
          user: path.user_id
      - text: Get impersonation token {token} of user {user}.
        slots:
          token: path.impersonation_token_id
          user: path.user_id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/users/{user_id}/impersonation_tokens/{impersonation_token_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Revoke an impersonation token
      effect: destructive
      questions:
      - How do I revoke an impersonation token so someone can't impersonate a user?
      - Can I remove an impersonation token from a user account?
      instructions:
      - text: Revoke impersonation token {token} for user {user}.
        slots:
          token: path.impersonation_token_id
          user: path.user_id
      - text: Remove impersonation token {token} from user {user}.
        slots:
          token: path.impersonation_token_id
          user: path.user_id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/users/{user_id}/personal_access_tokens'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a personal access token for a user
      effect: write
      questions:
      - How do I create a personal access token for a user?
      - Can a user's personal access token be scoped to specific actions?
      instructions:
      - text: Create personal access token {name} for user {user_id}.
        slots:
          name: requestBody.name
          user_id: path.user_id
      - text: Create personal access token {name} for user {user_id} with scopes {scopes}.
        slots:
          name: requestBody.name
          user_id: path.user_id
          scopes: requestBody.scopes
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/user/personal_access_tokens'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a personal access token for the current user
      effect: write
      questions:
      - How do I create a personal access token for my own account?
      - What scopes does the token I create for myself have?
      instructions:
      - text: Create personal access token {name} for the current user.
        slots:
          name: requestBody.name
      - text: Create personal access token {name} for me with scopes {scopes}.
        slots:
          name: requestBody.name
          scopes: requestBody.scopes
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/service_accounts/{user_id}/personal_access_tokens'].get
  update:
    x-apievangelist-phrasing:
      intent: List a project service account's personal access tokens
      effect: read
      questions:
      - Which personal access tokens exist for a project service account?
      - Can I list a project service account's tokens by state?
      instructions:
      - text: List personal access tokens for service account {user_id} in project {id}.
        slots:
          user_id: path.user_id
          id: path.id
      - text: Show project service account {user_id}'s tokens in {id} with state {state}.
        slots:
          user_id: path.user_id
          id: path.id
          state: query.state
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/service_accounts/{user_id}/personal_access_tokens'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a service account token
      effect: write
      questions:
      - How do I create a personal access token for a project service account?
      - Can I set an expiry on a service account's token?
      instructions:
      - text: Create a {scopes} access token named {name} for project service account {user} in project {project}.
        slots:
          scopes: requestBody.scopes
          name: requestBody.name
          user: path.user_id
          project: path.id
      - text: Add a {scopes} token {name} for user {user} in project {project} that expires {expires}.
        slots:
          scopes: requestBody.scopes
          name: requestBody.name
          user: path.user_id
          project: path.id
          expires: requestBody.expires_at
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Revoke a project service account's personal access token
      effect: destructive
      questions:
      - How do I revoke a personal access token of a project service account?
      - Can I delete a project service account's token by ID?
      instructions:
      - text: Revoke personal access token {token_id} of service account {user_id} in project {id}.
        slots:
          token_id: path.token_id
          user_id: path.user_id
          id: path.id
      - text: Delete project service account {user_id}'s token {token_id} in {id}.
        slots:
          user_id: path.user_id
          token_id: path.token_id
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}/rotate'].post
  update:
    x-apievangelist-phrasing:
      intent: Rotate a project service account's personal access token
      effect: destructive
      questions:
      - How do I rotate a personal access token of a project service account?
      - Can I rotate a project service account's token and set a new expiry?
      instructions:
      - text: Rotate personal access token {token_id} of service account {user_id} in project {id}.
        slots:
          token_id: path.token_id
          user_id: path.user_id
          id: path.id
      - text: Rotate project service account {user_id}'s token {token_id} in {id} expiring {expires_at}.
        slots:
          user_id: path.user_id
          token_id: path.token_id
          id: path.id
          expires_at: requestBody.expires_at
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens'].get
  update:
    x-apievangelist-phrasing:
      intent: List a group service account's personal access tokens
      effect: read
      questions:
      - Which personal access tokens exist for a group service account?
      - Can I filter a group service account's tokens by expiry?
      instructions:
      - text: List personal access tokens for service account {user_id} in group {id}.
        slots:
          user_id: path.user_id
          id: path.id
      - text: Show group service account {user_id}'s tokens in {id} with state {state}.
        slots:
          user_id: path.user_id
          id: path.id
          state: query.state
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a group service account token
      effect: write
      questions:
      - How do I create a personal access token for a group service account?
      - What scopes can I give a group service account token?
      instructions:
      - text: Create a {scopes} access token {name} for group service account {user} in group {group}.
        slots:
          scopes: requestBody.scopes
          name: requestBody.name
          user: path.user_id
          group: path.id
      - text: Add a {scopes} token named {name} to group {group} service account {user}.
        slots:
          scopes: requestBody.scopes
          name: requestBody.name
          group: path.id
          user: path.user_id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Revoke a group service account's personal access token
      effect: destructive
      questions:
      - How do I revoke a personal access token of a group service account?
      - Can I delete a group service account's token by ID?
      instructions:
      - text: Revoke personal access token {token_id} of service account {user_id} in group {id}.
        slots:
          token_id: path.token_id
          user_id: path.user_id
          id: path.id
      - text: Delete group service account {user_id}'s token {token_id} in {id}.
        slots:
          user_id: path.user_id
          token_id: path.token_id
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}/rotate'].post
  update:
    x-apievangelist-phrasing:
      intent: Rotate a group service account token
      effect: destructive
      questions:
      - How do I rotate a group service account's personal access token?
      - Does rotating a group service account token keep the same name and scopes?
      - Can I choose when the new group service account token expires?
      instructions:
      - text: Rotate service account {user}'s token {token} in group {group}.
        slots:
          user: path.user_id
          token: path.token_id
          group: path.id
      - text: Rotate token {token} of group service account {user} in {group} so the new one expires on {expires_at}.
        slots:
          token: path.token_id
          user: path.user_id
          group: path.id
          expires_at: requestBody.expires_at
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/access_tokens/self/rotate'].post
  update:
    x-apievangelist-phrasing:
      intent: Rotate a project access token
      effect: destructive
      questions:
      - How do I rotate a project access token by passing it in a header?
      - Can I rotate a project access token and set its expiry?
      instructions:
      - text: Rotate the project access token passed in the header for project {id}.
        slots:
          id: path.id
      - text: Rotate project {id}'s access token in the header, expiring {expires_at}.
        slots:
          id: path.id
          expires_at: requestBody.expires_at
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/access_tokens/self/rotate'].post
  update:
    x-apievangelist-phrasing:
      intent: Rotate a group access token
      effect: destructive
      questions:
      - How do I rotate a group access token without using a personal token?
      - Can I rotate a group's access token from inside the group's request?
      instructions:
      - text: Rotate the access token for group {group}.
        slots:
          group: path.id
      - text: Rotate group {group}'s access token so it stays valid for another week.
        slots:
          group: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/access_tokens'].get
  update:
    x-apievangelist-phrasing:
      intent: List a project's access tokens
      effect: read
      questions:
      - Which access tokens exist for a project?
      - Can I list a project's tokens by expiry date?
      instructions:
      - text: List access tokens for project {id}.
        slots:
          id: path.id
      - text: Show project {id}'s tokens with state {state}.
        slots:
          id: path.id
          state: query.state
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/access_tokens'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a project access token
      effect: write
      questions:
      - How do I create an access token for a project?
      - Can a project access token be given a specific access level?
      instructions:
      - text: Create access token {name} for project {id}.
        slots:
          name: requestBody.name
          id: path.id
      - text: Create access token {name} for project {id} with scopes {scopes} at access level {access_level}.
        slots:
          name: requestBody.name
          id: path.id
          scopes: requestBody.scopes
          access_level: requestBody.access_level
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/access_tokens/{token_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a project access token
      effect: read
      questions:
      - What scopes does a specific project access token have?
      - When does a given project access token expire?
      instructions:
      - text: Get access token {token_id} for project {id}.
        slots:
          token_id: path.token_id
          id: path.id
      - text: Show project {id}'s token {token_id}.
        slots:
          id: path.id
          token_id: path.token_id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/access_tokens/{token_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Revoke a project access token
      effect: destructive
      questions:
      - How do I revoke an access token of a project?
      - Can I delete a project access token by ID?
      instructions:
      - text: Revoke access token {token_id} for project {id}.
        slots:
          token_id: path.token_id
          id: path.id
      - text: Delete project {id}'s token {token_id}.
        slots:
          id: path.id
          token_id: path.token_id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/access_tokens/{token_id}/rotate'].post
  update:
    x-apievangelist-phrasing:
      intent: Rotate a project access token
      effect: destructive
      questions:
      - How do I rotate a project access token so the old one is revoked?
      - Can I set a new expiry when rotating a project access token?
      instructions:
      - text: Rotate project access token {token_id} in project {id}.
        slots:
          token_id: path.token_id
          id: path.id
      - text: Rotate project token {token_id} in {id} to expire at {expires_at}.
        slots:
          token_id: path.token_id
          id: path.id
          expires_at: requestBody.expires_at
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/access_tokens'].get
  update:
    x-apievangelist-phrasing:
      intent: List a group's access tokens
      effect: read
      questions:
      - Which access tokens exist for a particular group?
      - Can I list only the revoked group access tokens?
      instructions:
      - text: List all access tokens for group {id}.
        slots:
          id: path.id
      - text: Show {state} group access tokens in {id} created after {created_after}.
        slots:
          state: query.state
          id: path.id
          created_after: query.created_after
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/access_tokens'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a group access token
      effect: write
      questions:
      - How do I create a new access token for a group?
      - What scopes and access level can a group token have?
      instructions:
      - text: Create access token {name} in group {id} with scopes {scopes}.
        slots:
          name: requestBody.name
          id: path.id
          scopes: requestBody.scopes
      - text: Create a {access_level} group token {name} scoped to {scopes} in {id}.
        slots:
          access_level: requestBody.access_level
          name: requestBody.name
          scopes: requestBody.scopes
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/access_tokens/{token_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a group access token
      effect: read
      questions:
      - What scopes and expiry does a specific group access token have?
      - Can I look up one group token by its ID?
      instructions:
      - text: Get group access token {token_id} in {id}.
        slots:
          token_id: path.token_id
          id: path.id
      - text: Show the scopes and expiry of group token {token_id} in {id}.
        slots:
          token_id: path.token_id
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/access_tokens/{token_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Revoke a group access token
      effect: destructive
      questions:
      - How do I revoke a group access token?
      - Can I stop a group token from being used?
      instructions:
      - text: Revoke group access token {token_id} in {id}.
        slots:
          token_id: path.token_id
          id: path.id
      - text: Disable group token {token_id} in {id}.
        slots:
          token_id: path.token_id
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/access_tokens/{token_id}/rotate'].post
  update:
    x-apievangelist-phrasing:
      intent: Rotate a group access token
      effect: destructive
      questions:
      - How do I rotate a group access token and revoke the old one?
      - Can a group token rotate itself?
      instructions:
      - text: Rotate group access token {token_id} in {id}.
        slots:
          token_id: path.token_id
          id: path.id
      - text: Rotate group token {token_id} in {id} to expire at {expires_at}.
        slots:
          token_id: path.token_id
          id: path.id
          expires_at: requestBody.expires_at
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/personal_access_tokens/self/rotate'].post
  update:
    x-apievangelist-phrasing:
      intent: Rotate my personal access token
      effect: destructive
      questions:
      - How do I rotate my own personal access token?
      - Can I rotate a personal token by passing it in the header?
      instructions:
      - text: Rotate my personal access token.
      - text: Rotate my personal token so it expires at {expires_at}.
        slots:
          expires_at: requestBody.expires_at
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/personal_access_tokens/self'].get
  update:
    x-apievangelist-phrasing:
      intent: Get my personal access token
      effect: read
      questions:
      - What scopes does my personal access token have?
      - Can I look up one of my own personal tokens?
      instructions:
      - text: Show my personal access token.
      - text: Get the scopes of my personal token.
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/personal_access_tokens/self'].delete
  update:
    x-apievangelist-phrasing:
      intent: Revoke my personal access token
      effect: destructive
      questions:
      - How do I revoke my own personal access token?
      - Can I stop using my personal token?
      instructions:
      - text: Revoke my personal access token.
      - text: Disable my personal token so it can't be used.
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/personal_access_tokens/self/associations'].get
  update:
    x-apievangelist-phrasing:
      intent: List what my personal token can access
      effect: read
      questions:
      - Which groups and projects can my personal access token reach?
      - Can I see the token associations for my personal token?
      instructions:
      - text: List the groups and projects my personal token can access.
      - text: Show token associations for my personal token with access level at least {min_access_level}.
        slots:
          min_access_level: query.min_access_level
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/personal_access_tokens'].get
  update:
    x-apievangelist-phrasing:
      intent: List my personal access tokens
      effect: read
      questions:
      - Which personal access tokens have I created?
      - Can I list only my revoked personal tokens?
      instructions:
      - text: List all my personal access tokens.
      - text: Show my personal tokens with state {state}.
        slots:
          state: query.state
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/personal_access_tokens/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a personal access token
      effect: read
      questions:
      - What scopes and expiry does a specific personal token have?
      - Can I look up one of my personal tokens by ID?
      instructions:
      - text: Get personal access token {id}.
        slots:
          id: path.id
      - text: Show the scopes and expiry of my personal token {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/personal_access_tokens/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Revoke a personal access token
      effect: destructive
      questions:
      - How do I revoke a personal access token I created?
      - Can I revoke someone else's personal token as an admin?
      instructions:
      - text: Revoke personal access token {id}.
        slots:
          id: path.id
      - text: Disable my personal token {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/personal_access_tokens/{id}/rotate'].post
  update:
    x-apievangelist-phrasing:
      intent: Rotate a personal access token
      effect: destructive
      questions:
      - How do I rotate a personal access token so the old one stops working?
      - Can I extend a personal access token's expiry when rotating it?
      instructions:
      - text: Rotate personal access token {token}.
        slots:
          token: path.id
      - text: Rotate token {token} so it expires {expires}.
        slots:
          token: path.id
          expires: requestBody.expires_at
      method: generated
      generated: '2026-11-23'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/gitlab-access-tokens-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.