GitLab · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for GitLab REST Service accounts API

22 actions 22 updates phrasing extends openapi/gitlab-service-accounts-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 22 · first 16 shown; the file carries all of them

$.info
$.paths['/api/v4/service_accounts'].get
$.paths['/api/v4/service_accounts'].post
$.paths['/api/v4/service_accounts/{user_id}'].patch
$.paths['/api/v4/projects/{id}/service_accounts'].get
$.paths['/api/v4/projects/{id}/service_accounts'].post
$.paths['/api/v4/projects/{id}/service_accounts/{user_id}'].get
$.paths['/api/v4/projects/{id}/service_accounts/{user_id}'].delete
$.paths['/api/v4/projects/{id}/service_accounts/{user_id}'].patch
$.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'].get
$.paths['/api/v4/groups/{id}/service_accounts'].post
$.paths['/api/v4/groups/{id}/service_accounts/{user_id}'].get

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 Service accounts API
  version: 1.0.0
extends: openapi/gitlab-service-accounts-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: 21
- target: $.paths['/api/v4/service_accounts'].get
  update:
    x-apievangelist-phrasing:
      intent: List instance service accounts
      effect: read
      questions:
      - Which service accounts exist across the whole GitLab instance?
      - Can I sort and page through instance-wide service accounts?
      instructions:
      - text: List all instance service accounts.
      - text: Show instance service accounts ordered by {order_by}, {per_page} per page.
        slots:
          order_by: query.order_by
          per_page: query.per_page
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/service_accounts'].post
  update:
    x-apievangelist-phrasing:
      intent: Create an instance service account
      effect: write
      questions:
      - How do I create a service account that can act across the whole instance?
      - Can I give an instance service account a custom email address?
      instructions:
      - text: Create an instance service account named {name} with email {email}.
        slots:
          name: requestBody.name
          email: requestBody.email
      - text: Create an external instance service account {name} with username {username}.
        slots:
          name: requestBody.name
          username: requestBody.username
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/service_accounts/{user_id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update an instance service account
      effect: write
      questions:
      - Can I rename an instance service account?
      - What can I change on an existing instance-wide service account?
      instructions:
      - text: Rename instance service account {user_id} to {name}.
        slots:
          user_id: path.user_id
          name: requestBody.name
      - text: Set the email of instance service account {user_id} to {email}.
        slots:
          user_id: path.user_id
          email: requestBody.email
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/service_accounts'].get
  update:
    x-apievangelist-phrasing:
      intent: List a project's service accounts
      effect: read
      questions:
      - Which service accounts are set up for a particular project?
      - Can I sort the service accounts in a project?
      instructions:
      - text: List the service accounts in project {id}.
        slots:
          id: path.id
      - text: Show project {id} service accounts sorted by {order_by}.
        slots:
          id: path.id
          order_by: query.order_by
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/service_accounts'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a project service account
      effect: write
      questions:
      - How do I grant a service account access to one project?
      - Can I give a project service account a custom username?
      instructions:
      - text: Create a service account named {name} in project {id}.
        slots:
          name: requestBody.name
          id: path.id
      - text: Create a project service account {name} with username {username} in project {id}.
        slots:
          name: requestBody.name
          username: requestBody.username
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/service_accounts/{user_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get one project service account
      effect: read
      questions:
      - What are the details of a single service account in a project?
      - Can I look up a project service account by its ID?
      instructions:
      - text: Show service account {user_id} in project {id}.
        slots:
          user_id: path.user_id
          id: path.id
      - text: Get the project service account {user_id} for project {id}.
        slots:
          user_id: path.user_id
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/service_accounts/{user_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a project service account
      effect: destructive
      questions:
      - How do I remove a service account from a project?
      - Can I hard-delete a project service account so its contributions aren't moved to a ghost user?
      instructions:
      - text: Delete service account {user_id} from project {id}.
        slots:
          user_id: path.user_id
          id: path.id
      - text: Hard-delete project service account {user_id} in project {id} with hard_delete {hard_delete}.
        slots:
          user_id: path.user_id
          id: path.id
          hard_delete: query.hard_delete
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/service_accounts/{user_id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a project service account
      effect: write
      questions:
      - Can I rename a service account that lives inside a project?
      - What's the way to change a project service account's email?
      instructions:
      - text: Rename project service account {user_id} in project {id} to {name}.
        slots:
          user_id: path.user_id
          id: path.id
          name: requestBody.name
      - text: Set the email of project service account {user_id} in project {id} to {email}.
        slots:
          user_id: path.user_id
          id: path.id
          email: requestBody.email
      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 does a project service account have?
      - Can I see only the revoked tokens of a project service account?
      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} tokens in project {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 personal access token for a project service account
      effect: write
      questions:
      - How do I give a project service account a personal access token?
      - Can I set an expiration date on a project service account's token?
      instructions:
      - text: Create a {scopes} personal access token {name} for service account {user_id} in project {id}.
        slots:
          scopes: requestBody.scopes
          name: requestBody.name
          user_id: path.user_id
          id: path.id
      - text: Add a {scopes} token {name} to project service account {user_id} in project {id} expiring {expires_at}.
        slots:
          scopes: requestBody.scopes
          name: requestBody.name
          user_id: path.user_id
          id: path.id
          expires_at: 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 used by a project service account?
      - Can I remove one token from a project service account?
      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} token {token_id} from project {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:
      - Is there a way to rotate a personal access token for a project service account?
      - Does rotating a project service account token revoke the old one and keep the same name and scopes?
      instructions:
      - text: Rotate personal access token {token_id} for 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 token {token_id} for {user_id} in {id} and set its expiry to {expires_at}.
        slots:
          token_id: path.token_id
          user_id: path.user_id
          id: path.id
          expires_at: requestBody.expires_at
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/service_accounts'].get
  update:
    x-apievangelist-phrasing:
      intent: List a group's service accounts
      effect: read
      questions:
      - Which service accounts are set up for a particular group?
      - Can I page through a group's service accounts?
      instructions:
      - text: List the service accounts in group {id}.
        slots:
          id: path.id
      - text: Show group {id} service accounts sorted by {order_by}.
        slots:
          id: path.id
          order_by: query.order_by
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/service_accounts'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a group service account
      effect: write
      questions:
      - How do I grant a service account access to a group?
      - Can I give a group service account a custom username?
      instructions:
      - text: Create a service account named {name} in group {id}.
        slots:
          name: requestBody.name
          id: path.id
      - text: Create a group service account {name} with username {username} in group {id}.
        slots:
          name: requestBody.name
          username: requestBody.username
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/service_accounts/{user_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get one group service account
      effect: read
      questions:
      - What are the details of a single service account in a group?
      - Can I look up a group service account by its ID?
      instructions:
      - text: Show service account {user_id} in group {id}.
        slots:
          user_id: path.user_id
          id: path.id
      - text: Get the group service account {user_id} for group {id}.
        slots:
          user_id: path.user_id
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/service_accounts/{user_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a group service account
      effect: destructive
      questions:
      - How do I remove a service account from a group?
      - Can I hard delete a group service account's contributions too?
      instructions:
      - text: Delete service account {user_id} from group {id}.
        slots:
          user_id: path.user_id
          id: path.id
      - text: Remove group service account {user_id} from {id}, hard deleting its records if {hard_delete} is true.
        slots:
          user_id: path.user_id
          id: path.id
          hard_delete: query.hard_delete
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/groups/{id}/service_accounts/{user_id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a group service account
      effect: write
      questions:
      - Can I rename a service account that lives inside a group?
      - What's the way to change a group service account's email?
      instructions:
      - text: Rename group service account {user_id} in group {id} to {name}.
        slots:
          user_id: path.user_id
          id: path.id
          name: requestBody.name
      - text: Set the email of group service account {user_id} in group {id} to {email}.
        slots:
          user_id: path.user_id
          id: path.id
          email: requestBody.email
      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 does a group service account have?
      - Can I see only the revoked tokens of a group service account?
      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} tokens in group {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 personal access token for a group service account
      effect: write
      questions:
      - How do I issue a personal access token for a group service account?
      - Can a group service account token expire automatically?
      instructions:
      - text: Create a {scopes} personal access token {name} for group service account {user_id} in group {id}.
        slots:
          scopes: requestBody.scopes
          name: requestBody.name
          user_id: path.user_id
          id: path.id
      - text: Issue a {scopes} token named {name} for service account {user_id} in {id} with expiry {expires_at}.
        slots:
          scopes: requestBody.scopes
          name: requestBody.name
          user_id: path.user_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/{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 from a group service account?
      - What happens to the service account's contribution history when its token is revoked?
      instructions:
      - text: Revoke personal access token {token_id} for service account {user_id} in group {id}.
        slots:
          token_id: path.token_id
          user_id: path.user_id
          id: path.id
      - text: Invalidate group service account token {token_id} for {user_id} in {id}.
        slots:
          token_id: path.token_id
          user_id: path.user_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's access token
      effect: destructive
      questions:
      - How do I rotate a personal access token for a service account in a group?
      - What happens to the old token when I rotate a group service account's token?
      - Can I choose a new expiration date when rotating a group service account token?
      instructions:
      - text: Rotate personal access token {token_id} for service account {user_id} in group {id}.
        slots:
          token_id: path.token_id
          user_id: path.user_id
          id: path.id
      - text: Rotate group service account token {token_id} for {user_id} in group {id} and set its expiry to {expires_at}.
        slots:
          token_id: path.token_id
          user_id: path.user_id
          id: path.id
          expires_at: 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-service-accounts-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.