---
title: Endpoint Direction Values (EndPointDirection) for Nodinite Log Events
description: "Reference for the mandatory EndPointDirection field of a Nodinite Log Event: every value (Receive, Send, Two way Receive, Two way Send, Unknown, None), how to choose one, and JSON examples."
---

# <i class="fal fa-diamond-turn-right" aria-hidden="true"></i> Endpoint Direction

[EndPointDirection][JSON Log Event - EndPointDirection] is a **mandatory** number in every [Log Event][]. It tells whether the [Endpoint][Endpoints] that logged the event receives or sends, one-way or two-way. <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> stores the Endpoint Direction on the Endpoint in the [Repository Model][]. In a [Log View][Log Views] the **Direction** column shows it as an icon, and you find events by direction through the search form's **Endpoints** filter.

![Search a Log View, open the Endpoints filter, Unselect All, filter the Endpoints on the Direction Send, tick the sending Endpoints, search again and open the Details of an event, where the Direction is the icon in front of the Endpoint name, animated walkthrough (7.12)][Hero]  
*Animated walkthrough: in the [Log View][Log Views] *Contoso Orders: Endpoints*, open **Endpoints**, click **Unselect All**, filter on the **Direction** *Send*, tick the sending Endpoints, and **Search**. In the event's Details the direction is the icon in front of the Endpoint name; there is no text.*  

![Repository, Endpoints with the Direction filter open: Receive, Send, Two way Receive, Two way Send, None and Unknown, each with its icon and Id (7.12)][1]  
*In the [Repository Model][], you can list [Endpoints][] and filter them on **Direction**.*  

## <i class="fal fa-table" aria-hidden="true"></i> Reference

| Value | Direction | Pattern | Example |
| --- | --- | --- | --- |
| <span id="direction-0"></span>`0` | Receive | One-way | Receive a file from a folder |
| <span id="direction-1"></span>`1` | Send | One-way | Send a file to SFTP |
| <span id="direction-10"></span>`10` | Two way Receive | Request-response, your solution answers | An API that serves incoming requests |
| <span id="direction-11"></span>`11` | Two way Send | Request-response, your solution calls | A client calling a REST API; a call to a stored parameterized procedure |
| <span id="direction-minus-1"></span>`-1` | Unknown | Not known | ⚠️ Avoid |
| <span id="direction-minus-2"></span>`-2` | None | No direction | ⚠️ Avoid |

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p><strong>EndPointDirection</strong> is mandatory. ALWAYS include a value in the <a href="https://docs.nodinite.com/core-services/log-event/overview/">Log Event</a>. If you leave it out, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 7 stores <code>0</code> (Receive), which is wrong for every sending Endpoint.</p></div>
</aside>

To get the current list for your version, call `GET /LogAPI/api/LogEvent/EndPointDirection` on the [Log API][]; see [Explore operations in Scalar or Swagger][].

![Scalar showing the GET /LogAPI/api/LogEvent/EndPointDirection operation with a C# snippet, Test Request, and the 200 example answer listing Receive, Send, TwoWayReceive, TwoWaySend and None (7.12)][2]  
*Scalar shows the EndPointDirection operation with a code snippet and an example answer with the enum names.*  

## <i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a value

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Logging Agents][Logging] set the Endpoint Direction for you. For custom logging, pick the value from the point of view of your integration solution:

* Your solution picks up or receives a message and replies nothing: **Receive** (`0`).
* Your solution delivers a message and expects no reply: **Send** (`1`).
* Your solution exposes an API or service that others call and that returns a response: **Two way Receive** (`10`).
* Your solution calls an API, a service, or a stored procedure and gets a response back: **Two way Send** (`11`).
* Avoid **Unknown** (`-1`) and **None** (`-2`); they give your users nothing to filter on.
* To search one direction in a [Log View][Log Views], click **Unselect All** in the **Endpoints** filter first (every Endpoint of the view starts selected), then filter on the **Direction** and tick the Endpoints you want.

Endpoint Direction describes the [Endpoint][Endpoints]. To say where in the process the event was logged (before or after the port, inside the workflow), set the optional [Event Direction][Event Directions] too. The [Event Directions][] page shows both values together in a file transfer and an API example.

## <i class="fal fa-code" aria-hidden="true"></i> Examples

A one-way file receive ([Endpoint Type][Endpoint Types] `60`, File):

```json
{
  "LogAgentValueId": 42,
  "EndPointName": "INT101: Receive Hello World Log Events",
  "EndPointUri": "C:\\temp\\in",
  "EndPointDirection": 0,
  "EndPointTypeId": 60,
  "OriginalMessageTypeName": "Hello.World.File/1.0",
  "LogDateTime": "2017-11-22T08:44:22.309Z"
}
```

A request sent by your solution to a REST API (two-way send, [Endpoint Type][Endpoint Types] `87`, REST API):

```json
{
  "LogAgentValueId": 42,
  "EndPointName": "INT102: Get Customer from CRM",
  "EndPointUri": "https://crm.contoso.com/api/customers",
  "EndPointDirection": 11,
  "EndPointTypeId": 87,
  "OriginalMessageTypeName": "https://contoso.com/CRM/1.0#GetCustomerRequest",
  "LogDateTime": "2017-11-22T08:44:22.309Z",
  "EventDirection": 22
}
```

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-code" aria-hidden="true"></i> [JSON Log Event][]  
* <i class="fal fa-plug" aria-hidden="true"></i> [Endpoint Types][]  
* <i class="fal fa-arrows-left-right" aria-hidden="true"></i> [Event Directions][]  
* <i class="fal fa-cloud-arrow-up" aria-hidden="true"></i> [Log using REST][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-bolt" aria-hidden="true"></i> [Log Event][]  
* <i class="fal fa-tags" aria-hidden="true"></i> [Context Options][]  
* <i class="fal fa-sign-in-alt" aria-hidden="true"></i> [Endpoints][]  
* <i class="fal fa-box-archive" aria-hidden="true"></i> [Log Agents][]  
* <i class="fal fa-cloud-arrow-down" aria-hidden="true"></i> [Log API][]  
* <i class="fal fa-search" aria-hidden="true"></i> [Log Views][]  
* <i class="fal fa-sitemap" aria-hidden="true"></i> [Repository Model][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/RepositoryEndPointDirections.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/EndPointDirectionsFromScalar.png

[Context Options]:https://docs.nodinite.com/core-services/log-event/features/context-options/
[Endpoint Types]:https://docs.nodinite.com/core-services/log-event/features/endpoint-types/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Event Directions]:https://docs.nodinite.com/core-services/log-event/features/event-directions/
[Explore operations in Scalar or Swagger]:https://docs.nodinite.com/core-services/log-api/features/log-using-rest/#explore-operations
[Hero]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/EndpointDirections_LogView.gif
[JSON Log Event]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/
[JSON Log Event - EndPointDirection]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#endpointdirection
[Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log using REST]:https://docs.nodinite.com/core-services/log-api/features/log-using-rest/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Logging]:https://docs.nodinite.com/logging/
[Repository Model]:https://docs.nodinite.com/repository-model/overview/