Back to Registry

API Documentation

Learn how to publish your lexicon schemas to the AT Protocol Schema Registry and integrate with the indexing API.

Overview

Lexicon Store is a public registry for AT Protocol lexicon schemas. It automatically indexes schemas published to the network and provides a searchable interface for discovery.

There are two ways to get your lexicons indexed:

  1. Automatic indexing - Publish lexicons to your PDS and they'll be discovered automatically
  2. Request indexing - Use the API to request immediate indexing of specific lexicons

API Endpoints

POST https://api.lexicon.store/requestIndex

Queue a lexicon for indexing. DNS authority verification is performed automatically.

Request Body

{
  "type": "nsid" | "did" | "domain",
  "value": "string"
}

Parameters

Example

curl -X POST https://api.lexicon.store/requestIndex \
  -H "Content-Type: application/json" \
  -d '{"type": "nsid", "value": "com.example.myLexicon"}'

Response

{
  "success": true,
  "message": "Queued for indexing"
}

DNS Authority Verification

For a lexicon to be indexed, the publisher must have authority over the NSID namespace. This is verified through DNS:

  1. The NSID com.example.myLexicon requires authority over example.com
  2. Add a DNS TXT record: _atproto.example.com pointing to your DID
  3. Or use a did:web identifier that matches the domain

Viewing Your Lexicons

Once indexed, your lexicons will appear in the registry and can be viewed at:

Additional Resources

Learn more about publishing lexicons: