PHPRay API

PHPRay API as documented publicly: 12 operations. Contract generated from the documentation by API Evangelist (2026-11-20); not the provider's own document.

GitHub OpenAPI

Operations 12

GET /api/v1/health Liczniki: GET /api/v1/health → ingest ( batches , traces , dropped , duplicates , rejected ) #
POST /api/v1/ingest Dashboard / API #
POST /checkout request POST /checkout/ #
POST /checkout/{checkoutId} DEMO POST /checkout/500 #
POST /checkout/ko POST /checkout/kończy się błędem 500 po 842 ms #
GET /dl/phpray-directadmin.tar.gz Download the plugin archive #
GET /install.sh Download the install script. #
POST /v1/aggregates POST /v1/aggregates #
GET /v1/control GET /v1/control is referenced in the configuration example for limited‑time profiling via the ingest protocol. #
POST /v1/control/ack POST /v1/control/ack #
GET /v1/health GET /v1/health #
POST /v1/traces POST /v1/traces #

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/phpray-dev:phpray-dev-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

phpray-dev-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: PHPRay API
  version: '2026-11-20'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-20: 12 operation(s) read from 25 public documentation page(s) (each
    operation names its page in x-source). This is not the provider''s published contract; PHPRay has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 0
    documentation: 12
    pages-with-code: 19
    pages-read: 25
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-20'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://phpray.dev/en/docs/install/quickstart
  - https://phpray.dev/docs/install/quickstart
  - https://phpray.dev/docs/usage/cli
  - https://phpray.dev/how
  - https://phpray.dev/product
  - https://phpray.dev/how?section=use-cases
  - https://phpray.dev/docs/install/shared-hosting
  - https://phpray.dev/docs/configuration/extension
  - https://phpray.dev/docs/configuration/collector
  - https://phpray.dev/docs/usage/directadmin
  - https://phpray.dev/docs/cloud/overview
  - https://phpray.dev/docs/cloud/ingest
  - https://phpray.dev/php-profiler-in-production
  - https://phpray.dev/xdebug-na-produkcji
  - https://phpray.dev/dl
  - https://phpray.dev/faq
  - https://phpray.dev/en/docs/install/shared-hosting
  - https://phpray.dev/how?section=architecture
  - https://phpray.dev/how?section=sampling
  - https://phpray.dev/how?section=diagnosis
  - https://phpray.dev/how?section=start
  - https://phpray.dev/en/docs/usage/directadmin
  - https://phpray.dev/features
  - https://phpray.dev/agencies
  - https://phpray.dev/en/docs/usage/cli
servers:
- url: https://app.phpray.dev
paths:
  /api/v1/health:
    get:
      operationId: get_api_v1_health
      tags:
      - Api
      summary: 'Liczniki: GET /api/v1/health → ingest ( batches , traces , dropped , duplicates , rejected )'
      x-source: https://phpray.dev/docs/configuration/collector
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1HealthResponse'
      x-evidence:
        kind: documentation
  /api/v1/ingest:
    post:
      operationId: post_api_v1_ingest
      tags:
      - Api
      summary: Dashboard / API
      description: Endpoint used by the collector to ingest trace batches; the page shows its status (accepted batches and traces, dropped records,
        rejected requests, and whether the endpoint requires a Bearer token or only allows loopback clients).
      x-source: https://phpray.dev/docs/usage/cli
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /checkout:
    post:
      operationId: post_checkout
      tags:
      - Checkout
      summary: request POST /checkout/
      x-source: https://phpray.dev/product
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /checkout/{checkoutId}:
    post:
      operationId: post_checkout_checkoutId
      tags:
      - Checkout
      summary: DEMO POST /checkout/500
      x-source: https://phpray.dev/how
      parameters:
      - name: checkoutId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /checkout/ko:
    post:
      operationId: post_checkout_ko
      tags:
      - Checkout
      summary: POST /checkout/kończy się błędem 500 po 842 ms
      x-source: https://phpray.dev/how
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /dl/phpray-directadmin.tar.gz:
    get:
      operationId: get_dl_phpray_directadmin_tar_gz
      tags:
      - Dl
      summary: Download the plugin archive
      description: Provides the PHPRay DirectAdmin plugin archive for download.
      x-source: https://phpray.dev/en/docs/usage/directadmin
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /install.sh:
    get:
      operationId: get_install_sh
      tags:
      - Install
      summary: Download the install script.
      description: Retrieves the install.sh script from https://phpray.dev/install.sh.
      x-source: https://phpray.dev/en/docs/install/quickstart
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/aggregates:
    post:
      operationId: post_v1_aggregates
      tags:
      - Aggregates
      summary: POST /v1/aggregates
      description: Jedno żądanie na minutę na serwer; po awarii można połączyć dane z kilku minut w paczkę.
      x-source: https://phpray.dev/docs/cloud/ingest
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1AggregatesRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1AggregatesResponse'
      x-evidence:
        kind: documentation
  /v1/control:
    get:
      operationId: get_v1_control
      tags:
      - Control
      summary: GET /v1/control is referenced in the configuration example for limited‑time profiling via the ingest protocol.
      x-source: https://phpray.dev/docs/configuration/extension
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/control/ack:
    post:
      operationId: post_v1_control_ack
      tags:
      - Control
      summary: POST /v1/control/ack
      description: Agent potwierdza odbiór komunikatów kontrolnych.
      x-source: https://phpray.dev/docs/cloud/ingest
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1ControlAckRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/health:
    get:
      operationId: get_v1_health
      tags:
      - Health
      summary: GET /v1/health
      description: '200 {"ok": true, "account": "…", "server": "…", "plan": "studio", "quota": {"traces_per_day": 200000, "used": 84121}}.'
      x-source: https://phpray.dev/docs/cloud/ingest
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1HealthResponse'
      x-evidence:
        kind: documentation
  /v1/traces:
    post:
      operationId: post_v1_traces
      tags:
      - Traces
      summary: POST /v1/traces
      description: 'Paczki do 500 śladów: niezmieniony rekord JSONL z rozszerzenia lub wtyczki WP z dodatkowym site_id.'
      x-source: https://phpray.dev/docs/cloud/ingest
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1TracesRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1TracesResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiV1HealthResponse:
      type: object
      properties:
        batches:
          type: integer
          description: Total number of ingest batches processed
        traces:
          type: integer
          description: Total number of trace records processed
        dropped:
          type: integer
          description: Total number of trace records dropped
        duplicates:
          type: integer
          description: Total number of duplicate batches rejected
        rejected:
          type: integer
          description: Total number of batches rejected due to errors or limits
    PostV1AggregatesRequest:
      type: object
      properties:
        batch_id:
          type: string
        sent_at:
          type: string
        agent:
          type: string
        server:
          type: object
          description: contains hostname_hash, php_versions, os
        minutes:
          type: array
          description: array of per‑minute aggregates
      required:
      - batch_id
      - sent_at
      - agent
      - server
      - minutes
    PostV1AggregatesResponse:
      type: object
      properties:
        accepted:
          type: integer
        duplicates:
          type: integer
        server_time:
          type: integer
    PostV1ControlAckRequest:
      type: object
      properties:
        ids:
          type: array
          description: identyfikatory potwierdzonych wiadomości
      required:
      - ids
    GetV1HealthResponse:
      type: object
      properties:
        ok:
          type: boolean
        account:
          type: string
        server:
          type: string
        plan:
          type: string
        quota:
          type: object
          description: traces_per_day, used
    PostV1TracesRequest:
      type: object
      properties:
        batch_id:
          type: string
        sent_at:
          type: string
        agent:
          type: string
        traces:
          type: array
          description: array of trace records
      required:
      - batch_id
      - sent_at
      - agent
      - traces
    PostV1TracesResponse:
      type: object
      properties:
        accepted:
          type: integer
        dropped_quota:
          type: integer
tags:
- name: Aggregates
- name: Api
- name: Checkout
- name: Control
- name: Dl
- name: Health
- name: Install
- name: Traces