Create a new API key for the authenticated account.
POST
/account/api_key/
const url = 'https://api.siteqwality.com/account/api_key/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"friendly_name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siteqwality.com/account/api_key/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "friendly_name": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
friendly_name
string | null
Example generated
{ "friendly_name": "example"}Responses
Section titled “ Responses ”Newly minted API key (only returned once)
Missing or invalid authentication
Internal server error