Heroku Account API

Account management

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

GET /account Get account info #
PATCH /account Update account #
DELETE /account Delete #
GET /users/{account_identity} Info By User #
PATCH /users/{account_identity} Update By User #
DELETE /users/{account_identity} Delete By User #

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-account-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-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Account API
  version: '3'
  description: 'Operations tagged Account across 2 of this provider''s published API definitions: heroku-platform-api.yml, heroku-platform-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.heroku.com
  description: Heroku Platform API
tags:
- name: Account
  description: Account management
paths:
  /account:
    get:
      operationId: getAccount
      summary: Get account info
      tags:
      - Account
      responses:
        '200':
          description: Account details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
      security:
      - BearerAuth: []
    patch:
      operationId: updateAccount
      summary: Update account
      tags:
      - Account
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                allow_tracking:
                  type: boolean
      responses:
        '200':
          description: Account updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
      security:
      - BearerAuth: []
    delete:
      operationId: accountDelete
      summary: Delete
      description: 'Delete account. Note that this action cannot be undone. Note: This endpoint requires the HTTP_HEROKU_PASSWORD or HTTP_HEROKU_PASSWORD_BASE64 header be set correctly for the user account.'
      tags:
      - Account
      parameters: []
      x-hyper-schema-rel: destroy
      x-source: https://api.heroku.com/schema#/definitions/account/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
      security:
      - BearerAuth: []
    servers:
    - url: https://api.heroku.com
      description: Heroku Platform API
  /users/{account_identity}:
    get:
      operationId: accountInfoByUser
      summary: Info By User
      description: Info for account.
      tags:
      - Account
      parameters:
      - name: account_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/account/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
      security:
      - bearerAuth: []
    patch:
      operationId: accountUpdateByUser
      summary: Update By User
      description: Update account.
      tags:
      - Account
      parameters:
      - name: account_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: update
      x-source: https://api.heroku.com/schema#/definitions/account/links
      requestBody:
        content:
          application/json:
            schema:
              properties:
                allow_tracking:
                  $ref: '#/components/schemas/account/definitions/allow_tracking'
                beta:
                  $ref: '#/components/schemas/account/definitions/beta'
                name:
                  $ref: '#/components/schemas/account/definitions/name'
              type:
              - object
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
      security:
      - bearerAuth: []
    delete:
      operationId: accountDeleteByUser
      summary: Delete By User
      description: 'Delete account. Note that this action cannot be undone. Note: This endpoint requires the HTTP_HEROKU_PASSWORD or HTTP_HEROKU_PASSWORD_BASE64 header be set correctly for the user account.'
      tags:
      - Account
      parameters:
      - name: account_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: destroy
      x-source: https://api.heroku.com/schema#/definitions/account/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.heroku.com
components:
  schemas:
    Account:
      type: object
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
        name:
          type: string
        allow_tracking:
          type: boolean
        beta:
          type: boolean
        country_of_residence:
          type: string
          nullable: true
        default_organization:
          type: object
          nullable: true
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
        delinquent_at:
          type: string
          format: date-time
          nullable: true
        identity_provider:
          type: object
          nullable: true
        last_login:
          type: string
          format: date-time
          nullable: true
        sms_number:
          type: string
          nullable: true
        suspended_at:
          type: string
          format: date-time
          nullable: true
        two_factor_authentication:
          type: boolean
        verified:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    identity-provider:
      description: Identity Providers represent the SAML configuration of teams or an Enterprise account
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Identity Provider
      type:
      - object
      definitions:
        certificate:
          description: 'raw contents of the public certificate (eg: .crt or .pem file)'
          example: '-----BEGIN CERTIFICATE----- ...'
          readOnly: false
          type:
          - string
        created_at:
          description: when provider record was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        entity_id:
          description: URL identifier provided by the identity provider
          example: https://customer-domain.idp.com
          readOnly: false
          type:
          - string
        id:
          description: unique identifier of this identity provider
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        name:
          description: user-friendly unique identifier for this identity provider
          example: acme-sso
          type:
          - string
        slo_target_url:
          description: single log out URL for this identity provider
          example: https://example.com/idp/logout
          readOnly: false
          type:
          - string
        sso_target_url:
          description: single sign on URL for this identity provider
          example: https://example.com/idp/login
          readOnly: false
          type:
          - string
        updated_at:
          description: when the identity provider record was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        owner:
          description: entity that owns this identity provider
          properties:
            id:
              description: unique identifier of the owner
              example: 01234567-89ab-cdef-0123-456789abcdef
              format: uuid
              readOnly: true
              type:
              - string
            name:
              description: name of the owner
              example: acme
              readOnly: true
              type:
              - string
            type:
              description: type of the owner
              enum:
              - team
              - enterprise-account
              example: team
              readOnly: true
              type:
              - string
          readOnly: false
          required:
          - id
          - type
          type:
          - object
      properties:
        certificate:
          $ref: '#/components/schemas/identity-provider/definitions/certificate'
        created_at:
          $ref: '#/components/schemas/identity-provider/definitions/created_at'
        entity_id:
          $ref: '#/components/schemas/identity-provider/definitions/entity_id'
        id:
          $ref: '#/components/schemas/identity-provider/definitions/id'
        slo_target_url:
          $ref: '#/components/schemas/identity-provider/definitions/slo_target_url'
        sso_target_url:
          $ref: '#/components/schemas/identity-provider/definitions/sso_target_url'
        organization:
          description: team associated with this identity provider
          properties:
            name:
              $ref: '#/components/schemas/team/definitions/name'
          type:
          - 'null'
          - object
        updated_at:
          $ref: '#/components/schemas/identity-provider/definitions/updated_at'
        owner:
          $ref: '#/components/schemas/identity-provider/definitions/owner'
    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'
    team:
      $schema: http://json-schema.org/draft-04/hyper-schema
      description: Teams allow you to manage access to a shared group of applications and other resources.
      stability: development
      strictProperties: true
      title: Heroku Platform API - Team
      type:
      - object
      definitions:
        created_at:
          description: when the team was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        credit_card_collections:
          description: whether charges incurred by the team are paid by credit card.
          example: true
          readOnly: true
          type:
          - boolean
        default:
          description: whether to use this team when none is specified
          example: true
          readOnly: false
          type:
          - boolean
        enterprise_account:
          type:
          - 'null'
          - object
          properties:
            id:
              $ref: '#/components/schemas/enterprise-account/definitions/id'
            name:
              $ref: '#/components/schemas/enterprise-account/definitions/name'
        id:
          description: unique identifier of team
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/team/definitions/name'
          - $ref: '#/components/schemas/team/definitions/id'
        identity_provider:
          description: Identity Provider associated with the Team
          strictProperties: true
          type:
          - 'null'
          - object
          properties:
            id:
              $ref: '#/components/schemas/identity-provider/definitions/id'
            name:
              $ref: '#/components/schemas/identity-provider/definitions/name'
            owner:
              $ref: '#/components/schemas/identity-provider/definitions/owner'
        device_data:
          type:
          - string
          - 'null'
          description: Device data string generated by the client
          example: VGhpcyBpcyBhIGdvb2QgZGF5IHRvIGRpZQ==
        nonce:
          type:
          - string
          - 'null'
          description: Nonce generated by Braintree hosted fields form
          example: VGhpcyBpcyBhIGdvb2QgZGF5IHRvIGRpZQ==
        address_1:
          type:
          - string
          description: street address line 1
          example: 40 Hickory Lane
        address_2:
          type:
          - string
          - 'null'
          description: street address line 2
          example: Suite 103
        card_number:
          type:
          - string
          - 'null'
          description: encrypted card number of payment method
          example: encrypted-card-number
        city:
          type:
          - string
          description: city
          example: San Francisco
        country:
          type:
          - string
          description: country
          example: US
        cvv:
          type:
          - string
          - 'null'
          description: card verification value
          example: '123'
        expiration_month:
          type:
          - string
          - 'null'
          description: expiration month
          example: '11'
        expiration_year:
          type:
          - string
          - 'null'
          description: expiration year
          example: '2014'
        first_name:
          type:
          - string
          description: the first name for payment method
          example: Jason
        last_name:
          type:
          - string
          description: the last name for payment method
          example: Walker
        other:
          type:
          - string
          - 'null'
          description: metadata
          example: Additional information for payment method
        postal_code:
          type:
          - string
          description: postal code
          example: '90210'
        state:
          type:
          - string
          description: state
          example: CA
        membership_limit:
          description: upper limit of members allowed in a team.
          example: 25
          readOnly: true
          type:
          - number
          - 'null'
        name:
          description: unique name of team
          example: example
          readOnly: true
          type:
          - string
        provisioned_licenses:
          description: whether the team is provisioned licenses by salesforce.
          example: true
          readOnly: true
          type:
          - boolean
        role:
          description: role in the team
          enum:
          - admin
          - collaborator
          - member
          - owner
          - null
          example: admin
          readOnly: true
          type:
          - 'null'
          - string
        type:
          description: type of team.
          example: team
          enum:
          - enterprise
          - team
          readOnly: true
          type:
          - string
        updated_at:
          description: when the team was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        id:
          $ref: '#/components/schemas/team/definitions/id'
        created_at:
          $ref: '#/components/schemas/team/definitions/created_at'
        credit_card_collections:
          $ref: '#/components/schemas/team/definitions/credit_card_collections'
        default:
          $ref: '#/components/schemas/team/definitions/default'
        enterprise_account:
          $ref: '#/components/schemas/team/definitions/enterprise_account'
        identity_provider:
          $ref: '#/components/schemas/team/definitions/identity_provider'
        membership_limit:
          $ref: '#/components/schemas/team/definitions/membership_limit'
        name:
          $ref: '#/components/schemas/team/definitions/name'
        provisioned_licenses:
          $ref: '#/components/schemas/team/definitions/provisioned_licenses'
        role:
          $ref: '#/components/schemas/team/definitions/role'
        type:
          $ref: '#/components/schemas/team/definitions/type'
        updated_at:
          $ref: '#/components/schemas/team/definitions/updated_at'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Heroku API key or OAuth token
    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-refined-from:
- heroku-platform-api.yml
- heroku-platform-api-openapi.yml