List activity events - Spacefast Docs
List activity events
Returns the activity events the calling credential can reach, newest first. Page with cursor. Events that name no Space and no principal, such as domain and API key changes, are included here. This feed is not clamped to the plan’s audit retention window; the team and Space feeds below are.
GET /v1/activity
Authorization
Authorization Bearer token · header required
Authorization: Bearer <token> with an API key (sfa_ prefix), an OAuth access token, a session token, or a Space machine credential (sfm_ prefix).
Query parameters
limitinteger required
min 1 · max 100 · default: 20cursorstring
min length 1 · max length 4096principalTypestring
Allowed:team,externalprincipalIdstring
min length 1spaceIdstring
min length 1actorTypestring
Allowed:user,api_key,partner_token,oauth_client,anonymous_claim,systemactorIdstring
min length 1codestring
min length 1sincestringmatches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:.\d+)?)?(?:Z))$ untilstringmatches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:.\d+)?)?(?:Z))$
Responses
200 Response for status 200
$schemastring
Canonical JSON Schema URL for this response body. The server also sends it in theLink: rel="describedby"response header.dataobject[] required
Show properties Hide properties Array ofobjectidstring requiredsequenceinteger required
Position in the tenant's event order. Feeds are sorted by it, highest first. min 0 · max 9007199254740991spaceIdstring | any required
Space the event concerns. Null when it concerns none. Show properties Hide properties Any of:- string
- any
actorobject required
Show properties Hide propertiestypestring required
Allowed:user,api_key,partner_token,oauth_client,anonymous_claim,systemidstring required
Identifier of the actor within its kind: a user ID, a grant ID for an API key or OAuth client, or the system identifier. min length 1codestring required
Event code from the platform taxonomy, such asspace.created.messagestring required
One sentence naming what happened, safe to show to a person.detailsobject | any required
Fields specific to this event code. Null when the code carries none. Never a secret or a variable value. Show properties Hide properties Any of:- object
- any
createdAtstringrequired
ISO 8601 timestamp when the event was recorded. matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:.\d+)?)?(?:Z))$paginationobject required
Show properties Hide propertiesnextCursorstring | any required
Cursor for the next page. Null on the last page. Show properties Hide properties Any of:- string
- any
hasMoreboolean required
True when another page exists.
Error Response
$schemastring
Canonical JSON Schema URL for this response body. The server also sends it in theLink: rel="describedby"response header.typestring required
URL of the documentation page for this error. Derived fromcode.titlestring required
Human-readable name of the error type. Derived fromcode.statusinteger required
HTTP status of the response, repeated in the body. min -9007199254740991 · max 9007199254740991detailstring required
What went wrong in this request.codestring required
Stable snake_case error code. Match on this, not ondetail.pointerstring
RFC 6901 JSON Pointer to the request field or batch entry that failed, for example/files/37/path. Present on validation failures.detailsobject
Machine-readable context keyed by the error code.suggestionsstring[]
Recovery steps safe to show to a person.nextstring[]
Commands or API requests to run next, usable as written.requestIdstring required
ID of this request, from theX-Request-Idheader or generated. Quote it when contacting support.