Getting an API Key
Go to dashboard.newton.xyz, sign in, and click API Keys in the left navigation — your key is already generated and ready to use.The Newton Dashboard API at
dashboard.api.newt.foundation also provides self-service API key management via API. You can authenticate with Sign-In with Ethereum (SIWE) or email OTP, then create API keys that are immediately usable with the Newton Gateway.
Authentication
The Dashboard API uses a factor-based authentication flow: you first request a challenge, then verify it to receive session tokens.- SIWE (Preferred)
- Email OTP
Sign-In with Ethereum (SIWE) links your wallet address to your Dashboard account.
Create an API Key
Once authenticated, create an API key for use with the Newton Gateway.API Key Management
| Operation | Method | Endpoint |
|---|---|---|
| Create | POST | /v1/api_key |
| List | GET | /v1/api_key |
| Get | GET | /v1/api_key/:id |
| Update | PUT | /v1/api_key/:id |
| Rotate | POST | /v1/api_key/:id/rotate |
| Delete | DELETE | /v1/api_key/:id |
Authorization header).
Permissions
| Permission | Description |
|---|---|
admin | Full access — manage projects, keys, and settings |
rpc_write | Write operations — secrets management via newt_storeEncryptedSecrets |
rpc_read | Read operations — task submission and simulation |
rpc | Combined rpc_read + rpc_write |
Most integrations need
rpc permission (combined read + write). Use rpc_read for frontend-only applications that submit tasks but do not manage secrets.Policy Client Ownership
The Dashboard API verifies PolicyClient ownership by reading the on-chaingetOwner() method. This ensures that only the contract owner can:
- Upload encrypted secrets via
newt_storeEncryptedSecrets - Access stored secrets via
newt_simulatePolicyDataWithClient
setOwner() or transferOwnership() on the PolicyClient contract.
Session Management
| Operation | Method | Endpoint |
|---|---|---|
| Refresh token | POST | /v1/auth/refresh |
| Logout | POST | /v1/auth/logout |
Alternative: Email Request
If you prefer not to use the Dashboard API, you can request an API key by emailing product@magicnewton.com.Next Steps
Quickstart
Use your API key to simulate a policy evaluation
RPC API
Full Gateway API reference