Security

List User Actions

GET
/v2/user-actions
x-api-key<token>

Authenticate using API Key in request header

In: header

Query Parameters

limit?integer
Default50
Range1 <= value <= 100
environmentName?string

Filter by environment name (e.g. "production", "sandbox")

onlyAccountLevel?boolean

If true, only return account-level actions (where environment is not set)

Defaultfalse
methods?array<>

Filter by HTTP methods (comma-separated)

Items1 <= items
surfaces?array<>

Filter by surface (comma-separated)

Items1 <= items
handlers?array<>

Filter by handler names (comma-separated)

Items1 <= items
userIDs?array<>

Filter by user KSUIDs (comma-separated)

Items1 <= items
apiKeyNames?array<>

Filter by API key names (comma-separated)

Items1 <= items
emailAddresses?array<>

Filter by email addresses (comma-separated)

Items1 <= items
paths?array<>

Filter by URL paths (comma-separated)

Items1 <= items
sortOrder?string

Sort order for results

Default"desc"
Value in"asc" | "desc"
startingAfter?string

Cursor for pagination - return results after this API ID

endingBefore?string

Cursor for pagination - return results before this API ID

Response Body

application/json

curl -X GET "https://api.bem.ai/v2/user-actions"
{
  "userActions": [
    {
      "ID": "string",
      "userID": "string",
      "userEmail": "string",
      "apiKeyName": "string",
      "emailAddress": "string",
      "environment": "string",
      "method": "GET",
      "path": "string",
      "surface": "api",
      "handler": "string",
      "errorMessage": "string",
      "errorType": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "totalCount": 0,
  "error": "string"
}