---
title: "Retrieve a list of all logs."
method: GET
path: "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs"
tags: ["ServerlessV1Log"]
---

# Retrieve a list of all logs.

`GET /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs`

Retrieve a list of all logs.

## Path parameters

- `ServiceSid` string, required
- `EnvironmentSid` string, required

## Query parameters

- `FunctionSid` string
- `StartDate` string, date-time
- `EndDate` string, date-time
- `PageSize` integer
- `Page` integer
- `PageToken` string

## Response `200`

OK

- object
  - `logs` ServerlessV1ServiceEnvironmentLog[]
    - `sid` string, nullable — The unique string that we created to identify the Log resource.
    - `account_sid` string, nullable — The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Log resource.
    - `service_sid` string, nullable — The SID of the Service that the Log resource is associated with.
    - `environment_sid` string, nullable — The SID of the environment in which the log occurred.
    - `build_sid` string, nullable — The SID of the build that corresponds to the log.
    - `deployment_sid` string, nullable — The SID of the deployment that corresponds to the log.
    - `function_sid` string, nullable — The SID of the function whose invocation produced the log.
    - `request_sid` string, nullable — The SID of the request associated with the log.
    - `level` string, nullable — The log level.
    - `message` string, nullable — The log message.
    - `date_created` string, date-time, nullable — The date and time in GMT when the Log resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    - `url` string, uri, nullable — The absolute URL of the Log resource.
  - `meta` object
    - `first_page_url` string, uri
    - `key` string
    - `next_page_url` string, uri, nullable
    - `page` integer
    - `page_size` integer
    - `previous_page_url` string, uri, nullable
    - `url` string, uri

---

[API](https://skmtc.net/twilio/apis/serverless-v1.md) · [All operations](https://skmtc.net/twilio/apis/serverless-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/twilio/serverless-v1/revisions/594d94b79d49/schema)
