# Bright Gaming URL Assertions

> Bright Gaming URL Assertions is a paid API for AI agents from playbrightgaming.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-29).

Fetches a public URL and validates it against a set of declared assertions (required/forbidden text, SHA-256 hash, HTTP status, JSON pointer checks, headers, content type)

## Facts

- Endpoint: POST https://playbrightgaming.com/agent-services-mainnet/url-assertions?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bright-gaming-url-assertions-e4b131ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q235rlJlMEqSgxgnR2EzI

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 bright-gaming-url-assertions-e4b131ed -d '<json body>'
```

Example prompt: Check whether https://api.myservice.com/status is reachable with a 200 status, contains the text 'operational', does not contain the text 'degraded', and has a Content-Type of application/json.

## When to prefer this

Use this endpoint when an AI agent needs to independently verify that a public URL meets a set of precise, declarative conditions — such as confirming content integrity, validating API responses, or gating workflows on live URL state — and when you want a machine-payable, auditable, replay-safe result without managing your own HTTP fetching and assertion logic. Prefer this over generic scraping tools when you need structured pass/fail assertion semantics rather than raw content extraction.

## Known failure modes

- URL is unreachable or times out — network error returned
- Required text not found in response body — assertion fails
- Forbidden text found in response body — assertion fails
- SHA-256 hash mismatch — integrity assertion fails
- Unexpected HTTP status code — status assertion fails
- JSON pointer does not resolve or value mismatches — JSON assertion fails
- Required header missing or value mismatch — header assertion fails
- Payment not provided or insufficient — 402 Payment Required returned
- URL scheme is not http or https — input validation error
- More than allowed number of assertions provided — schema validation error

## How this service works

Check one public HTTP(S) URL against caller-defined status, header, literal text, JSON pointer and raw SHA-256 assertions. Returns PASS, FAIL, or INCONCLUSIVE with an evidence receipt. PASS and FAIL are chargeable results; INCONCLUSIVE and declared service failures are no-charge.

## Output

Returns a structured pass/fail result for each declared assertion against the fetched URL — including the actual HTTP status code received, whether required and forbidden text strings were found or absent, whether the response body SHA-256 matches, whether JSON pointer assertions passed, whether required headers are present with matching values, and whether the content-type matches the expectation. An overall pass/fail summary indicates whether all assertions succeeded.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "pattern": "^https?://",
   "maxLength": 2048,
   "minLength": 1
  },
  "requiredText": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 1024,
    "minLength": 1
   },
   "maxItems": 10,
   "minItems": 1
  },
  "forbiddenText": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 1024,
    "minLength": 1
   },
   "maxItems": 10,
   "minItems": 1
  },
  "expectedSha256": {
   "type": "string",
   "pattern": "^[a-f0-9]{64}$"
  },
  "expectedStatus": {
   "anyOf": [
    {
     "type": "integer",
     "maximum": 599,
     "minimum": 200
    },
    {
     "type": "array",
     "items": {
      "type": "integer",
      "maximum": 599,
      "minimum": 200
     },
     "maxItems": 8,
     "minItems": 1,
     "uniqueItems": true
    }
   ]
  },
  "jsonAssertions": {
   "type": "array",
   "items": {
    "oneOf": [
     {
      "type": "object",
      "required": [
       "pointer",
       "op",
       "value"
      ],
      "properties": {
       "op": {
        "const": "exists"
       },
       "value": {
        "type": "boolean"
       },
       "pointer": {
        "type": "string",
        "maxLength": 512,
        "minLength": 0
       }
      },
      "additionalProperties": false
     },
     {
      "type": "object",
      "required": [
       "pointer",
       "op",
       "value"
      ],
      "properties": {
       "op": {
        "const": "equals"
       },
       "value": {},
       "pointer": {
        "type": "string",
        "maxLength": 512,
        "minLength": 0
       }
      },
      "additionalProperties": false
     },
     {
      "type": "object",
      "required": [
       "pointer",
       "op",
       "value"
      ],
      "properties": {
       "op": {
        "const": "type"
       },
       "value": {
        "enum": [
         "null",
         "boolean",
         "number",
         "integer",
         "string",
         "array",
         "object"
        ]
       },
       "pointer": {
        "type": "string",
        "maxLength": 512,
        "minLength": 0
       }
      },
      "additionalProperties": false
     }
    ]
   },
   "maxItems": 20,
   "minItems": 1
  },
  "requiredHeaders": {
   "type": "object",
   "maxProperties": 20,
   "minProperties": 1,
   "propertyNames": {
    "type": "string",
    "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$",
    "maxLength": 128,
    "minLength": 1
   },
   "addition
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bright-gaming-url-assertions-e4b131ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from playbrightgaming.com](https://www.zero.xyz/host/playbrightgaming.com/llms.txt)
