> For the complete documentation index, see [llms.txt](https://help.pickzen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickzen.com/developers/rest-api/responses.md).

# Responses resource

The PickZen API lets you do the following with the Responses resource.

## Responses

<mark style="color:blue;">`GET`</mark> `https://admin.pickzen.com/api/responses` &#x20;

Retrieve all user responses.

#### Query Parameters

| Name             | Type    | Description                                                                        |
| ---------------- | ------- | ---------------------------------------------------------------------------------- |
| assistant        | string  | Assistant code.                                                                    |
| useId            | string  | User session execution ID.                                                         |
| limit            | integer | The maximum number of results to show on a page. (default: 50, maximum: 250)       |
| since\_id        | integer | Show results after the specified ID. It is used to paginate results.               |
| created\_at\_min | string  | <p>Show results created at or after date.<br>(format: 2019-04-25T16:15-06:00).</p> |
| created\_at\_max | string  | <p>Show results created at or before date.<br>(format: 2019-04-25T16:15-04:00</p>  |

#### Headers

| Name                   | Type   | Description       |
| ---------------------- | ------ | ----------------- |
| X-Pickzen-Access-Token | string | API access token. |

{% tabs %}
{% tab title="200 List with all paginated responses." %}

```
{
	"responses": [{
		"id": 8883,
		"useId": "340618-1582212315724-1582212808390",
		"date": "2019-11-05T07:50:11Z",
		"slides": [{
			"type": "info",
			"title": "What do you prefer?",
			"slideId": 100,
			"options": [{
				"id": 101,
				"title": "I prefer flat"
			}]
		}, {
			"type": "form",
			"title": "Enter your contact information",
			"slideId": 101,
			"fields": [{
				"id": 1,
				"response": "anna@mystore.com",
				"title": "E-mail",
				"type": "email"
			}, {
				"id": 2,
				"response": "Anna",
				"title": "Name",
				"type": "fname"
			}]
		}]
	}, {
		"id": 8918,
		"useId": "340618-1582212315724-1582212808390",
		"date": "2019-11-05T08:12:10Z",
		"slides": [{
			"type": "info",
			"title": "What do you prefer?",
			"slideId": 100,
			"options": [{
				"id": 100,
				"title": "I prefer heel"
			}]
		}, {
			"type": "form",
			"title": "Enter your contact information",
			"slideId": 101,
			"fields": [{
				"id": 1,
				"response": "anna@mystore.com",
				"title": "E-mail",
				"type": "email"
			}, {
				"id": 2,
				"response": "Anna",
				"title": "Name",
				"type": "fname"
			}]
		}]
	}]
}
```

{% endtab %}
{% endtabs %}

<mark style="color:blue;">`GET`</mark> `https://admin.pickzen.com/api/responses` &#x20;

#### Query Parameters

| Name  | Type   | Description       |
| ----- | ------ | ----------------- |
| token | string | API access token. |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

<mark style="color:blue;">`GET`</mark> `https://admin.pickzen.com/api/responses` &#x20;

#### Query Parameters

| Name  | Type   | Description       |
| ----- | ------ | ----------------- |
| token | string | API access token. |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

As there is a maximum limit of 250 results per page, in order to retrieve the next page you will need to make additional requests using the last *since\_id* parameter retrieved. This way, the query will return the results after this last id.

{% hint style="danger" %}
This endpoint is supposed to be called using the *createdAtMin* and/or *since\_id* parameter so only new entries from the last batched load are returned avoiding fetching all entries over and over.
{% endhint %}
