Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

More endpoints API

Endpoints added to the registry that don't belong to a reference page yet.

10 endpointsGenerated from the typed registry

Base URL https://api.ndstill.com/v2. Send Authorization: Bearer with a key, Ndstill-Version: 2026-11-01, and an Idempotency-Key on every POST. Conventions, scopes and errors are in the API overview and Errors and decline reasons. Examples come from the mock backend; the shapes are the TypeScript types in packages/api.

Get support access#

GET/v2/support-access
Response SupportAccess
  • object"support_access"
  • statusstring enum
    "none""requested""expired""granted"
  • ticketstring | null

    The support ticket the request is for.

  • scopestring | null

    What support asked to see ("Read-only view of the console for ticket SUP-2043").

  • granted_bystring | null
  • granted_atTimestamp | null
  • expires_atTimestamp | null
Errors
  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/support-access" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "support_access",
  "status": "granted",
  "granted_by": "Dana Whitfield",
  "granted_at": "2026-11-22T22:43:13.221Z",
  "expires_at": "2026-11-24T22:43:13.221Z",
  "ticket": "SUP-2043",
  "scope": "Read-only view of the console for ticket SUP-2043 (approvals not reaching Slack)"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Checkouts accept#

POST/v2/accept/checkouts
Request body AcceptCheckoutCreate
  • price_idId
  • amountMoney

    Required without a price; must match the price with one.

    Money: 2 fields
    • amountnumberrequired
    • assetAssetCoderequired
      "USD""USDC""EUR""GBP"
  • passport_kidstring
  • buyerobject

    Names for a buyer ndStill doesn't know.

    2 fields
    • org_namestring
    • agent_namestring
  • rails_offeredRail[]

    Defaults to the price's rails.

    "card""network_token""checkout_token""stablecoin""bank""ai""cloud"
Response Checkout
  • idId
  • object"checkout"
  • org_idId
  • created_atTimestamp
  • updated_atTimestampoptional
  • test_modebooleanoptional

    True for test-mode objects (simulations, sandbox).

  • seller_idId
  • priceRef | null

    Small reference used for denormalized names in lists (no N+1 lookups in tables).

    Ref: 2 fields
    • idId
    • namestring
  • buyerobject
    4 fields
    • org_namestring
    • agent_namestring
    • passport_kidstring | null
    • verifiedboolean
  • amountMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • rails_offeredRail[]
    "card""network_token""checkout_token""stablecoin""bank""ai""cloud"
  • railstring enum
    null"card""network_token""checkout_token""stablecoin""bank""ai""cloud"
  • statusstring enum
    "open""paid""expired""refunded""failed"
  • receipt_idId | null
  • paid_atTimestamp | nulloptional
  • expires_atTimestamp | nulloptional
  • landed_instring | nulloptional

    Where the money landed (always the seller's own account).

  • failure_reasonstring | nulloptional

    Why it failed or expired, in plain language.

  • confirmationPaymentConfirmation | nulloptional

    How ndStill confirmed the payment on its rail before the receipt said "paid".

    PaymentConfirmation: 6 fields
    • methodstring enum
      "ndstill_payment""onchain""stripe""sandbox"
    • refstring

      The payment id, `network:tx_hash`, the Stripe payment id, or the checkout id for sandbox.

    • networkstring | null
    • confirmed_atTimestamp
    • sandboxboolean

      No money moved (test keys).

    • detailstring

      In plain words ("1.50 USDC reached 0xAbC0…0dEf on base.").

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/accept/checkouts" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": {
      "amount": 4200,
      "asset": "USD"
    }
  }'
Response 200
{
  "id": "chk_01M82XPRTQ2RSFV5AV6W9P4KMB",
  "object": "checkout",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-23T00:43:13.623Z",
  "seller_id": "sel_01M0V5Y0MEPNA7FSHJ6NH4KEHE",
  "price": null,
  "buyer": {
    "org_name": "Unknown buyer",
    "agent_name": "Unknown agent",
    "passport_kid": null,
    "verified": false
  },
  "amount": {
    "amount": 4200,
    "asset": "USD"
  },
  "rails_offered": [
    "stablecoin"
  ],
  "rail": null,
  "status": "open",
  "receipt_id": null,
  "paid_at": null,
  "expires_at": "2026-11-23T00:58:13.623Z",
  "landed_in": null,
  "failure_reason": null
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Checkouts an accept#

POST/v2/accept/checkouts/{id}/fail
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body AcceptCheckoutFail
  • reasonstringrequired
Response Checkout

The same Checkout object as Checkouts accept.

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example request
Request
curl -X POST "https://api.ndstill.com/v2/accept/checkouts/{id}/fail" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)"
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Checkouts an accept#

POST/v2/accept/checkouts/{id}/pay
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body AcceptCheckoutPay
  • railRailrequired
    "card""network_token""checkout_token""stablecoin""bank""ai""cloud"
  • proofPaymentProofrequired

    How a checkout was paid, sent with POST /accept/checkouts/{id}/pay and checked on the rail: - ndstill_payment: the buyer agent's ndStill payment (made by the checkout's buyer, authorized or settled, same rail, amount and mode). It's linked to the checkout and can't pay another. - onchain: a stablecoin transaction; at least the amount in USDC must reach the seller's connected wallet. - stripe: a card payment through the seller's Stripe account (test keys only for now). - sandbox: test keys only, any rail. Test keys get sandbox answers for onchain (a hash of all zeros isn't on chain yet) and stripe.

    One of 4 shapes
    • kind"ndstill_payment"required
    • payment_intent_idIdrequired
    • kind"onchain"required
    • networkstring enumrequired
      "base""base-sepolia"
    • tx_hashstringrequired
    • kind"stripe"required
    • payment_intentstringrequired
    • kind"sandbox"required
  • request_hashstringrequired

    "sha256:" and 64 hex characters.

  • response_hashstringrequired
  • mandate_hashstring
  • buyer_signaturePartySignatureInput

    A buyer kid in ndStill's key directory must be signed with that very key.

    PartySignatureInput: 3 fields
    • kidstringrequired
    • jwkobjectrequired
      3 fields
      • kty"OKP"required
      • crv"Ed25519"required
      • xstringrequired
    • sigstringrequired
  • seller_signaturePartySignatureInput

    An Ed25519 signature over the receipt core (RFC 8785 JCS of ref, amount, asset, rail and the hashes).

    PartySignatureInput: 3 fields
    • kidstringrequired
    • jwkobjectrequired
      3 fields
      • kty"OKP"required
      • crv"Ed25519"required
      • xstringrequired
    • sigstringrequired
Response Receipt
  • idId
  • object"receipt"
  • org_idId
  • created_atTimestamp
  • updated_atTimestampoptional
  • test_modebooleanoptional

    True for test-mode objects (simulations, sandbox).

  • intent_idId | null
  • seller_idId | null
  • seller_namestring
  • buyerobject
    2 fields
    • org_namestring
    • agent_namestring
  • amountMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • railRail
    "card""network_token""checkout_token""stablecoin""bank""ai""cloud"
  • request_hashstring
  • response_hashstring
  • mandate_hashstring | null
  • signaturesobject[]
    3 fields
    • partystring enum
      "seller""buyer""ndstill"
    • kidstring
    • validboolean
  • evidence_event_idId | null
  • checkout_idId | nulloptional
  • proofVerifiedFlags | nulloptional

    Evidence proof for the ndStill countersignature (signature, chain, anchor).

    VerifiedFlags: 8 fields
    • signatureboolean

      Event signature checks out against the published key.

    • chainboolean

      prev_hash links continuously to the previous event.

    • anchorboolean | null

      Included in an anchored Merkle root; null while the hourly anchor is pending.

    • evidence_event_idIdoptional
    • kidstringoptional
    • event_hashstringoptional
    • anchor_idId | nulloptional
    • anchored_atTimestamp | nulloptional
Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example request
Request
curl -X POST "https://api.ndstill.com/v2/accept/checkouts/{id}/pay" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)"
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Refund requests accept#

POST/v2/accept/refund-requests
Request body AcceptRefundRequest
  • receipt_idIdrequired
  • reasonstringrequired

    The buyer's reason.

  • amountMoney

    Omit for the full amount.

    Money: 2 fields
    • amountnumberrequired
    • assetAssetCoderequired
      "USD""USDC""EUR""GBP"
  • requeststring

    The buyer's signed request, as proof the buyer on the receipt asked.

Response SellerRefund
  • idId
  • object"seller_refund"
  • org_idId
  • created_atTimestamp
  • updated_atTimestampoptional
  • test_modebooleanoptional

    True for test-mode objects (simulations, sandbox).

  • receipt_idId
  • checkout_idId | null
  • buyerobject
    2 fields
    • org_namestring
    • agent_namestring
  • amountMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • reasonstring
  • statusstring enum
    "requested""approved""declined""refunded"
  • dispute_idId | null
  • respond_byTimestamp | null
  • kindstring enumoptional

    A refund request from the buyer, or a dispute opened through ndStill.

    "refund""dispute"
  • railstring enumoptional
    null"card""network_token""checkout_token""stablecoin""bank""ai""cloud"
  • messagesobject[]optional
    3 fields
    • atTimestamp
    • fromstring enum
      "seller""buyer""ndstill"
    • bodystring
  • evidenceobject[]optional

    Evidence the seller attached with the response.

    2 fields
    • kindSellerEvidenceKind
      "mandate""receipt""hashes""verify_log""delivery_log"
    • labelstring
  • refunded_viastring | nulloptional

    How the refund went out (the seller's own provider or wallet).

  • refund_amountMoney | nulloptional

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/accept/refund-requests" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "receipt_id": "rcpt_01M82VJYNEJFCMY9VHY5PS5W12",
    "reason": "Checking the API from the docs",
    "amount": {
      "amount": 4200,
      "asset": "USD"
    }
  }'
Response 404
{
  "object": "error",
  "type": "not_found",
  "code": "not_found",
  "message": "No receipt with id rcpt_01M82VJYNEJFCMY9VHY5PS5W12.",
  "request_id": "req_d55f7709b429372d82af"
}

The mock answered this sample with an error; its message says why. Adjust the request in Try it below.

Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Verify accept#

POST/v2/accept/verify
Request body AcceptVerifyRequest
  • requeststringrequired

    The signed request as received: request line, headers, a blank line, the body.

  • resourcestring

    The resource being sold. Defaults to the request's path.

  • mandate_idstring

    A mandate the agent presented. Also read from the request's NDStill-Mandate header.

Response AcceptVerification
  • object"accept_verification"
  • verifiedboolean
  • failed_checkstring enum

    The first check that failed.

    null"mandate""price""signature""timestamp""nonce"
  • messagestring

    In plain words ("Nonce was already used").

  • status_codeenum

    What the middleware should answer: 401 signature, timestamp or nonce; 403 mandate; 402 price.

    200401402403
  • agentRef | null

    Small reference used for denormalized names in lists (no N+1 lookups in tables).

    Ref: 2 fields
    • idId
    • namestring
  • buyer_orgRef | null

    The buyer agent's org (null when unknown, or when the org hides its name from sellers).

    Ref: 2 fields
    • idId
    • namestring
  • buyer_org_hiddenboolean

    The buyer org hides its name from sellers; show "An ndStill customer".

  • passport_kidstring | null
  • priceobject | null

    The seller's price that matched the resource.

    2 fields
    • idId
    • amountMoney

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
  • mandate_idId | null
  • signatureSignatureVerifyResult

    The signature checks in detail (as POST /agent-keys/verify).

    SignatureVerifyResult: 11 fields
    • object"signature_verification"
    • verifiedboolean
    • summarystring

      One sentence: why it verified, or the first thing that failed.

    • keyidstring | null
    • agentRef | null

      Small reference used for denormalized names in lists (no N+1 lookups in tables).

      Ref: 2 fields
      • idId
      • namestring
    • keyobject | null
      3 fields
      • kidstring
      • statusstring enum
        "active""revoked""rotating"
      • custodystring enum
        "customer""ndstill_kms"
    • labelstring | null

      The signature label ("sig1").

    • covered_componentsstring[]
    • paramsobject
      5 fields
      • createdTimestamp | null
      • expiresTimestamp | null
      • algstring | null
      • tagstring | null
      • noncestring | null
    • checksSignatureCheck[]
      SignatureCheck: 3 fields
      • namestring
      • okboolean | null

        null = not checked (an earlier check failed).

      • messagestring
    • signature_basestring

      The signature base ndStill rebuilt from the request (what the signature must cover).

  • logVerifyLog
    VerifyLog: 12 fields
    • idId
    • object"verify_log"
    • atTimestamp
    • agentstring
    • passport_kidstring | null
    • resultstring enum
      "verified""failed"
    • checkstring
    • resourcestring
    • status_codeenumoptional

      HTTP status the middleware answered with.

      200401402403
    • latency_msnumberoptional
    • checksobject[]optional
      3 fields
      • keyVerifyCheckKey
        "mandate""price""signature""timestamp""nonce"
      • labelstring
      • okboolean | null
    • testbooleanoptional

      Test requests sent from the console.

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/accept/verify" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "request": ""
  }'
Response 400
{
  "object": "error",
  "type": "invalid_request",
  "code": "invalid_request",
  "message": "Send the signed request as received: request line, headers, a blank line and the body.",
  "request_id": "req_c695535f93dbe96d23d8",
  "fields": {
    "request": "Required"
  }
}

The mock answered this sample with an error; its message says why. Adjust the request in Try it below.

Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Verify logs accept#

POST/v2/accept/verify-logs
Request body VerifyLogIngest
  • logsVerifyLogInput[]required
    VerifyLogInput: 8 fields
    • atTimestamp

      Defaults to now; within the last 7 days.

    • agentstringrequired
    • passport_kidstring | null
    • resourcestringrequired
    • failed_checkstring enum

      The first check that failed; omit when every check passed.

      null"mandate""price""signature""timestamp""nonce"
    • checkstringrequired
    • status_codeenumrequired
      200401402403
    • latency_msnumber
Response VerifyLogIngestResult
  • object"verify_log_ingest"
  • acceptednumber
  • dataVerifyLog[]
    VerifyLog: 12 fields
    • idId
    • object"verify_log"
    • atTimestamp
    • agentstring
    • passport_kidstring | null
    • resultstring enum
      "verified""failed"
    • checkstring
    • resourcestring
    • status_codeenumoptional

      HTTP status the middleware answered with.

      200401402403
    • latency_msnumberoptional
    • checksobject[]optional
      3 fields
      • keyVerifyCheckKey
        "mandate""price""signature""timestamp""nonce"
      • labelstring
      • okboolean | null
    • testbooleanoptional

      Test requests sent from the console.

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/accept/verify-logs" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "logs": [
      {
        "agent": "example",
        "resource": "https://api.example.com/v1/search",
        "check": "example",
        "status_code": 200
      }
    ]
  }'
Response 200
{
  "object": "verify_log_ingest",
  "accepted": 1,
  "data": [
    {
      "id": "vlog_8e4adb79769e43452fd4",
      "object": "verify_log",
      "at": "2026-11-23T00:43:13.622Z",
      "agent": "example",
      "passport_kid": null,
      "result": "verified",
      "check": "example",
      "resource": "https://api.example.com/v1/search",
      "status_code": 200,
      "latency_ms": 0,
      "checks": [
        {
          "key": "signature",
          "label": "Signature matches the passport key",
          "ok": true
        },
        {
          "key": "timestamp",
          "label": "Signed within the last 5 minutes",
          "ok": true
        },
        {
          "key": "nonce",
          "label": "Nonce not seen before",
          "ok": true
        }
      ],
      "test": false
    }
  ]
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Deny support access#

POST/v2/support-access/deny
Response SupportAccess

The same SupportAccess object as Get support access.

Errors
  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/support-access/deny" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)"
Response 409
{
  "object": "error",
  "type": "conflict",
  "code": "no_request",
  "message": "There's no support access request to answer.",
  "request_id": "req_1ef9fcac917c697f82eb"
}

The mock answered this sample with an error; its message says why. Adjust the request in Try it below.

Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Grant support access#

POST/v2/support-access/grant
Request body JSON
  • step_upstring
Response SupportAccess

The same SupportAccess object as Get support access.

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/support-access/grant" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "step_up": "passkey_assertion_from_webauthn"
  }'
Response 409
{
  "object": "error",
  "type": "conflict",
  "code": "no_request",
  "message": "There's no support access request to answer.",
  "request_id": "req_1ff9fe3fb380704d6522"
}

The mock answered this sample with an error; its message says why. Adjust the request in Try it below.

Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Revoke support access#

POST/v2/support-access/revoke
Response SupportAccess

The same SupportAccess object as Get support access.

Errors
  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/support-access/revoke" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)"
Response 200
{
  "object": "support_access",
  "status": "expired",
  "granted_by": "Dana Whitfield",
  "granted_at": "2026-11-22T22:43:13.221Z",
  "expires_at": "2026-11-23T00:43:13.677Z",
  "ticket": "SUP-2043",
  "scope": "Read-only view of the console for ticket SUP-2043 (approvals not reaching Slack)"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.