MechaMental
Api reference

Activity

Get Org Activity

GET
/v1/orgs/{org_id}/activity

Path Parameters

org_id*Org Id

Query Parameters

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/activity"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Org Activity Summary

GET
/v1/orgs/{org_id}/activity/summary

Path Parameters

org_id*Org Id

Query Parameters

hours?Hours

Hours to look back

Default24
Range1 <= value <= 168

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/activity/summary"
{
  "total_requests": 0,
  "successful_requests": 0,
  "failed_requests": 0,
  "avg_duration_ms": 0,
  "total_tokens_used": 0,
  "by_action": {
    "property1": 0,
    "property2": 0
  },
  "by_resource": {
    "property1": 0,
    "property2": 0
  },
  "start_time": "string",
  "end_time": "string"
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Workspace Activity

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/activity

Path Parameters

org_id*Org Id
workspace_id*Workspace Id

Query Parameters

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/activity"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Workspace Activity Summary

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/activity/summary

Path Parameters

org_id*Org Id
workspace_id*Workspace Id

Query Parameters

hours?Hours

Hours to look back

Default24
Range1 <= value <= 168

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/activity/summary"
{
  "total_requests": 0,
  "successful_requests": 0,
  "failed_requests": 0,
  "avg_duration_ms": 0,
  "total_tokens_used": 0,
  "by_action": {
    "property1": 0,
    "property2": 0
  },
  "by_resource": {
    "property1": 0,
    "property2": 0
  },
  "start_time": "string",
  "end_time": "string"
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get User Activity

GET
/v1/orgs/{org_id}/users/{user_id}/activity

Path Parameters

org_id*Org Id
user_id*User Id

Query Parameters

workspace_id?|

Filter by workspace

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/users/string/activity"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get User Activity Summary

GET
/v1/orgs/{org_id}/users/{user_id}/activity/summary

Path Parameters

org_id*Org Id
user_id*User Id

Query Parameters

hours?Hours
Default24
Range1 <= value <= 168

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/users/string/activity/summary"
{
  "total_requests": 0,
  "successful_requests": 0,
  "failed_requests": 0,
  "avg_duration_ms": 0,
  "total_tokens_used": 0,
  "by_action": {
    "property1": 0,
    "property2": 0
  },
  "by_resource": {
    "property1": 0,
    "property2": 0
  },
  "start_time": "string",
  "end_time": "string"
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get App Activity

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/apps/{app_id}/activity

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
app_id*App Id

Query Parameters

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/apps/string/activity"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Endpoint Activity

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/apps/{app_id}/endpoints/{endpoint_id}/activity

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
app_id*App Id
endpoint_id*Endpoint Id

Query Parameters

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/apps/string/endpoints/string/activity"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Endpoint Activity Summary

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/apps/{app_id}/endpoints/{endpoint_id}/activity/summary

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
app_id*App Id
endpoint_id*Endpoint Id

Query Parameters

hours?Hours
Default24
Range1 <= value <= 168

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/apps/string/endpoints/string/activity/summary"
{
  "total_requests": 0,
  "successful_requests": 0,
  "failed_requests": 0,
  "avg_duration_ms": 0,
  "total_tokens_used": 0,
  "by_action": {
    "property1": 0,
    "property2": 0
  },
  "by_resource": {
    "property1": 0,
    "property2": 0
  },
  "start_time": "string",
  "end_time": "string"
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Augmentation Activity

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/augmentations/{augmentation_id}/activity

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
augmentation_id*Augmentation Id

Query Parameters

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/augmentations/string/activity"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Action Activity

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/activity/actions/{action}

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
action*Action

Query Parameters

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/activity/actions/string"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Resource Activity

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/resources/{resource_id}/activity

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
resource_id*Resource Id

Query Parameters

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/resources/string/activity"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Search Workspace Activity

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/activity/search

Path Parameters

org_id*Org Id
workspace_id*Workspace Id

Query Parameters

action?|

Filter by action: create, read, update, delete, execute, trigger

resource_type?|

Filter by resource: workspace, app, endpoint, augmentation, etc.

user_id?|

Filter by user ID

status?|

Filter by status: success, error

min_duration_ms?|

Filter by minimum duration

max_duration_ms?|

Filter by maximum duration

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/activity/search"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get My Activity

GET
/v1/orgs/{org_id}/me/activity

Path Parameters

org_id*Org Id

Query Parameters

workspace_id?|

Filter by workspace

start_time?|

ISO timestamp

end_time?|

ISO timestamp

limit?Limit

Maximum number of items to return (1-200)

Default50
Range1 <= value <= 200
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/me/activity"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "activities": [
    {
      "id": "string",
      "timestamp": "string",
      "trace_id": "string",
      "user_id": "string",
      "workspace_id": "string",
      "app_id": "string",
      "principal_type": "string",
      "principal_id": "string",
      "token_id": "string",
      "token_type": "string",
      "method": "string",
      "path": "string",
      "resource_type": "string",
      "resource_id": "string",
      "action": "string",
      "status_code": 0,
      "success": true,
      "error_code": "string",
      "duration_ms": 0,
      "execution_id": "string",
      "augmentation_id": "string",
      "stages_completed": 0,
      "total_stages": 0,
      "token_usage": {
        "property1": 0,
        "property2": 0
      },
      "metadata": {}
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get My Activity Summary

GET
/v1/orgs/{org_id}/me/activity/summary

Path Parameters

org_id*Org Id

Query Parameters

hours?Hours
Default24
Range1 <= value <= 168

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/me/activity/summary"
{
  "total_requests": 0,
  "successful_requests": 0,
  "failed_requests": 0,
  "avg_duration_ms": 0,
  "total_tokens_used": 0,
  "by_action": {
    "property1": 0,
    "property2": 0
  },
  "by_resource": {
    "property1": 0,
    "property2": 0
  },
  "start_time": "string",
  "end_time": "string"
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}