Skip to main content
GET
/
catalog
/
search
Search catalog
curl --request GET \
  --url https://api.sandbox.mocachain.org/v1/catalog/search
{
  "code": 80000000,
  "msg": "success",
  "data": {
    "credentials": {
      "items": [
        {
          "credentialId": "c21s70g0i54sn0023172Cv",
          "name": "Age Verification",
          "category": "identity",
          "relevance": 0.95,
          "issuer": {
            "issuerId": "iss_01",
            "name": "Acme Corp"
          }
        }
      ],
      "total": 1
    },
    "issuers": {
      "items": [],
      "total": 0
    },
    "programs": {
      "items": [
        {
          "programId": "prg_01",
          "name": "Age Gate",
          "verificationCount": 85,
          "relevance": 0.88
        }
      ],
      "total": 1
    },
    "meta": {
      "query": "age",
      "totalResults": 2
    }
  },
  "timestamp": 1772530828000
}

Documentation Index

Fetch the complete documentation index at: https://docs.moca.network/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

q
string
required

Search query string.

Maximum string length: 200
page
integer
default:1

Page number (starts from 1).

Required range: x >= 1
limit
integer
default:10

Results per group (default 10, max 50).

Required range: 1 <= x <= 50

Response

200 - application/json

Grouped search results.

Standard API response envelope used by all Catalog endpoints.

code
integer

Response code. 80000000 indicates success.

Example:

80000000

msg
string

Human-readable status message.

Example:

"success"

data
any

Response payload. Shape varies per endpoint.

timestamp
integer

UNIX timestamp in milliseconds.

Example:

1772530828000