GET
/
audit-logs
curl --request GET \
  --url https://api.devin.ai/v1/audit-logs \
  --header 'Authorization: Bearer <token>'
{
  "audit_logs": [
    {
      "created_at": 1704067200000,
      "action": "login",
      "ip": "1.1.1.1",
      "user_id": "email|abcd",
      "session_id": "ABCD"
    },
    {
      "created_at": 1704153600000,
      "action": "add_member",
      "target_user_id": "email|efgh"
    },
    {
      "created_at": 1704240000000,
      "action": "assign_roles",
      "target_user_id": "email|efgh",
      "roles": [
        "org:admin"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:100

Maximum number of audit logs to return

Required range: x >= 1
before
string

Filter logs before a specific timestamp

after
string

Filter logs after a specific timestamp

Response

200
application/json
List of audit logs
audit_logs
object[]
required

Audit log entry