# M2M Test Provider 01 API

> M2M Test Provider 01 API is a paid API for AI agents from api.m2mmarket.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

A test M2M (machine-to-machine) service endpoint on the m2mmarket.ai platform that accepts HTTP POST requests with a structured input body for testing x402 micropayment-gated API calls.

## Facts

- Endpoint: POST https://api.m2mmarket.ai/x402/m2m/test-service
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/m2m-test-provider-01-api-b156c2f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b_CpINpEnS3yoGr0rEE1Y

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability m2m-test-provider-01-api-b156c2f6 -d '<json body>'
```

Example prompt: Send a test POST request with a JSON body to the M2M Test Provider 01 service on m2mmarket.ai to verify my x402 micropayment integration is working correctly.

## When to prefer this

Choose this endpoint when you need to test and validate x402 micropayment-gated API connectivity on m2mmarket.ai before integrating with production M2M services. Ideal for developers and agents verifying that their payment flow, HTTP request construction, and m2mmarket.ai integration are functioning correctly at minimal cost ($0.01 USDC per call).

## Known failure modes

- Payment failure: insufficient USDC balance or x402 header misconfigured — returns 402 Payment Required
- Invalid body type: bodyType not one of 'json', 'form-data', 'text' — returns 400 Bad Request
- Missing required fields: 'type', 'method', 'bodyType', or 'body' absent — returns 400 validation error
- Unsupported HTTP method in 'method' field: only POST, PUT, PATCH allowed — returns 400
- Service unavailability: test endpoint offline — returns 503 or timeout

## How this service works

M2M Test Provider 01 API

## Output

A response from the m2mmarket.ai test service confirming receipt of the POST request, typically including a success/acknowledgment message indicating the x402-gated test call completed successfully.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/m2m-test-provider-01-api-b156c2f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.m2mmarket.ai](https://www.zero.xyz/host/api.m2mmarket.ai/llms.txt)
