Creates a new API key

POST {{baseUrl}}/api-keys

Request Body

{"note"=>"{{$randomNoun}}", "expiresAt"=>nil}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"api_key":{"id":"354a92c9-8cfd-4d4e-801a-0156516d5c9b","userId":4,"note":"bandwidth","createdAt":"2022-10-21T21:13:09.089Z","expiresAt":null,"lastUsedAt":null,"key":"cal_228a844d741b0317026cc6232d7944ab"},"message":"API key created successfully. Save the `key` value as it won't be displayed again."}