POST
/
users
/
api-keys
curl --request POST \
  --url https://restapi.gputrader.io/v1/users/api-keys \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}'
{
  "id": "<string>",
  "value": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required

Name for the API key

expiresAt
string

Expiration date for the API key (optional)

Response

200
application/json
API key successfully created
id
string
value
string