List what a connected agent did
const url = 'https://api.deploybase.eu/api/v1/api/v1/agent-connections/example/activity';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.deploybase.eu/api/v1/api/v1/agent-connections/example/activity \ --header 'Authorization: <Authorization>'Returns one of the active team’s agent connections’ requests, newest first, 50 per page, from the agent audit log, which keeps 90 days. Refused and failed requests are included. Events have the same shape as API key activity: a ready-made lowercase phrase (“created a deployment of {project}”, or “tried to …” when outcome is refused or failed), where {project} appears only when project is non-null; path is the route pattern, never a concrete URL. Pass next_cursor back as cursor for older events; it is null on the last page. A revoked connection’s activity stays readable until its row is swept. Requires a signed-in person with the member role: API keys and agent tokens are refused with HUMAN_SESSION_REQUIRED.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Agent connection ID (UUID)
Query Parameters
Section titled “ Query Parameters ”Next_cursor from the previous page
Responses
Section titled “ Responses ”OK
object
object
object
Events are newest first; never null.
object
Client is the client the request claimed to come from (unverified); null when it named none.
CreatedAt is when the request was made, in UTC.
Outcome is “done” below 400, “refused” for 4xx and “failed” for 5xx.
Path is the route pattern (“/api/v1/projects/:id”), never a concrete URL. Empty when the stored path is not a known pattern.
Phrase is lowercase-first plain English: “created a deployment of {project}”, or “tried to create a deployment of {project}” when the request was refused or failed. It holds “{project}” if and only if project is non-null; render the name there.
Project is the project the request acted on; null when unknown or deleted.
object
NextCursor fetches the next (older) page; null on the last page.
Example
{ "data": { "events": [ { "client": "dashboard", "method": "POST", "outcome": "done", "path": "/api/v1/deployments", "phrase": "created a deployment of {project}", "status_code": 201 } ] }}INVALID_INPUT
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}HUMAN_SESSION_REQUIRED or FORBIDDEN
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}AGENT_CONNECTION_NOT_FOUND
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live a8b7eb1d built