---
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."
---

# :fa-diamond-turn-right: 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. :Nodinite: 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**.*  

## :fa-table: 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 |

>[!IMPORTANT]
>**EndPointDirection** is mandatory. ALWAYS include a value in the [Log Event][]. If you leave it out, :Nodinite: 7 stores `0` (Receive), which is wrong for every sending Endpoint.

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.*  

## :fa-lightbulb: Choosing a value

:Nodinite: [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.

## :fa-code: 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
}
```

## :fa-hand-point-right: Next Steps

* :fa-code: [JSON Log Event][]  
* :fa-plug: [Endpoint Types][]  
* :fa-arrows-left-right: [Event Directions][]  
* :fa-cloud-arrow-up: [Log using REST][]  

## :fa-link-horizontal: Related Topics

* :fa-bolt: [Log Event][]  
* :fa-tags: [Context Options][]  
* :fa-sign-in-alt: [Endpoints][]  
* :fa-box-archive: [Log Agents][]  
* :fa-cloud-arrow-down: [Log API][]  
* :fa-search: [Log Views][]  
* :fa-sitemap: [Repository Model][]  

[1]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/RepositoryEndPointDirections.png
[2]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/EndPointDirectionsFromScalar.png

[Context Options]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md
[Endpoint Types]:{ndr}/Core%20Services/Log%20Event/Features/Endpoint%20Types.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Event Directions]:{ndr}/Core%20Services/Log%20Event/Features/Event%20Directions.md
[Explore operations in Scalar or Swagger]:{ndr}/Core%20Services/Log%20API/Features/Log%20using%20REST.md#explore-operations
[Hero]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/EndpointDirections_LogView.gif
[JSON Log Event]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md
[JSON Log Event - EndPointDirection]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#endpointdirection
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log using REST]:{ndr}/Core%20Services/Log%20API/Features/Log%20using%20REST.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Logging]:nodiniteDoc:/Logging
[Repository Model]:{ndr}/Repository%20Model/Overview.md