# Event Subscription Attempt

## Parameters

### event_subscription_token
- **Type:** string  
- **Required:** yes

### status
- **Type:** string  
- **Enum:**  
  - `FAILED`  
  - `PENDING`  
  - `SENDING`  
  - `SUCCESS`
- **Allowed:**  
  - `FAILED`, `PENDING`, `SENDING`, `SUCCESS`

### begin
- **Type:** date-time  
- **Description:** Date string in RFC 3339 format. Only entries created after the specified time will be included. UTC time zone.

### end
- **Type:** date-time  
- **Description:** Date string in RFC 3339 format. Only entries created before the specified time will be included. UTC time zone.

### ending_before
- **Type:** string  
- **Description:** A cursor representing an item's token before which a page of results should end. Used to retrieve the previous page of results before this item.

### page_size
- **Type:** integer  
- **Range:** 1 to 100  
- **Default:** 50  
- **Description:** Page size (for pagination).

### starting_after
- **Type:** string  
- **Description:** A cursor representing an item's token after which a page of results should begin. Used to retrieve the next page of results after this item.

## Responses

### `200 OK`
- **Type:** object  
- **Properties:**  
  - **data:**  
    - **Type:** array of objects  
    - **Required:** yes  
    - **Description:** A subscription to specific event types.  
      - **created:** date-time  
      - **event_subscription_token:** string  
      - **event_token:** string  
      - **response:** string  
      - **response_status_code:** integer  
      - **status:** string  
      - **token:** string  
      - **url:** uri
  - **has_more:** boolean  
  - **Required:** yes

### Error Responses

- **`400`**: A parameter in the query given in the request does not match the valid queries for the endpoint.
- **`401`**: User has not been authenticated.  
  - Invalid or missing API key.  
  - API key is not active.
  - Could not find API key.
  - Please provide API key in Authorization header.
  - Insufficient privileges. Issuing API key required.
- **`404`**: The specified resource was not found.
- **`409`**: The request could not be completed due to a conflict with the current state of the target resource.
- **`422`**: Unprocessable entity.
- **`429`**: Client has exceeded the number of allowed requests in a given time period.

## Example Curl Request
```
curl --request GET \
     --url 'https://sandbox.lithic.com/v1/event_subscriptions/event_subscription_token/attempts?page_size=50' \
     --header 'accept: application/json'
```

## Example Response
```
{
  "data": [
    {
      "created": "2026-07-18T00:25:27.937Z",
      "event_subscription_token": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga1",
      "event_token": "msg_1srOrx2ZWZBpBUvZwXKQmoEYga1",
      "response": "string",
      "response_status_code": 0,
      "status": "FAILED",
      "token": "atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2",
      "url": "string"
    }
  ],
  "has_more": true
}
```
