Eshway Personal Access Tokens API
The Personal Access Tokens API from Eshway — 2 operation(s) for personal access tokens.
The Personal Access Tokens API from Eshway — 2 operation(s) for personal access tokens.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/eshway-com:eshway-com-personal-access-tokens-api"
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.
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: 3.2.0
info:
title: Fast Personal Access Tokens API
version: 0.1.0
tags:
- name: Personal Access Tokens
paths:
/v1/pats:
post:
tags:
- Personal Access Tokens
summary: Create Token
operationId: create_token_v1_pats_post
security:
- OAuth2PasswordBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PatCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PatCreatedOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- Personal Access Tokens
summary: List Tokens
operationId: list_tokens_v1_pats_get
security:
- OAuth2PasswordBearer: []
parameters:
- name: organization_id
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Organization Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PatListOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/pats/{pat_id}:
delete:
tags:
- Personal Access Tokens
summary: Revoke Token
operationId: revoke_token_v1_pats__pat_id__delete
security:
- OAuth2PasswordBearer: []
parameters:
- name: pat_id
in: path
required: true
schema:
type: integer
title: Pat Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
PatCreate:
properties:
name:
type: string
maxLength: 100
minLength: 1
title: Name
organization_id:
type: integer
title: Organization Id
scopes:
items:
type: string
type: array
minItems: 1
title: Scopes
expires_in_days:
anyOf:
- type: integer
- type: 'null'
title: Expires In Days
type: object
required:
- name
- organization_id
- scopes
title: PatCreate
PatCreatedOut:
properties:
id:
type: integer
title: Id
name:
type: string
title: Name
organization_id:
type: integer
title: Organization Id
token_prefix:
type: string
title: Token Prefix
scopes:
items:
type: string
type: array
title: Scopes
expires_at:
type: string
format: date-time
title: Expires At
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
created_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Created At
token:
type: string
title: Token
type: object
required:
- id
- name
- organization_id
- token_prefix
- scopes
- expires_at
- token
title: PatCreatedOut
description: Creation response — the only place the plaintext token ever appears.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
PatOut:
properties:
id:
type: integer
title: Id
name:
type: string
title: Name
organization_id:
type: integer
title: Organization Id
token_prefix:
type: string
title: Token Prefix
scopes:
items:
type: string
type: array
title: Scopes
expires_at:
type: string
format: date-time
title: Expires At
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
created_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Created At
type: object
required:
- id
- name
- organization_id
- token_prefix
- scopes
- expires_at
title: PatOut
PatListOut:
properties:
tokens:
items:
$ref: '#/components/schemas/PatOut'
type: array
title: Tokens
type: object
required:
- tokens
title: PatListOut
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
OAuth2PasswordBearer:
type: oauth2
flows:
password:
scopes: {}
tokenUrl: token