Heroku OAuth Authorization API

The OAuth Authorization API from Heroku — 3 operation(s) for oauth authorization.

GitHub OpenAPI

Operations 6

POST /oauth/authorizations Create #
GET /oauth/authorizations List #
DELETE /oauth/authorizations/{oauth-authorization_identity} Delete #
GET /oauth/authorizations/{oauth-authorization_identity} Info #
PATCH /oauth/authorizations/{oauth-authorization_identity} Update #
POST /oauth/authorizations/{oauth-authorization_identity}/actions/regenerate-tokens Regenerate #

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/heroku:heroku-oauth-authorization-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

heroku-oauth-authorization-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Platform OAuth Authorization API
  version: '3'
  description: The platform API empowers developers to automate, extend and combine Heroku with other services. Converted mechanically from the provider-published JSON Hyper-Schema at https://api.heroku.com/schema.
  contact:
    name: Heroku
    url: https://devcenter.heroku.com/articles/platform-api-reference
servers:
- url: https://api.heroku.com
security:
- bearerAuth: []
tags:
- name: OAuth Authorization
paths:
  /oauth/authorizations:
    post:
      operationId: oauthAuthorizationCreate
      summary: Create
      description: Create a new OAuth authorization.
      tags:
      - OAuth Authorization
      parameters: []
      x-hyper-schema-rel: create
      x-source: https://api.heroku.com/schema#/definitions/oauth-authorization/links
      requestBody:
        content:
          application/json:
            schema:
              properties:
                client:
                  $ref: '#/components/schemas/oauth-client/definitions/identity'
                description:
                  $ref: '#/components/schemas/oauth-authorization/definitions/description'
                expires_in:
                  $ref: '#/components/schemas/oauth-token/definitions/expires_in'
                scope:
                  $ref: '#/components/schemas/oauth-authorization/definitions/scope'
              required:
              - scope
              type:
              - object
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth-authorization'
    get:
      operationId: oauthAuthorizationList
      summary: List
      description: List OAuth authorizations.
      tags:
      - OAuth Authorization
      parameters: []
      x-hyper-schema-rel: instances
      x-source: https://api.heroku.com/schema#/definitions/oauth-authorization/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/oauth-authorization'
                type:
                - array
  /oauth/authorizations/{oauth-authorization_identity}:
    delete:
      operationId: oauthAuthorizationDelete
      summary: Delete
      description: Delete OAuth authorization.
      tags:
      - OAuth Authorization
      parameters:
      - name: oauth-authorization_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: destroy
      x-source: https://api.heroku.com/schema#/definitions/oauth-authorization/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth-authorization'
    get:
      operationId: oauthAuthorizationInfo
      summary: Info
      description: Info for an OAuth authorization.
      tags:
      - OAuth Authorization
      parameters:
      - name: oauth-authorization_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/oauth-authorization/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth-authorization'
    patch:
      operationId: oauthAuthorizationUpdate
      summary: Update
      description: Update an existing OAuth authorization.
      tags:
      - OAuth Authorization
      parameters:
      - name: oauth-authorization_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: update
      x-source: https://api.heroku.com/schema#/definitions/oauth-authorization/links
      requestBody:
        content:
          application/json:
            schema:
              properties:
                description:
                  $ref: '#/components/schemas/oauth-authorization/definitions/description'
                client:
                  type:
                  - object
                  description: identifier of the client that obtained this authorization
                  properties:
                    id:
                      $ref: '#/components/schemas/oauth-client/definitions/id'
                    secret:
                      $ref: '#/components/schemas/oauth-client/definitions/secret'
              required:
              - client
              type:
              - object
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth-authorization'
  /oauth/authorizations/{oauth-authorization_identity}/actions/regenerate-tokens:
    post:
      operationId: oauthAuthorizationRegenerate
      summary: Regenerate
      description: Regenerate OAuth tokens. This endpoint is only available to direct authorizations or privileged OAuth clients.
      tags:
      - OAuth Authorization
      parameters:
      - name: oauth-authorization_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: update
      x-source: https://api.heroku.com/schema#/definitions/oauth-authorization/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oauth-authorization'
components:
  schemas:
    oauth-grant:
      description: OAuth grants are used to obtain authorizations on behalf of a user. For more information please refer to the [Heroku OAuth documentation](https://devcenter.heroku.com/articles/oauth)
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - OAuth Grant
      type:
      - object
      definitions:
        code:
          description: grant code received from OAuth web application authorization
          example: 01234567-89ab-cdef-0123-456789abcdef
          readOnly: true
          type:
          - string
        expires_in:
          description: seconds until OAuth grant expires
          example: 2592000
          readOnly: true
          type:
          - integer
        id:
          description: unique identifier of OAuth grant
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/oauth-grant/definitions/id'
        type:
          description: type of grant requested, one of `authorization_code` or `refresh_token`
          example: authorization_code
          readOnly: false
          type:
          - string
      properties: {}
    oauth-client:
      description: OAuth clients are applications that Heroku users can authorize to automate, customize or extend their usage of the platform. For more information please refer to the [Heroku OAuth documentation](https://devcenter.heroku.com/articles/oauth).
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - OAuth Client
      type:
      - object
      definitions:
        created_at:
          description: when OAuth client was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        id:
          description: unique identifier of this OAuth client
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/oauth-client/definitions/id'
        ignores_delinquent:
          description: whether the client is still operable given a delinquent account
          example: false
          readOnly: true
          type:
          - boolean
          - 'null'
        name:
          description: OAuth client name
          example: example
          readOnly: true
          type:
          - string
        redirect_uri:
          description: endpoint for redirection after authorization with OAuth client
          example: https://example.com/auth/heroku/callback
          readOnly: true
          type:
          - string
        secret:
          description: secret used to obtain OAuth authorizations under this client
          example: 01234567-89ab-cdef-0123-456789abcdef
          readOnly: true
          type:
          - string
        updated_at:
          description: when OAuth client was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        created_at:
          $ref: '#/components/schemas/oauth-client/definitions/created_at'
        id:
          $ref: '#/components/schemas/oauth-client/definitions/id'
        ignores_delinquent:
          $ref: '#/components/schemas/oauth-client/definitions/ignores_delinquent'
        name:
          $ref: '#/components/schemas/oauth-client/definitions/name'
        redirect_uri:
          $ref: '#/components/schemas/oauth-client/definitions/redirect_uri'
        secret:
          $ref: '#/components/schemas/oauth-client/definitions/secret'
        updated_at:
          $ref: '#/components/schemas/oauth-client/definitions/updated_at'
    oauth-authorization:
      description: OAuth authorizations represent clients that a Heroku user has authorized to automate, customize or extend their usage of the platform. For more information please refer to the [Heroku OAuth documentation](https://devcenter.heroku.com/articles/oauth)
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - OAuth Authorization
      type:
      - object
      definitions:
        created_at:
          description: when OAuth authorization was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        description:
          description: human-friendly description of this OAuth authorization
          example: sample authorization
          readOnly: true
          type:
          - string
        id:
          description: unique identifier of OAuth authorization
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/oauth-authorization/definitions/id'
        scope:
          description: The scope of access OAuth authorization allows
          example:
          - global
          readOnly: true
          type:
          - array
          items:
            type:
            - string
        updated_at:
          description: when OAuth authorization was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        access_token:
          description: access token for this authorization
          properties:
            expires_in:
              $ref: '#/components/schemas/oauth-token/definitions/expires_in'
            id:
              $ref: '#/components/schemas/oauth-token/definitions/id'
            token:
              $ref: '#/components/schemas/oauth-token/definitions/token'
          type:
          - 'null'
          - object
        client:
          description: identifier of the client that obtained this authorization, if any
          properties:
            id:
              $ref: '#/components/schemas/oauth-client/definitions/id'
            name:
              $ref: '#/components/schemas/oauth-client/definitions/name'
            redirect_uri:
              $ref: '#/components/schemas/oauth-client/definitions/redirect_uri'
          type:
          - 'null'
          - object
        created_at:
          $ref: '#/components/schemas/oauth-authorization/definitions/created_at'
        description:
          $ref: '#/components/schemas/oauth-authorization/definitions/description'
        grant:
          description: this authorization's grant
          properties:
            code:
              $ref: '#/components/schemas/oauth-grant/definitions/code'
            expires_in:
              $ref: '#/components/schemas/oauth-grant/definitions/expires_in'
            id:
              $ref: '#/components/schemas/oauth-grant/definitions/id'
          strictProperties: true
          type:
          - 'null'
          - object
        id:
          $ref: '#/components/schemas/oauth-authorization/definitions/id'
        refresh_token:
          description: refresh token for this authorization
          properties:
            expires_in:
              $ref: '#/components/schemas/oauth-token/definitions/expires_in'
            id:
              $ref: '#/components/schemas/oauth-token/definitions/id'
            token:
              $ref: '#/components/schemas/oauth-token/definitions/token'
          strictProperties: true
          type:
          - 'null'
          - object
        scope:
          $ref: '#/components/schemas/oauth-authorization/definitions/scope'
        session:
          description: this authorization's session
          properties:
            id:
              $ref: '#/components/schemas/oauth-token/definitions/id'
          strictProperties: true
          type:
          - 'null'
          - object
        updated_at:
          $ref: '#/components/schemas/oauth-authorization/definitions/updated_at'
        user:
          description: authenticated user associated with this authorization
          properties:
            id:
              $ref: '#/components/schemas/account/definitions/id'
            email:
              $ref: '#/components/schemas/account/definitions/email'
            full_name:
              $ref: '#/components/schemas/account/definitions/name'
          strictProperties: true
          type:
          - object
    account:
      description: An account represents an individual signed up to use the Heroku platform.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Account
      type:
      - object
      definitions:
        allow_tracking:
          default: true
          description: whether to allow third party web activity tracking
          example: true
          readOnly: false
          type:
          - boolean
        beta:
          default: false
          description: whether allowed to utilize beta Heroku features
          example: false
          readOnly: false
          type:
          - boolean
        created_at:
          description: when account was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        country_of_residence:
          description: country where account owner resides
          example: United States
          readOnly: false
          type:
          - string
          - 'null'
        email:
          description: unique email address of account
          example: username@example.com
          format: email
          readOnly: false
          type:
          - string
        federated:
          description: whether the user is federated and belongs to an Identity Provider
          example: false
          readOnly: true
          type:
          - boolean
        id:
          description: unique identifier of an account
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/account/definitions/email'
          - $ref: '#/components/schemas/account/definitions/id'
          - $ref: '#/components/schemas/account/definitions/self'
        last_login:
          description: when account last authorized with Heroku
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
        name:
          description: full name of the account owner
          example: Tina Edmonds
          readOnly: false
          type:
          - string
          - 'null'
        password:
          description: current password on the account
          example: currentpassword
          readOnly: true
          type:
          - string
        self:
          description: Implicit reference to currently authorized user
          enum:
          - '~'
          example: '~'
          readOnly: true
          type:
          - string
        sms_number:
          description: SMS number of account
          example: +1 ***-***-1234
          readOnly: true
          type:
          - string
          - 'null'
        suspended_at:
          description: when account was suspended
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
        delinquent_at:
          description: when account became delinquent
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
        two_factor_authentication:
          description: whether two-factor auth is enabled on the account
          example: false
          readOnly: true
          type:
          - boolean
        updated_at:
          description: when account was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        verified:
          default: false
          description: whether account has been verified with billing information
          example: false
          readOnly: true
          type:
          - boolean
      properties:
        allow_tracking:
          $ref: '#/components/schemas/account/definitions/allow_tracking'
        beta:
          $ref: '#/components/schemas/account/definitions/beta'
        created_at:
          $ref: '#/components/schemas/account/definitions/created_at'
        email:
          $ref: '#/components/schemas/account/definitions/email'
        federated:
          $ref: '#/components/schemas/account/definitions/federated'
        id:
          $ref: '#/components/schemas/account/definitions/id'
        identity_provider:
          description: Identity Provider details for federated users.
          strictProperties: true
          properties:
            id:
              $ref: '#/components/schemas/identity-provider/definitions/id'
            name:
              $ref: '#/components/schemas/identity-provider/definitions/name'
            team:
              type:
              - object
              properties:
                name:
                  $ref: '#/components/schemas/team/definitions/name'
            organization:
              type:
              - object
              properties:
                name:
                  $ref: '#/components/schemas/team/definitions/name'
            owner:
              $ref: '#/components/schemas/identity-provider/definitions/owner'
          type:
          - object
          - 'null'
        last_login:
          $ref: '#/components/schemas/account/definitions/last_login'
        name:
          $ref: '#/components/schemas/account/definitions/name'
        sms_number:
          $ref: '#/components/schemas/account/definitions/sms_number'
        suspended_at:
          $ref: '#/components/schemas/account/definitions/suspended_at'
        delinquent_at:
          $ref: '#/components/schemas/account/definitions/delinquent_at'
        two_factor_authentication:
          $ref: '#/components/schemas/account/definitions/two_factor_authentication'
        updated_at:
          $ref: '#/components/schemas/account/definitions/updated_at'
        verified:
          $ref: '#/components/schemas/account/definitions/verified'
        country_of_residence:
          $ref: '#/components/schemas/account/definitions/country_of_residence'
        default_organization:
          description: team selected by default
          properties:
            id:
              $ref: '#/components/schemas/team/definitions/id'
            name:
              $ref: '#/components/schemas/team/definitions/name'
          strictProperties: true
          type:
          - object
          - 'null'
        default_team:
          description: team selected by default
          properties:
            id:
              $ref: '#/components/schemas/team/definitions/id'
            name:
              $ref: '#/components/schemas/team/definitions/name'
          strictProperties: true
          type:
          - object
          - 'null'
    oauth-token:
      description: OAuth tokens provide access for authorized clients to act on behalf of a Heroku user to automate, customize or extend their usage of the platform. For more information please refer to the [Heroku OAuth documentation](https://devcenter.heroku.com/articles/oauth)
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - OAuth Token
      type:
      - object
      definitions:
        created_at:
          description: when OAuth token was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        expires_in:
          description: seconds until OAuth token expires; may be `null` for tokens with indefinite lifetime
          example: 2592000
          readOnly: true
          type:
          - 'null'
          - integer
        id:
          description: unique identifier of OAuth token
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/oauth-token/definitions/id'
        token:
          description: contents of the token to be used for authorization
          example: HRKU-01234567-89ab-cdef-0123-456789abcdef
          readOnly: true
          type:
          - string
        updated_at:
          description: when OAuth token was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        access_token:
          description: current access token
          properties:
            expires_in:
              $ref: '#/components/schemas/oauth-token/definitions/expires_in'
            id:
              $ref: '#/components/schemas/oauth-token/definitions/id'
            token:
              $ref: '#/components/schemas/oauth-token/definitions/token'
          strictProperties: true
          type:
          - object
        authorization:
          description: authorization for this set of tokens
          properties:
            id:
              $ref: '#/components/schemas/oauth-authorization/definitions/id'
          strictProperties: true
          type:
          - object
        client:
          description: OAuth client secret used to obtain token
          properties:
            secret:
              $ref: '#/components/schemas/oauth-client/definitions/secret'
          strictProperties: true
          type:
          - 'null'
          - object
        created_at:
          $ref: '#/components/schemas/oauth-token/definitions/created_at'
        grant:
          description: grant used on the underlying authorization
          properties:
            code:
              $ref: '#/components/schemas/oauth-grant/definitions/code'
            type:
              $ref: '#/components/schemas/oauth-grant/definitions/type'
          strictProperties: true
          type:
          - object
        id:
          $ref: '#/components/schemas/oauth-token/definitions/id'
        refresh_token:
          description: refresh token for this authorization
          properties:
            expires_in:
              $ref: '#/components/schemas/oauth-token/definitions/expires_in'
            id:
              $ref: '#/components/schemas/oauth-token/definitions/id'
            token:
              $ref: '#/components/schemas/oauth-token/definitions/token'
          strictProperties: true
          type:
          - object
        session:
          description: OAuth session using this token
          properties:
            id:
              $ref: '#/components/schemas/oauth-token/definitions/id'
          strictProperties: true
          type:
          - object
        updated_at:
          $ref: '#/components/schemas/oauth-token/definitions/updated_at'
        user:
          description: Reference to the user associated with this token
          properties:
            id:
              $ref: '#/components/schemas/account/definitions/id'
          strictProperties: true
          type:
          - object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'OAuth access token or API key (see https://devcenter.heroku.com/articles/platform-api-reference#authentication). Requests must send Accept: application/vnd.heroku+json; version=3.'
x-generated-from: json-hyper-schema
x-source: https://api.heroku.com/schema
x-generated: '2026-11-25'