Skip to main content
GET
/
environments
/
{environment}
/
logs
List environment logs
curl --request GET \
  --url https://cloud.laravel.com/api/environments/{environment}/logs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "message": "<string>",
      "level": "info",
      "type": "access",
      "logged_at": "<string>",
      "data": {
        "status": 123,
        "method": "<string>",
        "path": "<string>",
        "duration_ms": 123,
        "bytes_sent": 123,
        "ip": "<string>",
        "user_agent": "<string>",
        "country": "<string>"
      }
    }
  ],
  "meta": {
    "cursor": "<string>",
    "type": "<string>",
    "from": "<string>",
    "to": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://cloud.laravel.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The Bearer Token generated on the Cloud UI.

Path Parameters

environment
string
required

The environment identifier

Query Parameters

query
string | null
type
enum<string> | null
Available options:
all,
application,
access
cursor
string | null

Pagination cursor from a previous response. Pass this to fetch the next page of logs.

from
string<date-time>
required
to
string<date-time>
required

Response

Array of NormalizedLogResource

data
NormalizedLogResource · object[]
required
meta
object
required