Heroku Log Session API

The Log Session API from Heroku — 1 operation(s) for log session.

GitHub OpenAPI

Operations 1

POST /apps/{app_identity}/log-sessions Create #

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-log-session-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-log-session-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Platform Log Session 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: Log Session
paths:
  /apps/{app_identity}/log-sessions:
    post:
      operationId: logSessionCreate
      summary: Create
      description: Create a new log session.
      tags:
      - Log Session
      parameters:
      - name: app_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: create
      x-source: https://api.heroku.com/schema#/definitions/log-session/links
      requestBody:
        content:
          application/json:
            schema:
              properties:
                dyno_name:
                  $ref: '#/components/schemas/log-session/definitions/dyno_name'
                type:
                  $ref: '#/components/schemas/log-session/definitions/type'
                lines:
                  $ref: '#/components/schemas/log-session/definitions/lines'
                source:
                  $ref: '#/components/schemas/log-session/definitions/source'
                tail:
                  $ref: '#/components/schemas/log-session/definitions/tail'
              type:
              - object
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/log-session'
components:
  schemas:
    log-session:
      description: A log session is a reference to the http based log stream for an app.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Log Session
      type:
      - object
      definitions:
        created_at:
          description: when log connection was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        dyno_name:
          description: dyno name to limit results to
          example: '''web.1'' (Cedar-generation) or ''web-1234abcde-123ab'' (Fir-generation)'
          readOnly: false
          type:
          - string
        type:
          description: process type to limit results to
          example: web
          readOnly: false
          type:
          - string
        id:
          description: unique identifier of this log session
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/log-session/definitions/id'
        lines:
          description: number of log lines to stream at once
          example: 10
          readOnly: false
          type:
          - integer
        logplex_url:
          description: URL for log streaming session
          example: https://logplex.heroku.com/sessions/01234567-89ab-cdef-0123-456789abcdef?srv=1325419200
          readOnly: true
          type:
          - string
        source:
          description: log source to limit results to
          example: app
          readOnly: false
          type:
          - string
        tail:
          description: whether to stream ongoing logs
          example: true
          readOnly: false
          type:
          - boolean
        updated_at:
          description: when log session was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        created_at:
          $ref: '#/components/schemas/log-session/definitions/created_at'
        id:
          $ref: '#/components/schemas/log-session/definitions/id'
        logplex_url:
          $ref: '#/components/schemas/log-session/definitions/logplex_url'
        updated_at:
          $ref: '#/components/schemas/log-session/definitions/updated_at'
  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'