GET
/
devapi
/
poll
/
{poll_id}
/
sessions
curl --request GET \
  --url https://main.treble.ai/devapi/poll/{poll_id}/sessions \
  --header 'Authorization: <authorization>'
{
  "results": [
    {
      "id": "dabcf6c0-8150-4231-bafd-a3c331da385f4",
      "created_at": "2022-03-09 17:00:28.956422",
      "finished_at": "2022-03-09 19:08:38.808986",
      "user": {
        "country_code": "+57",
        "cellphone": "987654321"
      }
    },
    {
      "id": "dabcf6c0-8850-4231-bafd-a3c331da385f9",
      "created_at": "2022-03-09 17:11:46.754945",
      "finished_at": "2022-03-09 19:18:41.401605",
      "user": {
        "country_code": "+57",
        "cellphone": "123456789"
      }
    }
  ],
  "next_id": "da848b5f-27e2-49f9-8d31-313b791daf8d"
}

Headers

Authorization
string
required

API Key de autorización. Se puede obtener en https://app.treble.ai/en/admin/settings

Path Parameters

poll_id
string
required

ID del poll del cual se quieren obtener las sesiones

Query Parameters

since
integer

Timestamp UNIX UTC para la fecha de inicio del rango a consultar

until
integer

Timestamp UNIX UTC para la fecha final del rango a consultar

limit
integer

Número entero entre 1 y 10.000 que indica la cantidad de sesiones a recuperar

Required range: 1 <= x <= 10000
after
string

Cursor de paginación devuelto en la propiedad 'next_id' de la respuesta anterior

Response

200
application/json
Lista de metadatos de sesiones obtenida correctamente

The response is of type object.