> For the complete documentation index, see [llms.txt](https://docs.onum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onum.com/listeners/listener-integrations/pull-data-from-http-endpoints/pull-data-from-the-1password-events-api/sign-in-attempts.md).

# Sign in attempts

## Overview

Get a list of 1Password item usage events through the [1Password Events API](https://www.1password.dev/events-api/reference/sign-in-attempt) using the **HTTP Pull** Listener.

## HTTP Pull Listener configuration

In Falcon Onum, go to the **Listeners** area and click **New Listener > HTTP Pull**. Give a name to your new Listener and enter the following data:

### Parameters

N/A

### Secrets

You must define these credentials in Onum:

* `1passwordkey` will reference your 1Password API key.

To do it, click **Add element** and enter a **Name** for the secret (in this case, `1passwordkey`). Then, click the **Value** field and select **New secret** to create a new one:

* Give the secret a **Name**.
* Turn off the **Expiration date** option.
* Click **Add new value** and paste the secret corresponding to the value.
* Click **Save**.

You can now select the secret you just created in the **Value** field list.

{% hint style="info" %}
Learn more about secrets in Onum in [this article](/settings/organization-settings/secrets-management.md).
{% endhint %}

### Setup

After entering the required parameters and secrets, you can choose to manually enter the rest of configuration fields, or simply paste the given YAML:

{% tabs %}
{% tab title="Config as YAML" %}
Toggle **ON** the **Config as YAML** option to enable a free text field where you can paste the following YAML:

```yaml
withTemporalWindow: true
temporalWindow:
  duration: 1m
  offset: 1m
  tz: UTC
  format: "2006-01-02T15:04:05-07:00"
withAuthentication: false
withEnumerationPhase: false
collectionPhase:
  paginationType: cursor
  cursorSelector: ".cursor"
  initialRequest:
    responseType: json
    method: POST
    url: "https://events.1password.com/api/v2/signinattempts"
    headers:
      - name: Accept
        value: application/json
      - name: Content-Type
        value: application/json
      - name: Authorization
        value: "Bearer ${secrets.1passwordkey}"
    bodyType: raw
    bodyRaw: |
      {
        "limit": 100,
        "start_time": "${temporalWindow.from}",
        "end_time": "${temporalWindow.to}"
      }
  nextRequest:
    responseType: json
    method: POST
    url: "https://events.1password.com/api/v2/signinattempts"
    headers:
      - name: Accept
        value: application/json
      - name: Content-Type
        value: application/json
      - name: Authorization
        value: "Bearer ${secrets.1passwordkey}"
    bodyType: raw
    bodyRaw: |
      {
        "cursor": "${pagination.cursor}"
      }
  output:
    select: ".items"
    map: "."
    outputMode: element
```

{% endtab %}

{% tab title="Manually configure" %}
**Temporal Window**

Toggle **ON** to add a temporal window for events. This repeatedly shifts the time window over which data is collected.

* **Duration** - `1m`
* **Offset** - `1m`
* **Format** - `RFC3339`

**Collection Phase**

* **Pagination Type**<mark style="color:red;">**\***</mark> - `Cursor`
* **Cursor Selector**<mark style="color:red;">**\***</mark> - `.cursor`
* **Initial Request**&#x20;
  * **Response Type**<mark style="color:$primary;">**\***</mark> - `JSON`
  * **Method**<mark style="color:red;">**\***</mark> - `POST`
  * **URL**<mark style="color:red;">**\***</mark> - `https://events.1password.com/api/v2/signinattempts`
  * **Headers**&#x20;
    * **Name** - `Accept`&#x20;
    * **Value** - `application/json`&#x20;
    * **Name** - `Content-Type`
    * **Value** - `application/json`&#x20;
    * **Name** - `Authorization`
    * **Value** - `Bearer ${secrets.1passwordkey}`
  * **Body Type**<mark style="color:red;">**\***</mark> - `Raw`
  * **Body Content**<mark style="color:red;">**\***</mark> -&#x20;

```
|
      {
        "limit": 100,
        "start_time": "${temporalWindow.from}",
        "end_time": "${temporalWindow.to}"
      }
```

* **Next Request**
  * **Response Type**<mark style="color:$primary;">**\***</mark> - `JSON`
  * **Method**<mark style="color:red;">**\***</mark> - `POST`
  * **URL**<mark style="color:red;">**\***</mark> - `https://events.1password.com/api/v2/signinattempts`
  * **Headers**&#x20;
    * **Name** - `Accept`&#x20;
    * **Value** - `application/json`&#x20;
    * **Name** - `Content-Type`
    * **Value** - `application/json`&#x20;
    * **Name** - `Authorization`
    * **Value** - `Bearer ${secrets.1passwordkey}`
* **Body Type**<mark style="color:red;">**\***</mark> - `Raw`
* **Body Content**<mark style="color:red;">**\***</mark> -

```
|
      {
        "cursor": "${pagination.cursor}"
      }
```

* **Output**
  * **Select**<mark style="color:$primary;">**\***</mark> - `.items`
  * **Map** - `.`
  * **Output Mode**<mark style="color:$primary;">**\***</mark> - `element`
    {% endtab %}
    {% endtabs %}

When you're done, click **Create labels** to move on to the next step and define the required [Labels](/listeners/labels.md) if needed.
