Authentication
Open beta: reads are public, API keys gate writes only.
During the open beta every read endpoint is public — no key required. API keys are only needed for write operations: deploying subgraphs, managing subscriptions, and rotating keys.
Reading — no auth
curl https://api.secondlayer.tools/v1/datasets/sbtc/eventsWriting — bearer token
Pass your key as a bearer token. Create one in the platform console at secondlayer.tools/platform/api-keys.
curl -X POST https://api.secondlayer.tools/api/subgraphs \
-H "Authorization: Bearer $SL_KEY"Keep keys server-side — they grant write access to your account. Rotate or revoke them anytime in the platform console at secondlayer.tools/platform/api-keys.