Moonbase Docs

Create a new API key.

Create new API key.

Requires authentication.

POST
/api-keys
NOVA-KEY<token>

In: header

NOVA-SECRET<token>

In: header

name?string
read_only?boolean
expiration_time?string
Formatint64

Response Body

application/json

application/json

curl -X POST "https://api.moonbase.vn/api-keys" \  -H "Content-Type: application/json" \  -d '{}'
{
  "api_key": {
    "api_key": "string",
    "api_secret": "string",
    "name": "string",
    "created_at": "string",
    "expired_at": "string",
    "is_read_only": true
  }
}
{
  "code": 0,
  "message": "string",
  "details": [
    {
      "@type": "string",
      "property1": null,
      "property2": null
    }
  ]
}