> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cail.health/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cail.health/_mcp/server.

# List PREM responses

GET https://staging.cail.health/v1/prem/responses

Returns cursor-paginated PREM responses scoped to the operator’s organisation. Filter by satisfaction rating or by submission timestamp window. Use this endpoint to surface raw feedback in operator dashboards; use the summary endpoint for aggregate metrics.

Reference: https://docs.cail.health/api-references/api-reference/share-feedback/list

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: cail-api
  version: 1.0.0
paths:
  /v1/prem/responses:
    get:
      operationId: list
      summary: List PREM responses
      description: >-
        Returns cursor-paginated PREM responses scoped to the operator’s
        organisation. Filter by satisfaction rating or by submission timestamp
        window. Use this endpoint to surface raw feedback in operator
        dashboards; use the summary endpoint for aggregate metrics.
      tags:
        - subpackage_shareFeedback
      parameters:
        - name: cursor
          in: query
          description: Opaque cursor returned from a prior call.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of results to return. Defaults to 20.
          required: false
          schema:
            type: number
            format: double
        - name: sortBy
          in: query
          description: Sort field. Defaults to lastUpdated.
          required: false
          schema:
            type: string
        - name: sortOrder
          in: query
          description: Sort order. Defaults to desc.
          required: false
          schema:
            $ref: '#/components/schemas/V1PremResponsesGetParametersSortOrder'
        - name: q1Rating
          in: query
          description: Filter by satisfaction rating (1-5).
          required: false
          schema:
            type: number
            format: double
        - name: after
          in: query
          description: ISO 8601 lower bound for the submission timestamp.
          required: false
          schema:
            type: string
        - name: before
          in: query
          description: ISO 8601 upper bound for the submission timestamp.
          required: false
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A cursor-paginated page of PREM responses.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPremResponse'
servers:
  - url: https://staging.cail.health
    description: https://staging.cail.health
components:
  schemas:
    V1PremResponsesGetParametersSortOrder:
      type: string
      enum:
        - asc
        - desc
      title: V1PremResponsesGetParametersSortOrder
    PremListItemQ2FreeText:
      type: object
      properties: {}
      description: Free-text feedback, when supplied.
      title: PremListItemQ2FreeText
    PremListItemQ3ConditionalText:
      type: object
      properties: {}
      description: Conditional follow-up text, when supplied.
      title: PremListItemQ3ConditionalText
    PremListItem:
      type: object
      properties:
        id:
          type: string
          description: Stable identifier for the response row.
        q1Rating:
          type: number
          format: double
          description: >-
            Member satisfaction rating from 1 (very dissatisfied) to 5 (very
            satisfied).
        q2FreeText:
          $ref: '#/components/schemas/PremListItemQ2FreeText'
          description: Free-text feedback, when supplied.
        q3ConditionalText:
          $ref: '#/components/schemas/PremListItemQ3ConditionalText'
          description: Conditional follow-up text, when supplied.
        navigationSessionId:
          type: string
          description: Linked navigation session identifier.
        providerId:
          type: string
          description: Identifier of the provider the member visited, when known.
        outcomeCode:
          type: string
          description: Outcome code of the rated session, when known.
        submittedAt:
          type: string
          description: >-
            ISO 8601 timestamp at which the response was recorded; equivalent to
            the FHIR resource lastUpdated.
      required:
        - id
        - q1Rating
        - submittedAt
      title: PremListItem
    ListPremPaginationCursor:
      type: object
      properties: {}
      description: Opaque cursor for the next page.
      title: ListPremPaginationCursor
    ListPremPagination:
      type: object
      properties:
        cursor:
          oneOf:
            - $ref: '#/components/schemas/ListPremPaginationCursor'
            - type: 'null'
          description: Opaque cursor for the next page.
        hasMore:
          type: boolean
          description: True when more results exist after this page.
        limit:
          type: number
          format: double
          description: Echoes the requested page size.
      required:
        - cursor
        - hasMore
        - limit
      title: ListPremPagination
    ListPremResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PremListItem'
          description: >-
            PREM response rows for this page, ordered by submittedAt descending
            by default. Rows mirror the underlying FHIR QuestionnaireResponse
            fields; the documented properties above are the stable public ones.
        pagination:
          $ref: '#/components/schemas/ListPremPagination'
          description: Cursor metadata for paging forward.
      required:
        - data
        - pagination
      title: ListPremResponse
  securitySchemes:
    auth0Bearer:
      type: http
      scheme: bearer

```

## Examples



**Response**

```json
{
  "data": [
    {
      "id": "d4c5b6a7-9e8f-4012-83a4-5b6c7d8e9f01",
      "q1Rating": 5,
      "submittedAt": "2026-05-13T14:21:00.000Z",
      "q2FreeText": "Quick and easy to find a pharmacy near me.",
      "navigationSessionId": "3a4b5c6d-7e8f-4901-92b3-c4d5e6f7a8b9",
      "outcomeCode": "pharmacy"
    },
    {
      "id": "prm_02HZX9P3Q5R7S9T1V3W5Y7Z9A1",
      "q1Rating": 4,
      "submittedAt": "2026-05-13T13:08:00.000Z"
    }
  ],
  "pagination": {
    "cursor": null,
    "hasMore": false,
    "limit": 20
  }
}
```

**SDK Code**

```python Two recent five-star responses
import requests

url = "https://staging.cail.health/v1/prem/responses"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Two recent five-star responses
const url = 'https://staging.cail.health/v1/prem/responses';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Two recent five-star responses
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://staging.cail.health/v1/prem/responses"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Two recent five-star responses
require 'uri'
require 'net/http'

url = URI("https://staging.cail.health/v1/prem/responses")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Two recent five-star responses
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://staging.cail.health/v1/prem/responses")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Two recent five-star responses
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://staging.cail.health/v1/prem/responses', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Two recent five-star responses
using RestSharp;

var client = new RestClient("https://staging.cail.health/v1/prem/responses");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Two recent five-star responses
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://staging.cail.health/v1/prem/responses")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```