Overview
Authenticate every request
Send your project ID and secret key as headers on every authenticated Cloud API request.
Overview
Every /v1/* route requires both headers:
X-Gray-Project-Id— yourproj_…identifierAuthorization: Bearer gray_sk_…— project secret
Create credentials in Console › API keys. POST bodies need Content-Type: application/json.
Example
Request
curl -sS "https://blockchain.gray3.io/v1/chains" \
-H "X-Gray-Project-Id: proj_your_project_id" \
-H "Authorization: Bearer gray_sk_your_secret"CORS
Browsers may send authorization, content-type, and x-gray-project-id. Production apps still proxy through their own backend.