openapi: 3.1.0 info: title: Statsig Client SDK Audit Logs API description: The Statsig Client SDK API provides endpoints that power Statsig's client-side SDKs for JavaScript, React, React Native, iOS, Android, Unity, and other platforms. Client SDKs use Client-SDK Keys that are safe to embed in mobile apps and front-end web applications. They access the initialize endpoint to retrieve all evaluated gates, configs, and experiments for a given user, and the log_event endpoint for sending analytics events. The SDKs handle local evaluation, caching, and automatic error handling for performant client-side feature flagging. version: 1.0.0 contact: name: Statsig Support url: https://statsig.com/support termsOfService: https://statsig.com/terms servers: - url: https://api.statsig.com/v1 description: Statsig API Server security: - clientSdkKey: [] tags: - name: Audit Logs description: Access audit log entries tracking changes made to project configuration through the console or API. paths: /audit_logs: get: operationId: listAuditLogs summary: List audit logs description: Retrieves audit log entries tracking changes made to the project configuration through the console or API. tags: - Audit Logs parameters: - $ref: '#/components/parameters/ApiVersion' - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Page' responses: '200': description: List of audit log entries content: application/json: schema: type: object properties: data: type: array items: $ref: '#/components/schemas/AuditLogEntry' pagination: $ref: '#/components/schemas/Pagination' '401': $ref: '#/components/responses/Unauthorized' components: responses: Unauthorized: description: Missing or invalid API key content: application/json: schema: type: object properties: message: type: string description: Error message describing the authentication failure. schemas: AuditLogEntry: type: object description: An audit log entry recording a change to the project configuration. properties: id: type: string description: The unique identifier of the log entry. timestamp: type: integer format: int64 description: Timestamp when the change occurred. user: type: object properties: name: type: string description: The name of the user who made the change. email: type: string format: email description: The email of the user who made the change. description: The user who made the change. action: type: string description: The action performed (e.g., created, updated, deleted). entityType: type: string description: The type of entity that was changed (e.g., gate, experiment). entityName: type: string description: The name of the entity that was changed. changes: type: object description: Details of the changes made. Pagination: type: object description: Pagination metadata for list responses. properties: total: type: integer description: Total number of items available. page: type: integer description: Current page number. limit: type: integer description: Number of items per page. hasMore: type: boolean description: Whether more pages are available. parameters: Limit: name: limit in: query required: false schema: type: integer minimum: 1 maximum: 100 description: Maximum number of items to return per page. ApiVersion: name: STATSIG-API-VERSION in: header required: false schema: type: string default: '20240601' description: The Console API version. Currently the only version is 20240601. Page: name: page in: query required: false schema: type: integer minimum: 1 description: Page number for paginated results. securitySchemes: clientSdkKey: type: apiKey in: header name: statsig-api-key description: Client-SDK Key that is safe to embed in mobile apps and front-end web applications. Created in Project Settings > API Keys tab. externalDocs: description: Statsig Client SDK Documentation url: https://docs.statsig.com/client/introduction