Skip to main content
POST
/
v1
/
api-keys
Create an API key
curl --request POST \
  --url https://rest.compute.cudo.org/v1/api-keys \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "apikeyId": "<string>"
}'
{
  "createTime": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "key": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Body

application/json
apikeyId
string
required

The identifier to use for the api key, which will become the final component of the api key's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Response

A successful response.

createTime
string<date-time>
id
string
key
string