API VIK
  1. v1
API VIK
  • v1
    • Autenticação
      POST
    • Usuários
      GET
    • Atividades
      GET
    • Desafios
      GET
    • Cupons
      GET
    • Resgates
      GET
    • VIK Scores
      GET
    • health
      GET
  1. v1

Atividades

homolog
https://api2-homolog.vik.app
homolog
https://api2-homolog.vik.app
GET
{{BASE_URL}}/api/v1/activities
Retorna os registros de atividades realizadas pelos colaboradores.

Requisição

Authorization
Adicionar parâmetro em header
x-api-key
Exemplo:
x-api-key: ********************
Parâmetros de Consulta

Respostas

🟢200OK
application/json
Body

🟠401Não autorizado
🟠422Erro de parâmetro
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '{{BASE_URL}}/api/v1/activities?page=2&start_date=2025-05-02&end_date=2025-05-20&user_id=192032&activity_id=210615&type=gym&update_start_date=2025-10-01&update_end_date=2025-10-08' \
--header 'x-api-key: <api-key>'
Response Response Example
200 - Sucesso
{
    "data": [
        {
            "id": 123654987,
            "user_id": 12345678910,
            "type": "surf",
            "title": "Activity_c9e0dcc4",
            "distance_meters": 0.0,
            "elapsed_time": 2700,
            "coins": 1,
            "total_likes": 0,
            "total_comments": 0,
            "start_date": "2025-01-31T09:23:46.527Z",
            "end_date": "2025-01-31T10:08:46.527Z",
            "app": "VIK APP",
            "created_at": "2025-01-06T13:32:25.336Z",
            "updated_at": "2025-01-31T17:16:04.991Z"
        },
        {
            "id": 12231211,
            "user_id": 300000,
            "type": "gym",
            "title": "Activity_48d643b4",
            "distance_meters": 0.0,
            "elapsed_time": 2700,
            "coins": 1,
            "total_likes": 0,
            "total_comments": 0,
            "start_date": "2024-12-31T20:50:00.000Z",
            "end_date": "2024-12-31T21:35:00.000Z",
            "app": "VIK APP",
            "created_at": "2025-01-06T21:03:33.754Z",
            "updated_at": "2025-01-06T21:03:33.754Z"
        },
        {
            "id": 1465186,
            "user_id": 999999,
            "type": "run",
            "title": "Activity_06dae44d",
            "distance_meters": 2000.0,
            "elapsed_time": 1800,
            "coins": 4,
            "total_likes": 0,
            "total_comments": 0,
            "start_date": "2024-11-21T15:30:00.000Z",
            "end_date": "2024-11-21T16:00:00.000Z",
            "app": "VIK APP",
            "created_at": "2024-11-21T16:48:37.022Z",
            "updated_at": "2024-12-06T17:31:04.657Z"
        }
    ],
    "pagy": {
        "page": 1,
        "per_page": 100,
        "total_items": 26,
        "total_pages": 1,
        "next_page": null,
        "prev_page": null
    }
}
Modificado em 2025-10-08 13:30:43
Página anterior
Usuários
Próxima página
Desafios
Built with