openapi: 3.1.0
info:
title: API Reference subpackage_actions subpackage_activityLogs API
version: 1.0.0
servers:
- url: http://localhost:8000
tags:
- name: subpackage_activityLogs
paths:
/api/activity-logs/:
get:
operationId: list
summary: ✨ Get activity logs
description: " \n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n \n
curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'200':
description: Activity logs
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ActivityLogResponse'
'404':
description: No more logs found
content:
application/json:
schema:
description: Any type
components:
schemas:
ActivityLog:
type: object
properties:
datetime:
type: string
format: date-time
duration:
type:
- integer
- 'null'
description: Duration of response generation in ms
email:
type: string
extra_data:
oneOf:
- description: Any type
- type: 'null'
http_referer:
type: string
id:
type: integer
ip_address:
type:
- string
- 'null'
organization_id:
type:
- integer
- 'null'
description: Organization id
project_id:
type:
- integer
- 'null'
description: Project id if request has it
request_method:
type: string
request_url:
type: string
response_code:
type: string
user_agent:
type: string
user_id:
type: integer
user_session:
type:
- string
- 'null'
workspace_owner_id:
type:
- integer
- 'null'
description: Owner id of workspace where action performed
required:
- datetime
- email
- id
- request_method
- request_url
- response_code
- user_id
title: ActivityLog
ActivityLogResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ActivityLog'
recordsFiltered:
type: integer
recordsTotal:
type: integer
required:
- data
- recordsFiltered
- recordsTotal
description: Serializer for ActivityLogAPI response.
title: ActivityLogResponse
ApiActivityLogsGetParametersMethod:
type: string
enum:
- DELETE
- GET
- PATCH
- POST
- PUT
- all
default: all
title: ApiActivityLogsGetParametersMethod
securitySchemes:
Token:
type: apiKey
in: header
name: Authorization
description: 'The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'