# HTTPay GN (Good Night) Message API

> HTTPay GN (Good Night) Message API is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns a 'Good Night' (GN) greeting message, paid per-call via x402 USDC micropayment on Base.

## Facts

- Endpoint: POST https://httpay.xyz/api/gn
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-gn-good-night-message-api-7e264422
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3MtvYu0gHx7HK-fv0Rl2i

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 httpay-gn-good-night-message-api-7e264422 -d '<json body>'
```

Example prompt: Can you fetch me a Good Night message from the HTTPay GN API using a micropayment?

## When to prefer this

Use this endpoint when you want to retrieve a simple 'Good Night' greeting message programmatically without an API key, paying only $0.001 USDC per call via the x402 micropayment protocol on Base. Ideal for novelty, testing x402 pay-per-call flows, or embedding GN greetings in automated workflows.

## Known failure modes

- Payment not provided or insufficient USDC — returns HTTP 402 Payment Required
- Invalid or missing x402 payment header — request rejected
- Network timeout or server error — HTTP 500
- Endpoint unavailable — HTTP 503

## How this service works

Get a GN (Good Night) message

## Output

A JSON object containing a description or text of a 'Good Night' (GN) message, e.g. {"description": "Get a GN (Good Night) message"} or equivalent greeting content.

## Example request

```json
{
 "params": {
  "token": "USDC"
 },
 "endpoint": "token/price"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Get a GN (Good Night) message"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-gn-good-night-message-api-7e264422/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
