teamIntegrationLogs
Gets the integration logs for the current team.
Details
- Method:
GET - Path:
/team.integrationLogs - Operation ID:
team_integrationLogs
Parameters
{
"token": {
"description": "Authentication token. Requires scope: `admin`",
"required": true,
"location": "query",
"type": "string"
},
"app_id": {
"description": "Filter logs to this Slack app. Defaults to all logs.",
"required": false,
"location": "query",
"type": "string"
},
"change_type": {
"description": "Filter logs with this change type. Defaults to all logs.",
"required": false,
"location": "query",
"type": "string"
},
"count": {
"description": "",
"required": false,
"location": "query",
"type": "string"
},
"page": {
"description": "",
"required": false,
"location": "query",
"type": "string"
},
"service_id": {
"description": "Filter logs to this service. Defaults to all logs.",
"required": false,
"location": "query",
"type": "string"
},
"user": {
"description": "Filter logs generated by this userβs actions. Defaults to all logs.",
"required": false,
"location": "query",
"type": "string"
}
}Response Schema
{
"additionalProperties": false,
"description": "Schema for successful response from team.integrationLogs method",
"properties": {
"logs": {
"items": {
"additionalProperties": false,
"properties": {
"admin_app_id": {
"pattern": "^A[A-Z0-9]{1,}$",
"title": "App ID",
"type": "string"
},
"app_id": {
"pattern": "^A[A-Z0-9]{1,}$",
"title": "App ID",
"type": "string"
},
"app_type": {
"type": "string"
},
"change_type": {
"type": "string"
},
"channel": {
"pattern": "^[CGD][A-Z0-9]{8,}$",
"title": "Channel-like conversation ID",
"type": "string"
},
"date": {
"type": "string"
},
"scope": {
"type": "string"
},
"service_id": {
"type": "string"
},
"service_type": {
"type": "string"
},
"user_id": {
"pattern": "^[UW][A-Z0-9]{2,}$",
"title": "User ID",
"type": "string"
},
"user_name": {
"type": "string"
}
},
"required": [
"user_id",
"user_name",
"date",
"change_type",
"app_type",
"app_id",
"scope"
],
"type": "object"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"ok": {
"enum": [
true
],
"title": "default success response",
"type": "boolean"
},
"paging": {
"additionalProperties": false,
"properties": {
"count": {
"type": "integer"
},
"page": {
"type": "integer"
},
"pages": {
"type": "integer"
},
"per_page": {
"type": "integer"
},
"spill": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"page",
"total"
],
"title": "paging object",
"type": "object"
}
},
"required": [
"ok",
"logs",
"paging"
],
"title": "team.integrationLogs schema",
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('slack')
# Call this tool
result = await agent.call_tool('teamIntegrationLogs', {
# Add required parameters here
})