> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morphllm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Hack me Terms

> Read the price and the authorization terms for a host at /api/v1/hack-me/terms

## Overview

Returns the price and the authorization terms for one host, word for word, as the dashboard shows them before payment; the read behind `morph hackme start`. Show `terms` to the person who accepts them, then send `agreementVersion` back when you [start an engagement](https://docs.morphllm.com/api-reference/endpoint/hack-me-start.md). Send `priceCents` too, as `expectedPriceCents`, to have the order refused if the price changed in between.

```bash theme={null}
curl "https://api.morphllm.com/api/v1/hack-me/terms?hostname=app.example.com" \
  -H "Authorization: Bearer $MORPH_API_KEY"
```

`priceCents` excludes tax: Stripe adds sales tax at checkout from your billing address. While `checkoutOpen` is `false`, starting an engagement returns `503`. Guide: [Hack me](https://docs.morphllm.com/hack-me.md).


## OpenAPI

````yaml GET /api/v1/hack-me/terms
openapi: 3.1.0
info:
  title: Morph API
  version: 1.2.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, System One typed decisions, speech to text (audio
    transcription and translation), model listing, and dedicated endpoint
    management, agentic credit top-ups paid over x402, account usage and billing
    settings, and organization member budgets. Model ids, prices, and context
    windows are served live at https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: systemone
    description: 'Typed decisions: a state in, a probability distribution per question out.'
  - name: audio
    description: >-
      Speech to text: transcription and translation of audio files,
      OpenAI-compatible.
  - name: models
    description: Model listing.
  - name: dedicated
    description: Dedicated endpoint discovery, status, and cancellation.
  - name: compute
    description: >-
      Dedicated compute: reserve whole GPU nodes by the month, manage SSH keys,
      give notice. Limited preview.
  - name: hack-me
    description: >-
      Hack me: an automated black-box penetration test of one public host you
      control, run by MindFort, Morph’s security testing partner.
  - name: credits
    description: Agentic credit top-ups paid in USDC over x402.
  - name: account
    description: >-
      Usage and spend per day; billing settings: extra usage, spend limit and
      alert, auto-reload.
  - name: organization
    description: Organization member budgets.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /api/v1/hack-me/terms:
    get:
      tags:
        - hack-me
      summary: Get Hack me terms
      description: >-
        The price and the authorization terms for one host, as the dashboard
        shows them before payment. Send back `agreementVersion`, and optionally
        `priceCents` as `expectedPriceCents`, when you start an engagement.
      operationId: getHackMeTerms
      parameters:
        - schema:
            type: string
            description: The host you will name, such as `app.example.com`.
            example: app.example.com
          required: false
          description: The host the terms name. Without it they read `this host`.
          name: hostname
          in: query
      responses:
        '200':
          description: The price and terms.
          content:
            application/json:
              example:
                priceCents: 50000
                currency: usd
                agreementVersion: 2026-12-02-v1
                terms:
                  - >-
                    MindFort, Morph's security testing partner, will run an
                    automated penetration test against app.example.com for
                    Morph. The test sends real traffic and can cause errors,
                    alerts, rate limiting or downtime on it.
                  - >-
                    I own app.example.com, or its owner has authorized me to
                    have it tested, and I can accept these terms for my
                    organization.
                  - >-
                    Testing starts only after I prove control of app.example.com
                    by publishing a DNS TXT record. Morph shares app.example.com
                    and the results with MindFort to run the test.
                  - >-
                    To research the target, the agents will also browse the
                    public internet.
                  - >-
                    All liability for this testing is mine and my
                    organization's. We will defend and indemnify Morph and
                    MindFort against any claim, loss or cost arising from it.
                checkoutOpen: true
              schema:
                $ref: '#/components/schemas/HackMeTerms'
        '400':
          description: '`hostname` is not one public hostname. The message says why.'
          content:
            application/json:
              example:
                error: >-
                  Invalid hostname: Enter the hostname only, like
                  app.example.com: no https://, port, path or credentials.
              schema:
                $ref: '#/components/schemas/HackMeError'
        '401':
          $ref: '#/components/responses/HackMeUnauthorized'
      security:
        - bearerAuth: []
components:
  schemas:
    HackMeTerms:
      type: object
      properties:
        priceCents:
          type: integer
          description: >-
            The price of one assessment in US cents, excluding tax. Stripe adds
            sales tax at checkout.
          example: 50000
        currency:
          type: string
          enum:
            - usd
          description: Currency of `priceCents`.
          example: usd
        agreementVersion:
          type: string
          description: >-
            Version of the terms. Send it back as `agreementVersion` when you
            start an engagement.
          example: 2026-12-02-v1
        terms:
          type: array
          items:
            type: string
          description: >-
            The authorization terms, word for word, naming the host. Show them
            to the person who accepts them. Without `hostname` they read `this
            host`.
          example:
            - >-
              MindFort, Morph's security testing partner, will run an automated
              penetration test against app.example.com for Morph. The test sends
              real traffic and can cause errors, alerts, rate limiting or
              downtime on it.
            - >-
              I own app.example.com, or its owner has authorized me to have it
              tested, and I can accept these terms for my organization.
            - >-
              Testing starts only after I prove control of app.example.com by
              publishing a DNS TXT record. Morph shares app.example.com and the
              results with MindFort to run the test.
            - >-
              To research the target, the agents will also browse the public
              internet.
            - >-
              All liability for this testing is mine and my organization's. We
              will defend and indemnify Morph and MindFort against any claim,
              loss or cost arising from it.
        checkoutOpen:
          type: boolean
          description: >-
            Whether a new engagement can be paid for now. While it is false,
            starting one answers 503.
          example: true
      required:
        - priceCents
        - currency
        - agreementVersion
        - terms
        - checkoutOpen
      description: The price and the authorization terms for one host.
      example:
        priceCents: 50000
        currency: usd
        agreementVersion: 2026-12-02-v1
        terms:
          - >-
            MindFort, Morph's security testing partner, will run an automated
            penetration test against app.example.com for Morph. The test sends
            real traffic and can cause errors, alerts, rate limiting or downtime
            on it.
          - >-
            I own app.example.com, or its owner has authorized me to have it
            tested, and I can accept these terms for my organization.
          - >-
            Testing starts only after I prove control of app.example.com by
            publishing a DNS TXT record. Morph shares app.example.com and the
            results with MindFort to run the test.
          - >-
            To research the target, the agents will also browse the public
            internet.
          - >-
            All liability for this testing is mine and my organization's. We
            will defend and indemnify Morph and MindFort against any claim, loss
            or cost arising from it.
        checkoutOpen: true
    HackMeError:
      type: object
      properties:
        error:
          type: string
          description: Why the request was refused and what to do instead, in plain text.
          example: >-
            Engagement not found. List yours with GET
            /api/v1/hack-me/engagements.
      required:
        - error
      description: Error body returned by the Hack me routes.
      example:
        error: Engagement not found. List yours with GET /api/v1/hack-me/engagements.
  responses:
    HackMeUnauthorized:
      description: Missing or invalid Morph API key on a Hack me request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HackMeError'
          example:
            error: >-
              Missing or invalid API key. Send "Authorization: Bearer <key>"
              with a key from https://www.morphllm.com/dashboard/api-keys
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.