cURL
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>" } }
Get a list of logs for the given environment.
The Bearer Token generated on the Cloud UI.
The environment identifier
all
application
access
Pagination cursor from a previous response. Pass this to fetch the next page of logs.
Array of NormalizedLogResource
NormalizedLogResource
Show child attributes
Was this page helpful?