Gatana Service Accounts API

The service-accounts API from Gatana — 2 operation(s) for service-accounts.

GitHub OpenAPI

Operations 3

GET /service-accounts/{userId}/personal-access-tokens List service account personal access tokens #
POST /service-accounts/{userId}/personal-access-tokens Create service account personal access token #
DELETE /service-accounts/{userId}/personal-access-tokens/{patId} Delete service account personal access token #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/gatana-ai:gatana-ai-service-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?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. See our Privacy Policy and Terms.

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

OpenAPI Specification

gatana-ai-service-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Gatana Service Accounts API
  version: v1.48.6
  description: ''
servers:
- url: https://{YOUR_ORG_ID}.gatana.ai/api/v1
  description: Gatana Public API
  variables:
    YOUR_ORG_ID:
      default: YOUR_ORG_ID
      description: Gatana organization identifier
security:
- Static Bearer Token: []
- OAuth2: []
tags:
- name: Service Accounts
paths:
  /service-accounts/{userId}/personal-access-tokens:
    get:
      responseType:
        def:
          type: object
          shape:
            tokens:
              def:
                type: array
                element:
                  def:
                    type: object
                    shape:
                      tenantId:
                        def:
                          type: string
                        type: string
                      userId:
                        def:
                          type: string
                        type: string
                      id:
                        def:
                          type: string
                        type: string
                      name:
                        def:
                          type: string
                        type: string
                      apiKey:
                        def:
                          type: string
                        type: string
                      profileIds:
                        def:
                          type: array
                          element:
                            def:
                              type: string
                            type: string
                        type: array
                        element:
                          def:
                            type: string
                          type: string
                      createdAt:
                        def:
                          type: date
                        type: date
                      lastUsedAt:
                        def:
                          type: nullable
                          innerType:
                            def:
                              type: date
                            type: date
                        type: nullable
                  type: object
              type: array
              element:
                def:
                  type: object
                  shape:
                    tenantId:
                      def:
                        type: string
                      type: string
                    userId:
                      def:
                        type: string
                      type: string
                    id:
                      def:
                        type: string
                      type: string
                    name:
                      def:
                        type: string
                      type: string
                    apiKey:
                      def:
                        type: string
                      type: string
                    profileIds:
                      def:
                        type: array
                        element:
                          def:
                            type: string
                          type: string
                      type: array
                      element:
                        def:
                          type: string
                        type: string
                    createdAt:
                      def:
                        type: date
                      type: date
                    lastUsedAt:
                      def:
                        type: nullable
                        innerType:
                          def:
                            type: date
                          type: date
                      type: nullable
                type: object
        type: object
      description: List the personal access tokens of a service account you may update, from a browser session or a token
      operationId: listServiceAccountPersonalAccessTokens
      tags:
      - Service Accounts
      parameters:
      - in: path
        name: userId
        schema:
          $ref: '#/components/schemas/__schema18'
        required: true
        description: ID of the user
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/__schema554'
      summary: List service account personal access tokens
      x-summary-source: derived
    post:
      requestType:
        def:
          type: object
          shape:
            name:
              def:
                type: string
                checks:
                - {}
              type: string
            profileIds:
              def:
                type: optional
                innerType:
                  def:
                    type: array
                    element:
                      def:
                        type: string
                      type: string
                  type: array
                  element:
                    def:
                      type: string
                    type: string
              type: optional
        type: object
      responseType:
        def:
          type: object
          shape:
            token:
              def:
                type: object
                shape:
                  tenantId:
                    def:
                      type: string
                    type: string
                  userId:
                    def:
                      type: string
                    type: string
                  id:
                    def:
                      type: string
                    type: string
                  name:
                    def:
                      type: string
                    type: string
                  apiKey:
                    def:
                      type: string
                    type: string
                  profileIds:
                    def:
                      type: array
                      element:
                        def:
                          type: string
                        type: string
                    type: array
                    element:
                      def:
                        type: string
                      type: string
                  createdAt:
                    def:
                      type: date
                    type: date
                  lastUsedAt:
                    def:
                      type: nullable
                      innerType:
                        def:
                          type: date
                        type: date
                    type: nullable
              type: object
        type: object
      description: Create a personal access token for a service account you may update and return its API key, from a browser session or a token
      operationId: createServiceAccountPersonalAccessToken
      tags:
      - Service Accounts
      parameters:
      - in: path
        name: userId
        schema:
          $ref: '#/components/schemas/__schema18'
        required: true
        description: ID of the user
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePersonalAccessTokenRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/__schema565'
      summary: Create service account personal access token
      x-summary-source: derived
  /service-accounts/{userId}/personal-access-tokens/{patId}:
    delete:
      responseType:
        def:
          type: object
          shape:
            success:
              def:
                type: boolean
              type: boolean
        type: object
      description: Delete a personal access token of a service account you may update, from a browser session or a token
      operationId: deleteServiceAccountPersonalAccessToken
      tags:
      - Service Accounts
      parameters:
      - in: path
        name: userId
        schema:
          $ref: '#/components/schemas/__schema18'
        required: true
        description: ID of the user
      - in: path
        name: patId
        schema:
          $ref: '#/components/schemas/__schema38'
        required: true
        description: ID of the personal access token
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Whether the request succeeded
                required:
                - success
                additionalProperties: false
      summary: Delete service account personal access token
      x-summary-source: derived
components:
  schemas:
    __schema555:
      type: string
      description: ID of the tenant that owns the token
    __schema562:
      description: Time when the token was created
      type: string
    PersonalAccessToken:
      type: object
      properties:
        tenantId:
          $ref: '#/components/schemas/__schema555'
        userId:
          $ref: '#/components/schemas/__schema556'
        id:
          $ref: '#/components/schemas/__schema557'
        name:
          $ref: '#/components/schemas/__schema558'
        apiKey:
          $ref: '#/components/schemas/__schema559'
        profileIds:
          $ref: '#/components/schemas/__schema560'
        createdAt:
          $ref: '#/components/schemas/__schema562'
        lastUsedAt:
          $ref: '#/components/schemas/__schema563'
      required:
      - tenantId
      - userId
      - id
      - name
      - apiKey
      - profileIds
      - createdAt
      - lastUsedAt
      additionalProperties: false
    __schema558:
      type: string
      description: Display name of the token
    __schema557:
      type: string
      description: Unique ID of the token
    __schema561:
      type: string
    __schema18:
      type: string
      description: ID of the user
    __schema564:
      type: string
    __schema36:
      description: IDs of the profiles the token uses
      $ref: '#/components/schemas/__schema37'
    __schema35:
      type: string
      minLength: 1
      description: Display name of the token
    __schema560:
      type: array
      items:
        $ref: '#/components/schemas/__schema561'
      description: IDs of the profiles the token uses
    __schema563:
      anyOf:
      - $ref: '#/components/schemas/__schema564'
      - type: 'null'
      description: Time when the token was last used, or null if never used
    __schema37:
      type: array
      items:
        type: string
    __schema556:
      type: string
      description: ID of the user the token belongs to
    __schema38:
      type: string
      description: ID of the personal access token
    __schema565:
      type: object
      properties:
        token:
          description: The created token, including its API key
          $ref: '#/components/schemas/PersonalAccessToken'
      required:
      - token
      additionalProperties: false
    CreatePersonalAccessTokenRequest:
      type: object
      properties:
        name:
          $ref: '#/components/schemas/__schema35'
        profileIds:
          $ref: '#/components/schemas/__schema36'
      required:
      - name
    __schema554:
      type: object
      properties:
        tokens:
          type: array
          items:
            $ref: '#/components/schemas/PersonalAccessToken'
          description: Personal access tokens of the user
      required:
      - tokens
      additionalProperties: false
    __schema559:
      type: string
      description: API key of the token
  securitySchemes:
    Static_Bearer_Token:
      type: http
      scheme: bearer
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: /oauth/authorize
          tokenUrl: /oauth/token
          scopes:
            openid: Authentication claims