[POST] /metrics/v2/download

Objective:

Éste servicio sirve para descargar sesiones y toda la información relacionada a la misma. Cada llamada a este servicio retorna un máximo de 200 registros y un page-token (tiempo de vida de un día), que se deberá utilizar en el endpoint: /download-page.

Importante: La información sólo se enviará un vez al día.

Parameteres:

  • fromDate: Fecha que puede ser del formato ISO. Se usa cómo punto de partida para devolver los registros.

CURL example:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'access-token: <ACCESS-TOKEN> 'https://go.botmaker.com/api/v1.0/metrics/v2/download?fromDate=2021-01-21T12%3A33%3A48'

Response structure:

  • hasMore [boolean] Verifca si hay más | true.
  • pageToken [string] Token de página | “48e2413a-0ef7-447a-b29f-4f3e59a8b546”.
  • note [string] Nota | “Retrieving the data will take a little bit… Please use the ‘pageToken’ in the endpoint ‘/download-page’ to get the results.”.
  • dateFrom [string] Fecha en formato ISO | “2021-01-21T12:33:48Z”.

JSON Example:

{"hasMore":true,"pageToken":"48e2413a-0ef7-447a-b29f-4f3e59a8b546","note":"Retrieving the data will take a little bit... Please use the 'pageToken' in the endpoint '/download-page' to get the results.","dateFrom":"2021-01-21T12:33:48Z"}