|
| 1 | +# .APILogsApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.pandadoc.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**detailsApiLog**](APILogsApi.md#detailsApiLog) | **GET** /public/v1/logs/{id} | Details API Log |
| 8 | +[**listApiLogs**](APILogsApi.md#listApiLogs) | **GET** /public/v1/logs | List API Log |
| 9 | + |
| 10 | + |
| 11 | +# **detailsApiLog** |
| 12 | +> APILogDetailsResponse detailsApiLog() |
| 13 | +
|
| 14 | +Returns details of the specific API log event. |
| 15 | + |
| 16 | +### Example |
| 17 | + |
| 18 | + |
| 19 | +```typescript |
| 20 | +import * as pd_api from 'pandadoc-node-client'; |
| 21 | + |
| 22 | +// replace it with your API key |
| 23 | +const API_KEY = "YOUR_API_KEY"; |
| 24 | +const configuration = pd_api.createConfiguration( |
| 25 | + { authMethods: {apiKey: `API-Key ${API_KEY}`} } |
| 26 | +); |
| 27 | +const apiInstance = new pd_api.APILogsApi(configuration); |
| 28 | + |
| 29 | +const body:pd_api.APILogsApiDetailsApiLogRequest = { |
| 30 | + // string | Log event id. |
| 31 | + id: "id_example", |
| 32 | +}; |
| 33 | + |
| 34 | +apiInstance.detailsApiLog(body).then((data) => { |
| 35 | + console.log('API called successfully. Returned data: %o', data); |
| 36 | +}).catch((error) => console.error(error)); |
| 37 | +``` |
| 38 | + |
| 39 | + |
| 40 | +### Parameters |
| 41 | + |
| 42 | +Name | Type | Description | Notes |
| 43 | +------------- | ------------- | ------------- | ------------- |
| 44 | + **id** | [**string**] | Log event id. | defaults to undefined |
| 45 | + |
| 46 | + |
| 47 | +### Return type |
| 48 | + |
| 49 | +**APILogDetailsResponse** |
| 50 | + |
| 51 | +### Authorization |
| 52 | + |
| 53 | +[apiKey](README.md#apiKey), [oauth2](README.md#oauth2) |
| 54 | + |
| 55 | +### HTTP request headers |
| 56 | + |
| 57 | + - **Content-Type**: Not defined |
| 58 | + - **Accept**: application/json |
| 59 | + |
| 60 | + |
| 61 | +### HTTP response details |
| 62 | +| Status code | Description | Response headers | |
| 63 | +|-------------|-------------|------------------| |
| 64 | +**200** | OK | - | |
| 65 | +**401** | Authentication error | - | |
| 66 | +**404** | Not found | - | |
| 67 | +**429** | Too Many Requests | - | |
| 68 | + |
| 69 | +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) |
| 70 | + |
| 71 | +# **listApiLogs** |
| 72 | +> APILogListResponse listApiLogs() |
| 73 | +
|
| 74 | +Get the list of all logs within the selected workspace. Optionally filter by date, page, and `#` of items per page. |
| 75 | + |
| 76 | +### Example |
| 77 | + |
| 78 | + |
| 79 | +```typescript |
| 80 | +import * as pd_api from 'pandadoc-node-client'; |
| 81 | + |
| 82 | +// replace it with your API key |
| 83 | +const API_KEY = "YOUR_API_KEY"; |
| 84 | +const configuration = pd_api.createConfiguration( |
| 85 | + { authMethods: {apiKey: `API-Key ${API_KEY}`} } |
| 86 | +); |
| 87 | +const apiInstance = new pd_api.APILogsApi(configuration); |
| 88 | + |
| 89 | +const body:pd_api.APILogsApiListApiLogsRequest = { |
| 90 | + // string | Determines a point in time from which logs should be fetched. Either a specific ISO 8601 datetime or a relative identifier such as \"-90d\" (for past 90 days). (optional) |
| 91 | + since: "since_example", |
| 92 | + // string | Determines a point in time from which logs should be fetched. Either a specific ISO 8601 datetime or a relative identifier such as \"-10d\" (for past 10 days) or a special \"now\" value. (optional) |
| 93 | + to: "to_example", |
| 94 | + // number | The amount of items on each page. (optional) |
| 95 | + count: 1, |
| 96 | + // number | Page number of the results returned. (optional) |
| 97 | + page: 1, |
| 98 | + // Array<100 | 200 | 300 | 400 | 500> | Returns only the predefined status codes. Allows 1xx, 2xx, 3xx, 4xx, and 5xx. (optional) |
| 99 | + statuses: [ |
| 100 | + 100, |
| 101 | + ], |
| 102 | + // Array<'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'> | Returns only the predefined HTTP methods. Allows GET, POST, PUT, PATCH, and DELETE. (optional) |
| 103 | + methods: [ |
| 104 | + "GET", |
| 105 | + ], |
| 106 | + // string | Returns the results containing a string. (optional) |
| 107 | + search: "search_example", |
| 108 | + // 'PRODUCTION' | 'SANDBOX' | Returns logs for production/sandbox. (optional) |
| 109 | + environmentType: "PRODUCTION", |
| 110 | +}; |
| 111 | + |
| 112 | +apiInstance.listApiLogs(body).then((data) => { |
| 113 | + console.log('API called successfully. Returned data: %o', data); |
| 114 | +}).catch((error) => console.error(error)); |
| 115 | +``` |
| 116 | + |
| 117 | + |
| 118 | +### Parameters |
| 119 | + |
| 120 | +Name | Type | Description | Notes |
| 121 | +------------- | ------------- | ------------- | ------------- |
| 122 | + **since** | [**string**] | Determines a point in time from which logs should be fetched. Either a specific ISO 8601 datetime or a relative identifier such as \"-90d\" (for past 90 days). | (optional) defaults to undefined |
| 123 | + **to** | [**string**] | Determines a point in time from which logs should be fetched. Either a specific ISO 8601 datetime or a relative identifier such as \"-10d\" (for past 10 days) or a special \"now\" value. | (optional) defaults to undefined |
| 124 | + **count** | [**number**] | The amount of items on each page. | (optional) defaults to undefined |
| 125 | + **page** | [**number**] | Page number of the results returned. | (optional) defaults to undefined |
| 126 | + **statuses** | **Array<100 | 200 | 300 | 400 | 500>** | Returns only the predefined status codes. Allows 1xx, 2xx, 3xx, 4xx, and 5xx. | (optional) defaults to undefined |
| 127 | + **methods** | **Array<'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'>** | Returns only the predefined HTTP methods. Allows GET, POST, PUT, PATCH, and DELETE. | (optional) defaults to undefined |
| 128 | + **search** | [**string**] | Returns the results containing a string. | (optional) defaults to undefined |
| 129 | + **environmentType** | [**'PRODUCTION' | 'SANDBOX'**]**Array<'PRODUCTION' | 'SANDBOX'>** | Returns logs for production/sandbox. | (optional) defaults to undefined |
| 130 | + |
| 131 | + |
| 132 | +### Return type |
| 133 | + |
| 134 | +**APILogListResponse** |
| 135 | + |
| 136 | +### Authorization |
| 137 | + |
| 138 | +[apiKey](README.md#apiKey), [oauth2](README.md#oauth2) |
| 139 | + |
| 140 | +### HTTP request headers |
| 141 | + |
| 142 | + - **Content-Type**: Not defined |
| 143 | + - **Accept**: application/json |
| 144 | + |
| 145 | + |
| 146 | +### HTTP response details |
| 147 | +| Status code | Description | Response headers | |
| 148 | +|-------------|-------------|------------------| |
| 149 | +**200** | OK | - | |
| 150 | +**400** | Bad Request | - | |
| 151 | +**401** | Authentication error | - | |
| 152 | +**429** | Too Many Requests | - | |
| 153 | + |
| 154 | +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) |
| 155 | + |
0 commit comments