Skip to main content
GET
/
logs
/logs
curl --request GET \
  --url https://api.daily.co/v1/logs \
  --header 'Authorization: Bearer <token>'
{
  "logs": [
    {
      "time": "2026-03-23T16:32:55.473000000Z",
      "clientTime": "2026-03-23T16:32:55.324000000Z",
      "message": "disconnect on pagehide",
      "mtgSessionId": "008c1f0f-6fc5-4e5f-b872-1b9623cb1e7a",
      "userSessionId": "7a51a4b2-92cf-4ad2-b53b-9d01cc985a38",
      "peerId": null,
      "domainName": "your-domain",
      "level": 2,
      "code": 7991
    },
    {
      "time": "2026-03-23T16:32:55.473000000Z",
      "clientTime": "2026-03-23T16:32:55.324000000Z",
      "message": "leaving session",
      "mtgSessionId": "008c1f0f-6fc5-4e5f-b872-1b9623cb1e7a",
      "userSessionId": "7a51a4b2-92cf-4ad2-b53b-9d01cc985a38",
      "peerId": null,
      "domainName": "your-domain",
      "level": 1,
      "code": 8000
    },
    {
      "time": "2026-03-23T16:32:55.473000000Z",
      "clientTime": "2026-03-23T16:32:54.338000000Z",
      "message": "participant left",
      "mtgSessionId": "008c1f0f-6fc5-4e5f-b872-1b9623cb1e7a",
      "userSessionId": "7a51a4b2-92cf-4ad2-b53b-9d01cc985a38",
      "peerId": "6436dbcb-f60a-48c4-90ca-4588f60f6fbc",
      "domainName": "your-domain",
      "level": 1,
      "code": 8020
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

includeLogs
boolean
default:true

If true, you get a "logs" array in the results

includeMetrics
boolean
default:false

If true, results have "metrics" array

userSessionId
string

Filters by this user ID (aka "participant ID"). Required if mtgSessionId is not present in the request

mtgSessionId
string

Filters by this Session ID. Required if userSessionId is not present in the request

logLevel
enum<string>

Filters by the given log level name

Available options:
ERROR,
INFO,
DEBUG
order
string
default:DESC

ASC or DESC, case insensitive

startTime
integer<int32>

A JS timestamp (ms since epoch in UTC)

endTime
integer<int32>

A JS timestamp (ms since epoch), defaults to the current time

limit
integer<i32>
default:20

Limit the number of logs and/or metrics returned

offset
integer<i32>
default:0

Number of records to skip before returning results

Response

200

logs
object[]