**Source URL:** https://limited.veevavault.dev/sitevault/vault-api/api-reference/23.1/logs/download-sdk-runtime-log.md

# Download SDK Runtime Log



Retrieve the *Runtime Log* for a single day, up to 30 days in the past. Users with the *Admin: Logs: Vault Java SDK Logs* permission can access these logs.

The runtime logs create entries 15 minutes after the Vault Java SDK transaction completes. If you’ve recently encountered an error which is not captured in the runtime log, wait for the transaction to finish and check again. If your log does not include appropriate data, know that your data is not lost; it is just not yet populated.

Learn more about the [Vault Java SDK runtime log](/vault-sdk/troubleshooting-runtime-errors/runtime-log).

<Endpoint path="/api/{version}/logs/code/runtime?date=YYYY-MM-DD" method="GET"></Endpoint>

## Headers {#headers}

<FieldTable>
| Name | Description |
| --- | --- |
| `Accept` | `application/json` (default) or `application/xml` |
</FieldTable>

## Query Parameters {#query-parameters}

<FieldTable>
| Name | Description |
| --- | --- |
| `date` | The day to retrieve the runtime log. Date is in UTC and follows the format `YYYY-MM-DD`. Date cannot be more than 30 days in the past. |
| `log_format` | Optional: Specify the format to download. Possible values are `csv` or `logfile`. If omitted, defaults to `csv`. This request always downloads a ZIP file; this parameter only changes the format of the file contained within the ZIP. |
</FieldTable>

## Request {#request}

<CodeExample title="">
```
curl -X GET -H "Authorization: {SESSION_ID}" \
https://myvault.veevavault.com/api/v22.1/logs/api_usage?date=2022-01-25 > file

```
</CodeExample>

## Response {#response}

<CodeExample title="">
```
application/octet-stream;charset=UTF-8
attachment;filename*=UTF-8''44795-SdkLog-2022-01-25.zip

```
</CodeExample>

## Response Details {#response-details}

On SUCCESS, Vault retrieves the log from the specified date as a .ZIP file. The HTTP Response Header `Content-Type` is set to `application/octet-stream`.



---

**Previous:** [Download Daily API Usage](/sitevault/vault-api/api-reference/23.1/logs/download-daily-api-usage)  
**Next:** [File Staging](/sitevault/vault-api/api-reference/23.1/file-staging)