curl --request POST \
--url https://api.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>"
}
Generate a new API key for the authenticated user
curl --request POST \
--url https://api.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>"
}
API key successfully created
The response is of type object
.