Positron Access Tokens API

The access_tokens API from Positron — 3 operation(s) for access_tokens.

Operations 4

GET /accessTokens Gets a list of all access tokens. #
GET /accessTokens/{token} Gets a information about a single access token. #
DELETE /accessTokens/{token} Deletes an access token by token id. #
POST /accessTokens/new Create a new 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/positron-access-tokens-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

positron-access-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Positron Access Tokens API
  version: '1.0'
  description: 'Operations tagged access_tokens across 2 of this provider''s published API definitions: positron-access-tokens-api-openapi.yml, positron-admin-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.positron.ai/
  description: Base URL declared by the provider in apis.yml (roadmap#122).
security:
- bearer:
  - API key
tags:
- name: access_tokens
paths:
  /accessTokens:
    get:
      summary: Gets a list of all access tokens.
      description: 'Lists the currently available access tokens, providing basic information about each user.

        '
      tags:
      - access_tokens
      operationId: listAccessTokens
      parameters:
      - name: user
        in: query
        description: The ID of the user to filter access tokens
        required: true
        schema:
          type: string
      responses:
        '200':
          description: returns a list of all users.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessTokens'
    servers:
    - url: https://api.positron.ai/
      description: Base URL declared by the provider in apis.yml (roadmap#122).
  /accessTokens/{token}:
    get:
      summary: Gets a information about a single access token.
      description: 'Shows the selected access token, providing basic information about the token.

        '
      tags:
      - access_tokens
      parameters:
      - name: token
        in: path
        description: The ID of the token to request info about
        required: true
        schema:
          type: string
      operationId: getAccessToken
      responses:
        '200':
          description: Successful retrieval of the access token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessToken'
        '404':
          description: The access token was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      summary: Deletes an access token by token id.
      description: 'Removes an access token from the list of available tokens.  The

        access token will also be purged from the caches of all nodes

        in the cluster

        '
      tags:
      - access_tokens
      operationId: deleteAccessToken
      parameters:
      - name: token
        in: path
        description: The ID of the access token to delete
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful deletion
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessToken'
        '404':
          description: The user was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.positron.ai/
      description: Base URL declared by the provider in apis.yml (roadmap#122).
  /accessTokens/new:
    post:
      summary: Create a new access token
      description: 'Creates a new access token.  This is not directly populated into the

        token cache until it has been used.  Note that the response contains

        fields which are not stored in the database in plaintext and cannot

        be retrieved at a future date.

        '
      tags:
      - access_tokens
      operationId: createAccessToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAccessToken'
      responses:
        '201':
          description: successful creation of an access token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessToken'
        '400':
          description: invalid information provided to server
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.positron.ai/
      description: Base URL declared by the provider in apis.yml (roadmap#122).
components:
  schemas:
    IdList:
      type: array
      items:
        type: string
        format: uuid
    User:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          description: human-readable name for the service node
        email:
          type: string
        avatar:
          type: string
          format: url
        level:
          enum:
          - superuser
          - admin
          - user
    AccessToken:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        redacted:
          type: string
        expires_at:
          type: string
          format: date-time
        users:
          oneOf:
          - $ref: '#/components/schemas/Users'
          - $ref: '#/components/schemas/IdList'
    Users:
      type: array
      items:
        $ref: '#/components/schemas/User'
    Error:
      type: object
      properties:
        status:
          type: integer
          description: The HTTP status code associated with this error.
        error:
          type: string
          description: The error message.
    AccessTokens:
      type: array
      items:
        $ref: '#/components/schemas/AccessToken'
x-refined-from:
- positron-access-tokens-api-openapi.yml
- positron-admin-openapi.yml