Skip to main content
POST
/
api
/
v1
/
user
/
api-keys
cURL
curl --request POST \
  --url https://api.ekiden.fi/api/v1/user/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "public_key": "<string>",
  "scopes": [
    "full"
  ],
  "expires_at": 123
}
'
{
  "created_at": 123,
  "id": "<string>",
  "public_key": "<string>",
  "scopes": [
    "full"
  ],
  "expires_at": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
public_key
string
required
scopes
enum<string>[]
required
Available options:
full,
read,
trade,
withdraw,
admin
expires_at
integer<int64> | null

Response

API key created

created_at
integer<int64>
required
id
string
required
public_key
string
required
scopes
enum<string>[]
required
Available options:
full,
read,
trade,
withdraw,
admin
expires_at
integer<int64> | null