Management APIApi key management

Register API Key

Register a new API key for HyperETH access. This endpoint does not require authentication as it creates the initial API key.

POST
/v1/api_key/register

Request Body

application/json

nonce*integerrequired

Nonce in EIP-191 personal sign message, timestamp in milliseconds

Example: 1758690167820
signature*stringrequired

EIP-191 personal sign of the nonce using the Ethereum wallet. Message format: "HyperETH: API Key Registration\nNonce: {nonce}"

Example: 0xea63d2f515f3846a42c9c11a3e74f2000d04d19069dd3072ae1a09b13a9c1d8d171e73e465e16df0c7c66a613c5b64b68cc988fe7907cc1081112ec13b796d2e10

Response Body

application/json

application/json

application/json

curl -X POST "https://api.hypereth.io/v1/api_key/register" \  -H "Content-Type: application/json" \  -d '{    "nonce": 1758690167820,    "signature": "0xea63d2f515f3846a42c9c11a3e74f2000d04d19069dd3072ae1a09b13a9c1d8d171e73e465e16df0c7c66a613c5b64b68cc988fe7907cc1081112ec13b796d2e10"  }'
{
  "api_key": "hypereth_1234567890abcdef1234567890abcdef",
  "created_at": "2019-08-24T14:15:22Z"
}
{
  "error": "Invalid API key",
  "code": 1001,
  "details": {}
}
{
  "error": "Invalid API key",
  "code": 1001,
  "details": {}
}