Postman OAuth 2.0 API

The OAuth 2.0 API from Postman — 2 operation(s) for oauth 2.0.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /oauth2/token Get an OAuth access token for a client app · Generate an OAuth Token #
Ask an LLM
“How does a backend service or bot get an OAuth token without a user?”
“Which grant type does token generation support?”
Tell an agent
Generate an access token with grant {grant_type} for installation {installationAuthId} using JWT {jwt}.
Get a client credentials token for installation {installationAuthId} signed with {jwt}, grant {grant_type}.
POST /oauth2/token/revoke Revoke an OAuth access token · Revoke an OAuth Token #
Ask an LLM
“Can a revoked OAuth token be restored?”
“How do I immediately invalidate an OAuth access token?”
Tell an agent destructive · confirm first
Revoke OAuth access token {token}.
Invalidate this OAuth token now.

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/postman:postman-oauth-2-0-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. 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.

OpenAPI Specification

postman-oauth-2-0-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Postman O Auth20 API
  version: 1.0.0
servers:
- url: https://api.postman.com
  description: https://api.postman.com
- url: https://api.eu.postman.com
  description: https://api.eu.postman.com
tags:
- name: OAuth 2.0
paths:
  /oauth2/token:
    post:
      operationId: generateOauthToken
      summary: Generate an OAuth Token
      description: 'Generates an OAuth 2.0 access token for a client application using the `client_credentials` grant type. Use this endpoint with backend services or bots to authenticate and authorize API requests without user interaction.


        **Note:**


        This endpoint uses Basic Auth. You must pass a valid client ID and client secret for the username and password, respectively.'
      tags:
      - OAuth 2.0
      parameters:
      - name: Authorization
        in: header
        description: Basic authentication
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/generateOauthTokenResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauthTokenError'
        '404':
          description: Token Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauthTokenError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateOauthTokenRequestInternalServerError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/generateOauthToken'
  /oauth2/token/revoke:
    post:
      operationId: revokeOauthToken
      summary: Revoke an OAuth Token
      description: 'Revokes an active OAuth 2.0 access token and prevents further use of it for authentication. Once revoked, the token can''t be used for any API requests.


        **Note:**


        - Revocation of an OAuth token is immediate and can''t be undone.

        - This request does not use any authorization.'
      tags:
      - OAuth 2.0
      responses:
        '200':
          description: Token Revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/revokeOauthTokenResponse'
        '404':
          description: Token Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauthTokenError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeOauthTokenRequestInternalServerError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/revokeOauthToken'
components:
  schemas:
    commonErrorTypeTitleDetail:
      type: object
      properties:
        type:
          type: string
          description: The type of error.
        title:
          type: string
          description: A short summary of the problem.
        detail:
          $ref: '#/components/schemas/CommonErrorTypeTitleDetailDetail'
          description: Information about the error.
      title: commonErrorTypeTitleDetail
    CommonErrorTypeTitleDetailDetail:
      oneOf:
      - type: string
      - type: object
        additionalProperties:
          description: Any type
      description: Information about the error.
      title: CommonErrorTypeTitleDetailDetail
    RevokeOauthTokenRequestInternalServerError:
      oneOf:
      - $ref: '#/components/schemas/commonErrorTypeTitleDetail'
      - $ref: '#/components/schemas/commonErrorTypeTitleDetailStatus'
      - $ref: '#/components/schemas/commonErrorNameMessage'
      title: RevokeOauthTokenRequestInternalServerError
    GenerateOauthTokenRequestInternalServerError:
      oneOf:
      - $ref: '#/components/schemas/commonErrorTypeTitleDetail'
      - $ref: '#/components/schemas/commonErrorTypeTitleDetailStatus'
      - $ref: '#/components/schemas/commonErrorNameMessage'
      title: GenerateOauthTokenRequestInternalServerError
    commonErrorNameMessage:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/CommonErrorNameMessageError'
          description: Information about the error.
      title: commonErrorNameMessage
    CommonErrorTypeTitleDetailStatusType:
      oneOf:
      - type: string
        format: uri-reference
      - type: string
      title: CommonErrorTypeTitleDetailStatusType
    generateOauthToken:
      type: object
      properties:
        grant_type:
          type: string
          description: The `client_credentials` OAuth grant type.
        installationAuthId:
          type: string
          description: The client's installation authentication ID.
        jwt:
          type: string
          description: A signed JWT token. The token must include `iss` (issuer), `aud` (audience), `iat` (issued at), `exp` (expiration timestamp), and `jti` (JWT ID).
      required:
      - grant_type
      - installationAuthId
      - jwt
      title: generateOauthToken
    CommonErrorNameMessageError:
      type: object
      properties:
        name:
          type: string
          description: The error name.
        message:
          type: string
          description: The error message.
      description: Information about the error.
      title: CommonErrorNameMessageError
    revokeOauthTokenResponse:
      type: object
      properties:
        success:
          type: string
          description: The `true` value.
      title: revokeOauthTokenResponse
    generateOauthTokenResponse:
      type: object
      properties:
        access_token:
          type: string
          description: A Postman OAuth 2.0 access token.
        expires_in:
          type: integer
          description: The time the token expires, in milliseconds.
        token_type:
          $ref: '#/components/schemas/GenerateOauthTokenResponseTokenType'
          description: The `Bearer` token type.
      title: generateOauthTokenResponse
    commonErrorTypeTitleDetailStatus:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/CommonErrorTypeTitleDetailStatusType'
        title:
          type: string
          description: A short summary of the problem.
        detail:
          type: string
          description: Information about the error.
        status:
          type: integer
          description: The error's HTTP status code.
      title: commonErrorTypeTitleDetailStatus
    GenerateOauthTokenResponseTokenType:
      type: string
      enum:
      - Bearer
      description: The `Bearer` token type.
      title: GenerateOauthTokenResponseTokenType
    revokeOauthToken:
      type: object
      properties:
        token:
          type: string
          description: The Postman OAuth 2.0 access token to revoke.
      required:
      - token
      title: revokeOauthToken
    oauthTokenError:
      type: object
      properties:
        error:
          type: string
          description: The type of error.
        error_description:
          type: string
          description: Information about the error.
      title: oauthTokenError
  securitySchemes:
    PostmanApiKey:
      type: apiKey
      in: header
      name: x-api-key
    basicAuth:
      type: http
      scheme: basic
    scimApiKey:
      type: apiKey
      in: header
      name: Authorization
      description: A valid [SCIM API key](https://learning.postman.com/docs/administration/scim-provisioning/scim-provisioning-overview/#generating-scim-api-key) for calls to SCIM endpoints.
x-provenance:
  first_party: true
  method: harvested
  provider_published: true
  source: https://learning.postman.com/api-docs/openapi.json
  harvested: '2026-08-05'
  note: Postman's own OpenAPI 3.1 definition for the Postman API, served by its Fern-hosted API reference. 162 paths, 256 operations, servers api.postman.com and api.eu.postman.com.