List an environment's SSH activity
Answers what changed about SSH access to the environment, newest first, 50 a page: keys added, changed and removed at any level that reaches it, usernames issued, host keys rotated and changes applied. Paged by cursor: send next_cursor back as cursor; null means the last page.
Path parameters
The id of a CoreStack Enterprise environment. Not the same number as a site row id. At least 1.
Query parameters
The next_cursor of the previous answer, sent back as it was given. Anything else (a value that is not a cursor of these lists, or more than 200 characters) is refused 422 invalid_arguments on cursor.
Returns
200 A page of activity.
Fields of the 200 answer
Send as cursor to read the next page. Null on the last page.
Fields of each item
key.addedkey.updatedkey.removedkey.quarantinedlegacy.importedlegacy.keptlegacy.placedlegacy.removedlegacy.cut_offlogin.issuedlogin.retiredhost_keys.adoptedhost_keys.stagedhost_keys.promotedhost_keys.rotated_nowhost_keys.abortedhost_keys.republisheddelivery.adopteddelivery.applieddelivery.failedrevocation.pendingrevocation.appliedrevocation.liftedWho did it. Null for the platform.
Format: date-time.
Where the change was made, such as ui (the Control Panel), api or mcp.
uiapimcpcliimportsystemstaffThe key the event is about, when it is about one.
agencycompanywebsiteenvironmentuserlegacysystemnullIf it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | scope_required | Use a token with the scope named in scope. |
404 | feature_off | This feature is not on for your organisation yet. |
404 | not_found | Not found. |
422 | invalid_arguments | The arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again. |
429 | rate_limited | Wait for the seconds in Retry-After. |
Reasons are listed by name in Errors and refusals.
The same task elsewhere
curl https://manage.corefinity.com/api/environments/1311/ssh/activity \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json"use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->get('https://manage.corefinity.com/api/environments/1311/ssh/activity');
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/environments/1311/ssh/activity', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
},
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.get(
"https://manage.corefinity.com/api/environments/1311/ssh/activity",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
)
data = res.json() if res.content else None{
"events": [
{
"action": "delivery.applied",
"actor": null,
"at": "2026-11-05T09:17:02+00:00",
"channel": "system",
"fingerprint": null,
"layer": null,
"login": null,
"owner": null,
"reason": null
},
{
"action": "key.added",
"actor": {
"former": false,
"name": "Eleanor Finch",
"support": false
},
"at": "2026-11-05T09:16:40+00:00",
"channel": "api",
"fingerprint": "SHA256:o6poLLVqPDVYtxLTdagh8mUo96coeRXfX7Uxorxr158",
"layer": "company",
"login": "web",
"owner": {
"id": 1204,
"name": "Harbour & Finch",
"type": "company"
},
"reason": null
}
],
"next_cursor": null
}{
"message": "Unauthenticated."
}{
"code": "scope_required",
"message": "This access token does not have the destructive scope this needs. Use a token with the destructive scope.",
"reason": "scope_required",
"scope": "destructive"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "invalid_arguments",
"errors": {
"cursor": [
"That page cursor is not valid."
]
},
"field": "cursor",
"message": "That page cursor is not valid.",
"reason": "invalid_arguments"
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}