Heroku SMS Number API

The SMS Number API from Heroku — 3 operation(s) for sms number.

GitHub OpenAPI

Operations 3

GET /users/{account_identity}/sms-number SMS Number #
POST /users/{account_identity}/sms-number/actions/recover Recover #
POST /users/{account_identity}/sms-number/actions/confirm Confirm #

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-sms-number-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-sms-number-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Platform SMS Number 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: SMS Number
paths:
  /users/{account_identity}/sms-number:
    get:
      operationId: smsNumberSMSNumber
      summary: SMS Number
      description: Recover an account using an SMS recovery code
      tags:
      - SMS Number
      parameters:
      - name: account_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/sms-number/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sms-number'
  /users/{account_identity}/sms-number/actions/recover:
    post:
      operationId: smsNumberRecover
      summary: Recover
      description: Recover an account using an SMS recovery code
      tags:
      - SMS Number
      parameters:
      - name: account_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/sms-number/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sms-number'
  /users/{account_identity}/sms-number/actions/confirm:
    post:
      operationId: smsNumberConfirm
      summary: Confirm
      description: Confirm an SMS number change with a confirmation code
      tags:
      - SMS Number
      parameters:
      - name: account_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/sms-number/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sms-number'
components:
  schemas:
    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'
    sms-number:
      description: SMS numbers are used for recovery on accounts with two-factor authentication enabled.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - SMS Number
      type:
      - object
      definitions:
        sms_number:
          $ref: '#/components/schemas/account/definitions/sms_number'
      properties:
        sms_number:
          $ref: '#/components/schemas/account/definitions/sms_number'
  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'