List a grant's activity - Spacefast Docs
List a grant's activity
Returns up to 100 events for one of the caller’s grants, newest first, merging platform activity with the session events of the hosted MCP sessions it opened. The actor on every entry is the user who authorized the grant; harness carries the client name and version the MCP session reported, which is display attribution and not identity. Requires a browser session.
GET /v1/me/grants/{grantId}/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).
Path parameters
grantId string required
min length 1
Responses
200 Response for status 200
$schema string
Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
data object required
Show properties Hide properties
grantIdstring requiredauthorizationLevelstring required
Allowed:user,teamentriesobject[] required
Array of object
One of:
- object
idstring requiredgrantIdstring requiredactorobject required
Show properties Hide properties
typestring requiredidstring requiredharnessobject | any required
Show properties Hide properties
- Any of:
- object
kindstring requiredclientInfoobject required
- object
Show properties Hide properties
namestring required
min length 1versionstring | any required
Show properties Hide properties
- Any of:
- string
- any
createdAtstringrequired 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))$ sourcestring requiredcodestring requiredmessagestring requireddetailsobject | any required
Show properties Hide properties
- Any of:
- object
idstring requiredgrantIdstring requiredactorobject required
- object
Show properties Hide properties
typestring requiredidstring requiredharnessobject | any required
Show properties Hide properties
- Any of:
- object
kindstring requiredclientInfoobject required
- object
Show properties Hide properties
namestring required
min length 1versionstring | any required
Show properties Hide properties
- Any of:
- string
- any
createdAtstringrequired 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))$
Response
200 default
{
"$schema": "http://example.com",
"data": {
"grantId": "string",
"authorizationLevel": "user",
"entries": [
{
"id": "string",
"grantId": "string",
"actor": {
"type": "user",
"id": "string"
},
"harness": {
"kind": "mcp",
"clientInfo": {
"name": "string",
"version": "string"
}
},
"createdAt": "2019-08-24T14:15:22Z",
"source": "platform",
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
]
}
}
{
"$schema": "http://example.com",
"type": "string",
"title": "string",
"status": -9007199254740991,
"detail": "string",
"code": "string",
"pointer": "string",
"details": {
"property1": null,
"property2": null
},
"suggestions": [
"string"
],
"next": [
"string"
],
"requestId": "string"
}