Audit Logs
Every management operation is recorded in the audit log — who did what, when, and to which resource. Use the API to query these logs programmatically for compliance, security reviews, or operational debugging.
💡 Tip
Prefer a visual interface? Audit logs are also browsable in the Texture Dashboard at Settings → Audit Log .
Audit log entry#
Copy{
"id" : "log_abc123def456" ,
"action" : "workspace.create" ,
"resourceType" : "Workspace" ,
"resourceId" : "ws_abc123def456" ,
"actorType" : "apiKey" ,
"actorId" : "key_abc123def456" ,
"organizationId" : "org_789xyz" ,
"workspaceId" : null ,
"metadata" : {
"workspaceName" : "Production"
},
"createdAt" : "2025-06-01T00:00:00.000Z"
}
Field Type Description idstring Unique log entry identifier actionstring The operation performed (see Available Actions ) resourceTypestring Type of resource affected (see Resource Types ) resourceIdstring ID of the affected resource actorTypestring Who performed the action (apiKey) actorIdstring ID of the actor (API key ID) organizationIdstring Organization where the action occurred workspaceIdstring | null Workspace context, if applicable metadataobject | null Action-specific context (e.g., workspace name, role changes) createdAtstring ISO 8601 timestamp
Query audit logs#
Query parameters:
Parameter Type Default Description actionstring — Filter by action (e.g., workspace.create) resourceTypestring — Filter by resource type (e.g., Workspace) startDatestring — ISO 8601 start date endDatestring — ISO 8601 end date pageinteger 1Page number perPageinteger 50Items per page (max 100)
Response: 200 OK
Copy{
"data" : [ ... ],
"meta" : {
"total" : 156 ,
"page" : 1 ,
"perPage" : 50
}
}
Example: recent workspace actions#
Copycurl "https://api.texturehq.com/v1/audit-logs?resourceType=Workspace&startDate=2025-06-01T00:00:00Z&perPage=10" \
-H "Texture-Api-Key: management_abc123..."
Example: all actions in the last 24 hours#
Copycurl "https://api.texturehq.com/v1/audit-logs?startDate=$( date -u -v-1d +%Y-%m-%dT%H:%M:%SZ)" \
-H "Texture-Api-Key: management_abc123..."
Available actions#
These are the action values you can filter by:
Workspace actions#
Action Description workspace.createWorkspace created workspace.updateWorkspace name or settings updated workspace.updateProtectionDeletion protection toggled workspace.clearAll entities cleared from workspace
API key actions#
Action Description apiKey.createAPI key created apiKey.updateAPI key name updated apiKey.revokeAPI key revoked
Destination actions#
Action Description destination.createWebhookWebhook destination created destination.createEmailEmail destination created destination.updateDestination configuration updated destination.deleteDestination deleted destination.setEnabledDestination enabled or disabled
Member actions#
Action Description member.updateMember role updated member.deleteMember removed from organization
Invitation actions#
Action Description invitation.createInvitation sent invitation.deleteInvitation cancelled invitation.resendInvitation re-sent
Collection actions#
Action Description collection.createCollection created collection.updateCollection updated collection.deleteCollection deleted collection.shareCollection shared with another organization
OAuth application actions#
Action Description oauthApp.createOAuth application registered oauthApp.updateOAuth application updated oauthApp.deleteOAuth application deleted oauthApp.rotateSecretClient secret rotated
Organization actions#
Action Description organization.updateOrganization settings updated organization.updateLocationOrganization location updated
Workspace invitation actions#
Action Description workspaceInvitation.createWorkspace-scoped invitation created workspaceInvitation.cancelWorkspace-scoped invitation cancelled
Resource types#
These are the resourceType values you can filter by:
Resource Type Description WorkspaceWorkspace resources ApiKeyAPI key resources DestinationDestination (webhook, email) resources MemberOrganization member resources InvitationInvitation resources CollectionCollection resources OAuthAppOAuth application resources OrganizationOrganization settings WorkspaceInvitationWorkspace-scoped invitation resources