> ## 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.

# Start a Hack me Engagement

> Authorize a test of one host and get a Stripe Checkout URL at /api/v1/hack-me/engagements

## Overview

Records your authorization to test one host and returns `checkoutUrl`, the Stripe Checkout page for the payment; the write behind `morph hackme start`. This call charges nothing. Read the terms with [Get Hack me Terms](https://docs.morphllm.com/api-reference/endpoint/hack-me-terms.md) first: `agreementVersion` must be the version you showed, or the order is refused with `409`.

```bash theme={null}
curl https://api.morphllm.com/api/v1/hack-me/engagements \
  -H "Authorization: Bearer $MORPH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "hostname": "app.example.com",
    "acceptedTerms": true,
    "agreementVersion": "AGREEMENT_VERSION",
    "expectedPriceCents": 50000
  }'
```

Open `checkoutUrl` in a browser to pay \$500 plus tax. The page stops working after about 30 minutes; [Get the Checkout Page](https://docs.morphllm.com/api-reference/endpoint/hack-me-checkout.md) returns a live one. An account runs one engagement at a time, so cancel an unpaid one you no longer want.

On `502` the engagement was created but its payment page did not open: the body carries `engagementId`. Get the page from the checkout route and do not start another. Organization keys require an organization admin.


## OpenAPI

````yaml POST /api/v1/hack-me/engagements
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/engagements:
    post:
      tags:
        - hack-me
      summary: Start a Hack me engagement
      description: >-
        Records your authorization to test one host and returns the Stripe
        Checkout page for the payment: 50000 US cents plus tax. Nothing is
        charged by this call. After payment, the engagement shows a DNS TXT
        record to publish; the assessment starts once it verifies. An account
        runs one engagement at a time. With an organization key, requires an
        organization admin.
      operationId: createHackMeEngagement
      requestBody:
        description: The host, with the terms accepted at their version.
        content:
          application/json:
            example:
              hostname: app.example.com
              acceptedTerms: true
              agreementVersion: 2026-12-02-v1
              expectedPriceCents: 50000
            schema:
              $ref: '#/components/schemas/HackMeStartBody'
      responses:
        '201':
          description: Engagement created. Pay at `checkoutUrl`.
          content:
            application/json:
              example:
                engagement:
                  id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
                  hostname: app.example.com
                  status: awaiting_payment
                  assessmentStatus: null
                  detail: null
                  verification: null
                  agreementVersion: 2026-12-02-v1
                  authorizationAcceptedAt: '2027-01-04T09:02:00.000Z'
                  paidAt: null
                  amountSubtotalCents: null
                  amountDiscountCents: null
                  amountTaxCents: null
                  amountTotalCents: null
                  activity: null
                  completedAt: null
                  createdAt: '2027-01-04T09:02:00.000Z'
                  report: null
                  stopRequestedAt: null
                  attemptNumber: 1
                  attempts:
                    - id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
                      attemptNumber: 1
                      status: awaiting_payment
                      assessmentStatus: null
                      createdAt: '2027-01-04T09:02:00.000Z'
                      dispatchedAt: null
                      completedAt: null
                  restart: null
                  refundReason: null
                checkoutUrl: https://checkout.stripe.com/c/pay/cs_live_b2C3d4E5f6G7h8I9j0K1
              schema:
                $ref: '#/components/schemas/HackMeStarted'
        '400':
          description: >-
            A field is missing or invalid, `acceptedTerms` is not `true`, or
            `hostname` is not one public hostname. The message names the field.
          content:
            application/json:
              example:
                error: >-
                  Set acceptedTerms to true to accept the authorization terms.
                  Read them with GET /api/v1/hack-me/terms?hostname=HOST.
              schema:
                $ref: '#/components/schemas/HackMeError'
        '401':
          $ref: '#/components/responses/HackMeUnauthorized'
        '403':
          $ref: '#/components/responses/HackMeAdminRequired'
        '409':
          description: >-
            Nothing was created: the terms version or the price changed since
            you read them, the account already has an engagement in progress,
            the host does not resolve only to public addresses, or the account
            has no email address. The message says which.
          content:
            application/json:
              example:
                error: >-
                  You already have an engagement in progress. Finish or cancel
                  it first.
              schema:
                $ref: '#/components/schemas/HackMeError'
        '502':
          description: >-
            The engagement was created but the payment page did not open. The
            body also carries `engagementId`. Get the page from the checkout
            route; do not start another engagement.
          content:
            application/json:
              example:
                error: >-
                  Engagement c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16 was created,
                  but the payment page did not open. Get it with POST
                  /api/v1/hack-me/engagements/c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16/checkout,
                  or cancel it. Do not create another.
                engagementId: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
              schema:
                $ref: '#/components/schemas/HackMeStartFailed'
        '503':
          description: >-
            Checkout is paused, or the check that the host is public could not
            run. Nothing was created. Retry later.
          content:
            application/json:
              example:
                error: Assessment checkout is paused. Nothing was created.
              schema:
                $ref: '#/components/schemas/HackMeError'
      security:
        - bearerAuth: []
components:
  schemas:
    HackMeStartBody:
      type: object
      properties:
        hostname:
          type: string
          maxLength: 253
          description: >-
            One public hostname, such as `app.example.com`: no scheme, port,
            path, wildcard or IP address, and not a private name. It must
            resolve only to public addresses.
          example: app.example.com
        acceptedTerms:
          type: boolean
          enum:
            - true
          description: >-
            Must be `true`: acceptance of `terms` from `GET
            /api/v1/hack-me/terms` for this hostname. Recorded on the engagement
            with the time and the key’s owner.
          example: true
        agreementVersion:
          type: string
          description: >-
            The `agreementVersion` you read with the terms. The request is
            refused with 409 if the terms changed since.
          example: 2026-12-02-v1
        expectedPriceCents:
          type: integer
          description: >-
            The price you expect in US cents, excluding tax: `priceCents` from
            the terms. When sent, the request is refused with 409 if the price
            differs.
          example: 50000
      required:
        - hostname
        - acceptedTerms
        - agreementVersion
      description: 'An engagement to start. Carries no amount: the server prices it.'
      example:
        hostname: app.example.com
        acceptedTerms: true
        agreementVersion: 2026-12-02-v1
        expectedPriceCents: 50000
    HackMeStarted:
      type: object
      properties:
        engagement:
          allOf:
            - $ref: '#/components/schemas/HackMeEngagement'
            - description: The new engagement, `awaiting_payment`.
              example:
                id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
                hostname: app.example.com
                status: awaiting_payment
                assessmentStatus: null
                detail: null
                verification: null
                agreementVersion: 2026-12-02-v1
                authorizationAcceptedAt: '2027-01-04T09:02:00.000Z'
                paidAt: null
                amountSubtotalCents: null
                amountDiscountCents: null
                amountTaxCents: null
                amountTotalCents: null
                activity: null
                completedAt: null
                createdAt: '2027-01-04T09:02:00.000Z'
                report: null
                stopRequestedAt: null
                attemptNumber: 1
                attempts:
                  - id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
                    attemptNumber: 1
                    status: awaiting_payment
                    assessmentStatus: null
                    createdAt: '2027-01-04T09:02:00.000Z'
                    dispatchedAt: null
                    completedAt: null
                restart: null
                refundReason: null
        checkoutUrl:
          type: string
          format: uri
          description: >-
            Stripe Checkout page for the payment. Open it in a browser. It stops
            working after about 30 minutes; the checkout route returns a live
            one.
          example: https://checkout.stripe.com/c/pay/cs_live_b2C3d4E5f6G7h8I9j0K1
      required:
        - engagement
        - checkoutUrl
      description: An authorized engagement and where to pay for it.
      example:
        engagement:
          id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
          hostname: app.example.com
          status: awaiting_payment
          assessmentStatus: null
          detail: null
          verification: null
          agreementVersion: 2026-12-02-v1
          authorizationAcceptedAt: '2027-01-04T09:02:00.000Z'
          paidAt: null
          amountSubtotalCents: null
          amountDiscountCents: null
          amountTaxCents: null
          amountTotalCents: null
          activity: null
          completedAt: null
          createdAt: '2027-01-04T09:02:00.000Z'
          report: null
          stopRequestedAt: null
          attemptNumber: 1
          attempts:
            - id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
              attemptNumber: 1
              status: awaiting_payment
              assessmentStatus: null
              createdAt: '2027-01-04T09:02:00.000Z'
              dispatchedAt: null
              completedAt: null
          restart: null
          refundReason: null
        checkoutUrl: https://checkout.stripe.com/c/pay/cs_live_b2C3d4E5f6G7h8I9j0K1
    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.
    HackMeStartFailed:
      type: object
      properties:
        error:
          type: string
          description: What happened and what to do next.
          example: >-
            Engagement c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16 was created, but the
            payment page did not open. Get it with POST
            /api/v1/hack-me/engagements/c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16/checkout,
            or cancel it. Do not create another.
        engagementId:
          type: string
          format: uuid
          description: The engagement that was created. Pass it to the checkout route.
          example: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
      required:
        - error
        - engagementId
      description: An engagement that was created without a payment page.
      example:
        error: >-
          Engagement c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16 was created, but the
          payment page did not open. Get it with POST
          /api/v1/hack-me/engagements/c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16/checkout,
          or cancel it. Do not create another.
        engagementId: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
    HackMeEngagement:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: >-
            Engagement id. Pass it to the other routes. A restart is a new
            attempt with its own id.
          example: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
        hostname:
          type: string
          description: >-
            The one host under test, lowercase. It is tested over HTTPS on port
            443.
          example: app.example.com
        status:
          type: string
          enum:
            - awaiting_dns
            - awaiting_payment
            - paid
            - dispatched
            - completed
            - failed
            - cancelled
          description: >-
            The field to act on. `awaiting_payment`: terms accepted, not paid;
            pay at the checkout route’s URL. `paid`: payment received; while
            `assessmentStatus` is `verifying` it waits for the DNS TXT record in
            `verification`, otherwise the assessment is being started.
            `dispatched`: the assessment started; `assessmentStatus` is `queued`
            or `running`. `completed`: `report` is ready. `failed`: the run
            failed; `restart` says whether it can run again at no charge.
            `cancelled`: cancelled before payment, stopped at your request, or
            refused (see `refundReason`). `awaiting_dns`: a draft from a retired
            flow that cannot be continued; cancel it.
          example: completed
        assessmentStatus:
          type:
            - string
            - 'null'
          enum:
            - verifying
            - queued
            - running
            - completed
            - failed
            - cancelled
            - null
          description: >-
            The assessment’s own status. `verifying`: waiting for the DNS TXT
            record. `queued`: waiting to start. `running`: testing, which takes
            hours. `completed`, `failed` and `cancelled`: the run ended. Null
            before payment and while a paid assessment is being started.
          example: completed
        detail:
          type:
            - string
            - 'null'
          description: >-
            One line on the current state, in plain text: why it is waiting (the
            DNS record not found yet, a delayed start, another assessment of the
            host running) or why it failed or was cancelled. Null when there is
            nothing to add.
          example: null
        verification:
          anyOf:
            - $ref: '#/components/schemas/HackMeVerification'
            - type: 'null'
          description: >-
            The DNS TXT record to publish. Set only while `status` is `paid` and
            `assessmentStatus` is `verifying`. Otherwise null.
          example: null
        agreementVersion:
          type: string
          description: Version of the authorization terms accepted for this attempt.
          example: 2026-12-02-v1
        authorizationAcceptedAt:
          type: string
          format: date-time
          description: ISO 8601 time the authorization terms were accepted.
          example: '2027-01-04T09:02:00.000Z'
        paidAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            ISO 8601 time of payment. Null until paid. A restart shows the
            payment it runs on.
          example: '2027-01-04T09:05:00.000Z'
        amountSubtotalCents:
          type:
            - integer
            - 'null'
          description: The price before discount and tax, in US cents. Null until paid.
          example: 50000
        amountDiscountCents:
          type:
            - integer
            - 'null'
          description: Discount from a promotion code, in US cents. Null until paid.
          example: 0
        amountTaxCents:
          type:
            - integer
            - 'null'
          description: >-
            Sales tax Stripe charged from the billing address, in US cents. Null
            until paid. The example is illustrative.
          example: 0
        amountTotalCents:
          type:
            - integer
            - 'null'
          description: >-
            What was charged, in US cents: subtotal, less discount, plus tax.
            Null until paid. The example is illustrative.
          example: 50000
        activity:
          anyOf:
            - $ref: '#/components/schemas/HackMeActivity'
            - type: 'null'
          description: >-
            The run’s stages and where each one is. Null until the run reports
            them.
          example:
            stages:
              - name: Reconnaissance
                state: done
              - name: Access control
                state: done
              - name: Injection
                state: done
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            ISO 8601 time the assessment ended: completed, failed or cancelled.
            Null before, and on an engagement cancelled before payment.
          example: '2027-01-04T15:12:00.000Z'
        createdAt:
          type: string
          format: date-time
          description: ISO 8601 time the engagement was created.
          example: '2027-01-04T09:02:00.000Z'
        report:
          anyOf:
            - $ref: '#/components/schemas/HackMeReport'
            - type: 'null'
          description: The findings. Set once `status` is `completed`. Otherwise null.
          example:
            findings:
              - id: 5b7e0c2a-9d14-4f63-8a1e-3c6f2d9b0e47
                status: confirmed
                severity: high
                class: Broken Access Control
                title: Any signed-in user can read another account’s invoices
                where: GET https://app.example.com/api/invoices/{id}
                proof: >-
                  Signed in as account A, requested invoice 1042 of account B:
                  200 with the full invoice.
                control: >-
                  Check that the invoice belongs to the caller’s account before
                  returning it.
                chain: ''
                detail: >-
                  Invoice ids are sequential and the route checks only that the
                  caller is signed in.


                  Impact: any customer can read every other customer’s billing
                  details.
        stopRequestedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            ISO 8601 time you cancelled the engagement or asked to stop it.
            While `status` is still `paid` or `dispatched`, the stop waits for
            the assessment service to confirm it, then `status` reads
            `cancelled`. Otherwise null.
          example: null
        attemptNumber:
          type: integer
          description: >-
            1 for the paid run, then 2 and 3 for restarts (at most 3 attempts
            per payment).
          example: 1
        attempts:
          type: array
          items:
            $ref: '#/components/schemas/HackMeAttempt'
          description: Every attempt on this payment, oldest first, this one included.
          example:
            - id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
              attemptNumber: 1
              status: completed
              assessmentStatus: completed
              createdAt: '2027-01-04T09:02:00.000Z'
              dispatchedAt: '2027-01-04T09:41:00.000Z'
              completedAt: '2027-01-04T15:12:00.000Z'
        restart:
          anyOf:
            - $ref: '#/components/schemas/HackMeRestart'
            - type: 'null'
          description: >-
            Set only on a failed attempt that no restart has replaced yet:
            whether it can run again at no charge. Otherwise null.
          example: null
        refundReason:
          type:
            - string
            - 'null'
          description: >-
            Set when Morph will refund the payment because the assessment was
            refused, for example because the host no longer resolves only to
            public addresses. Plain text. Otherwise null.
          example: null
      required:
        - id
        - hostname
        - status
        - assessmentStatus
        - detail
        - verification
        - agreementVersion
        - authorizationAcceptedAt
        - paidAt
        - amountSubtotalCents
        - amountDiscountCents
        - amountTaxCents
        - amountTotalCents
        - activity
        - completedAt
        - createdAt
        - report
        - stopRequestedAt
        - attemptNumber
        - attempts
        - restart
        - refundReason
      description: 'One engagement: an authorized assessment of one host.'
      example:
        id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
        hostname: app.example.com
        status: completed
        assessmentStatus: completed
        detail: null
        verification: null
        agreementVersion: 2026-12-02-v1
        authorizationAcceptedAt: '2027-01-04T09:02:00.000Z'
        paidAt: '2027-01-04T09:05:00.000Z'
        amountSubtotalCents: 50000
        amountDiscountCents: 0
        amountTaxCents: 0
        amountTotalCents: 50000
        activity:
          stages:
            - name: Reconnaissance
              state: done
            - name: Access control
              state: done
            - name: Injection
              state: done
        completedAt: '2027-01-04T15:12:00.000Z'
        createdAt: '2027-01-04T09:02:00.000Z'
        report:
          findings:
            - id: 5b7e0c2a-9d14-4f63-8a1e-3c6f2d9b0e47
              status: confirmed
              severity: high
              class: Broken Access Control
              title: Any signed-in user can read another account’s invoices
              where: GET https://app.example.com/api/invoices/{id}
              proof: >-
                Signed in as account A, requested invoice 1042 of account B: 200
                with the full invoice.
              control: >-
                Check that the invoice belongs to the caller’s account before
                returning it.
              chain: ''
              detail: >-
                Invoice ids are sequential and the route checks only that the
                caller is signed in.


                Impact: any customer can read every other customer’s billing
                details.
        stopRequestedAt: null
        attemptNumber: 1
        attempts:
          - id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
            attemptNumber: 1
            status: completed
            assessmentStatus: completed
            createdAt: '2027-01-04T09:02:00.000Z'
            dispatchedAt: '2027-01-04T09:41:00.000Z'
            completedAt: '2027-01-04T15:12:00.000Z'
        restart: null
        refundReason: null
    HackMeVerification:
      type: object
      properties:
        recordName:
          type: string
          description: Name of the DNS TXT record to publish, as a fully qualified name.
          example: _mindfort.app.example.com
        recordValue:
          type: string
          description: Value of the TXT record, exactly as given.
          example: f0e1d2c3b4a5968778695a4b3c2d1e0f
      required:
        - recordName
        - recordValue
      description: >-
        The DNS TXT record that proves you control the host. MindFort, Morph’s
        security testing partner, issues it.
      example:
        recordName: _mindfort.app.example.com
        recordValue: f0e1d2c3b4a5968778695a4b3c2d1e0f
    HackMeActivity:
      type: object
      properties:
        stages:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                description: The stage, as the assessment names it.
                example: Access control
              state:
                type: string
                enum:
                  - pending
                  - running
                  - done
                  - skipped
                  - failed
                description: >-
                  Where the stage is: `pending`, `running`, `done`, `skipped` or
                  `failed`.
                example: running
            required:
              - name
              - state
          description: The run’s testing stages, in the order they run.
          example:
            - name: Reconnaissance
              state: done
            - name: Access control
              state: running
            - name: Injection
              state: pending
      required:
        - stages
      description: Progress of a running assessment, stage by stage.
      example:
        stages:
          - name: Reconnaissance
            state: done
          - name: Access control
            state: running
          - name: Injection
            state: pending
    HackMeReport:
      type: object
      properties:
        findings:
          type: array
          items:
            $ref: '#/components/schemas/HackMeFinding'
          description: >-
            Validated findings, highest severity first, at most 200. Findings
            past the first 40 carry their title, severity and class only. Empty
            when nothing was found.
          example:
            - id: 5b7e0c2a-9d14-4f63-8a1e-3c6f2d9b0e47
              status: confirmed
              severity: high
              class: Broken Access Control
              title: Any signed-in user can read another account’s invoices
              where: GET https://app.example.com/api/invoices/{id}
              proof: >-
                Signed in as account A, requested invoice 1042 of account B: 200
                with the full invoice.
              control: >-
                Check that the invoice belongs to the caller’s account before
                returning it.
              chain: ''
              detail: >-
                Invoice ids are sequential and the route checks only that the
                caller is signed in.


                Impact: any customer can read every other customer’s billing
                details.
      required:
        - findings
      description: The report of a completed assessment.
      example:
        findings:
          - id: 5b7e0c2a-9d14-4f63-8a1e-3c6f2d9b0e47
            status: confirmed
            severity: high
            class: Broken Access Control
            title: Any signed-in user can read another account’s invoices
            where: GET https://app.example.com/api/invoices/{id}
            proof: >-
              Signed in as account A, requested invoice 1042 of account B: 200
              with the full invoice.
            control: >-
              Check that the invoice belongs to the caller’s account before
              returning it.
            chain: ''
            detail: >-
              Invoice ids are sequential and the route checks only that the
              caller is signed in.


              Impact: any customer can read every other customer’s billing
              details.
    HackMeAttempt:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The attempt’s engagement id.
          example: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
        attemptNumber:
          type: integer
          description: 1 for the paid run, then 2 and 3 for restarts.
          example: 1
        status:
          type: string
          enum:
            - awaiting_dns
            - awaiting_payment
            - paid
            - dispatched
            - completed
            - failed
            - cancelled
          description: The attempt’s `status`.
          example: failed
        assessmentStatus:
          type:
            - string
            - 'null'
          enum:
            - verifying
            - queued
            - running
            - completed
            - failed
            - cancelled
            - null
          description: The attempt’s `assessmentStatus`.
          example: failed
        createdAt:
          type: string
          format: date-time
          description: ISO 8601 time the attempt was created.
          example: '2027-01-04T09:02:00.000Z'
        dispatchedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            ISO 8601 time the attempt was handed to the assessment service. Null
            before.
          example: '2027-01-04T09:41:00.000Z'
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: ISO 8601 time the attempt’s assessment ended. Null before.
          example: '2027-01-04T11:30:00.000Z'
      required:
        - id
        - attemptNumber
        - status
        - assessmentStatus
        - createdAt
        - dispatchedAt
        - completedAt
      description: One attempt of a payment.
      example:
        id: c3a1f9d2-6b4e-4f7a-9e21-5d8b0c7a4e16
        attemptNumber: 1
        status: failed
        assessmentStatus: failed
        createdAt: '2027-01-04T09:02:00.000Z'
        dispatchedAt: '2027-01-04T09:41:00.000Z'
        completedAt: '2027-01-04T11:30:00.000Z'
    HackMeRestart:
      type: object
      properties:
        available:
          type: boolean
          description: Whether the restart route accepts this attempt now.
          example: true
        remaining:
          type: integer
          description: Restarts this payment has left, out of 2.
          example: 2
        until:
          type:
            - string
            - 'null'
          format: date-time
          description: ISO 8601 end of the restart window, 7 days after payment.
          example: '2027-01-11T09:05:00.000Z'
        requiresAcceptance:
          type: boolean
          description: >-
            The authorization terms changed since this attempt was accepted.
            Restarting needs `acceptedTerms: true`, accepting the current terms.
          example: false
        blockedReason:
          type:
            - string
            - 'null'
          description: Why a restart is not available now, in plain text. Null when it is.
          example: null
        contactSupport:
          type: boolean
          description: >-
            No restart will become available for this payment. Email
            support@morphllm.com about a refund.
          example: false
      required:
        - available
        - remaining
        - until
        - requiresAcceptance
        - blockedReason
        - contactSupport
      description: >-
        Whether a failed attempt can be run again at no charge: up to 2 restarts
        per payment, within 7 days of payment.
      example:
        available: true
        remaining: 2
        until: '2027-01-11T09:05:00.000Z'
        requiresAcceptance: false
        blockedReason: null
        contactSupport: false
    HackMeFinding:
      type: object
      properties:
        id:
          type: string
          description: Finding id.
          example: 5b7e0c2a-9d14-4f63-8a1e-3c6f2d9b0e47
        status:
          type: string
          description: >-
            Validation status. `confirmed`: the agents proved it against the
            live host.
          example: confirmed
        severity:
          type: string
          description: >-
            Severity as reported, such as `critical`, `high`, `medium` or `low`.
            Empty when none was given.
          example: high
        class:
          type: string
          description: The kind of weakness, such as its OWASP category.
          example: Broken Access Control
        title:
          type: string
          description: The problem in one line.
          example: Any signed-in user can read another account’s invoices
        where:
          type: string
          description: The endpoint where it was found. Empty when not reported.
          example: GET https://app.example.com/api/invoices/{id}
        proof:
          type: string
          description: Evidence gathered against the live host. Empty when not reported.
          example: >-
            Signed in as account A, requested invoice 1042 of account B: 200
            with the full invoice.
        control:
          type: string
          description: How to fix it. Empty when not reported.
          example: >-
            Check that the invoice belongs to the caller’s account before
            returning it.
        chain:
          type: string
          description: >-
            How this finding links with others into one attack, when it does.
            Empty otherwise.
          example: ''
        detail:
          type: string
          description: What is wrong and its impact. Empty when not reported.
          example: >-
            Invoice ids are sequential and the route checks only that the caller
            is signed in.


            Impact: any customer can read every other customer’s billing
            details.
      required:
        - id
        - status
        - severity
        - class
        - title
        - where
        - proof
        - control
        - chain
        - detail
      description: One validated finding, as plain text.
      example:
        id: 5b7e0c2a-9d14-4f63-8a1e-3c6f2d9b0e47
        status: confirmed
        severity: high
        class: Broken Access Control
        title: Any signed-in user can read another account’s invoices
        where: GET https://app.example.com/api/invoices/{id}
        proof: >-
          Signed in as account A, requested invoice 1042 of account B: 200 with
          the full invoice.
        control: >-
          Check that the invoice belongs to the caller’s account before
          returning it.
        chain: ''
        detail: >-
          Invoice ids are sequential and the route checks only that the caller
          is signed in.


          Impact: any customer can read every other customer’s billing details.
  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
    HackMeAdminRequired:
      description: >-
        The key is an organization key whose owner is not an admin of the
        organization. With an organization key, every write needs a key created
        by an organization admin.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HackMeError'
          example:
            error: >-
              An organization admin must authorize and pay for an engagement.
              Use an API key created by an admin of this organization.
  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.