The api-keys endpoint can be used to retrieve the list of API Keys from your MyKinsta company.
You can obtain the company_id from MyKinsta > username > Company settings > Billing details.
The company_id is also shown in the URL in MyKinsta, for example in the URL https://my.kinsta.com/?idCompany=bdd25d71-5706-4890-870f-1adda17c505d the company_id is bdd25d71-5706-4890-870f-1adda17c505d.
List of company API Keys
No or invalid API key provided to the request
Could not find the company or the user does not have permissions to retrieve data
Error occurred while retrieving company API Keys
{- "api_keys": [
- {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "name": "Public API Key",
- "status": "active",
- "expires_at": "2028-08-21T08:15:21.872Z"
}
]
}