GET api/Logs/{id}
Get logs by log type id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
LogtypeId to fetch |
integer |
Default value is Null |
Body Parameters
None.
Remarks
None.
Example
None.
Response Information
Resource Description
Collection of Log| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Unique identifier for the specific log item. |
globally unique identifier |
None. |
| CorrelationID |
Correlation id to identify related log items. |
globally unique identifier |
None. |
| CreatedDate |
Date when the log item was created. |
date |
None. |
| Title |
String title. |
string |
None. |
| LogtypeId |
Log type |
integer |
None. |
| LogType | LogType |
None. |
|
| Destination | string |
None. |
|
| Message | string |
None. |
|
| StackTrace | string |
None. |
|
| CallMethod | string |
None. |
|
| CompanyNumber | string |
None. |
|
| Username | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "1375555e-579c-4b87-b4ee-5b43b4b7f840",
"CorrelationID": "e2169f65-b175-4c9a-914f-4058d9ddcc64",
"CreatedDate": "12/21/2025 1:06:03 PM",
"Title": "sample string 3",
"LogtypeId": 1,
"LogType": {
"Id": 1,
"Description": "sample string 2"
},
"Destination": "sample string 4",
"Message": "sample string 5",
"StackTrace": "sample string 6",
"CallMethod": "sample string 7",
"CompanyNumber": "sample string 8",
"Username": "sample string 9"
},
{
"Id": "1375555e-579c-4b87-b4ee-5b43b4b7f840",
"CorrelationID": "e2169f65-b175-4c9a-914f-4058d9ddcc64",
"CreatedDate": "12/21/2025 1:06:03 PM",
"Title": "sample string 3",
"LogtypeId": 1,
"LogType": {
"Id": 1,
"Description": "sample string 2"
},
"Destination": "sample string 4",
"Message": "sample string 5",
"StackTrace": "sample string 6",
"CallMethod": "sample string 7",
"CompanyNumber": "sample string 8",
"Username": "sample string 9"
}
]
application/xml, text/xml
Sample:
<ArrayOfLog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO">
<Log>
<CallMethod>sample string 7</CallMethod>
<CompanyNumber>sample string 8</CompanyNumber>
<CorrelationID>e2169f65-b175-4c9a-914f-4058d9ddcc64</CorrelationID>
<CreatedDate>2025-12-21T13:06:03.407333+00:00</CreatedDate>
<Destination>sample string 4</Destination>
<Id>1375555e-579c-4b87-b4ee-5b43b4b7f840</Id>
<LogType xmlns:d3p1="DDAPI.DTO">
<d3p1:Description>sample string 2</d3p1:Description>
<d3p1:Id>1</d3p1:Id>
</LogType>
<LogtypeId>1</LogtypeId>
<Message>sample string 5</Message>
<StackTrace>sample string 6</StackTrace>
<Title>sample string 3</Title>
<Username>sample string 9</Username>
</Log>
<Log>
<CallMethod>sample string 7</CallMethod>
<CompanyNumber>sample string 8</CompanyNumber>
<CorrelationID>e2169f65-b175-4c9a-914f-4058d9ddcc64</CorrelationID>
<CreatedDate>2025-12-21T13:06:03.407333+00:00</CreatedDate>
<Destination>sample string 4</Destination>
<Id>1375555e-579c-4b87-b4ee-5b43b4b7f840</Id>
<LogType xmlns:d3p1="DDAPI.DTO">
<d3p1:Description>sample string 2</d3p1:Description>
<d3p1:Id>1</d3p1:Id>
</LogType>
<LogtypeId>1</LogtypeId>
<Message>sample string 5</Message>
<StackTrace>sample string 6</StackTrace>
<Title>sample string 3</Title>
<Username>sample string 9</Username>
</Log>
</ArrayOfLog>