> For the complete documentation index, see [llms.txt](https://docs.ggwp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ggwp.com/api-docs-contextual-information/player-activity-batch.md).

# Player Activity: Batch

\[ Base URL: `api.ggwp.com`]

`POST` /users/v1/activity-bulk&#x20;

## **Description**

API to record the user activity from a CSV file, records the login/logout time for all the users mentioned in the CSV file

CSV file should follow below template, with timestamps in UTC

```csv
user_id,login_time,logout_time,username
0000499b-ea03-4517-a6d8-630831daba7a,2025-12-30 07:44:37,2025-12-30 07:54:37,username-abc
```

Example Image Below:

<figure><img src="/files/m8nThPplz0NN9kupQoZN" alt=""><figcaption></figcaption></figure>

## **Important Notes**

* Input file should be a CSV file
* Input file size should not exceed 4 MB

## **Parameters**

`body`:

* CSV file
* Sample Call

  ```bash
  curl --location --request POST 'https://api.ggwp.com/users/v1/activity-bulk' \
  --header 'x-api-key: api_key' \
  --header 'Content-Type: text/csv' \
  --data-binary 'File/path/user-activity-data.csv'
  ```

## **Output**

* 200 - successful operation

  ```json
  {
     "Successfully uploaded"
  }
  ```
* 400 - Bad request
  * Error response. The user activity has not been logged into the system. This error is thrown when value passed in
    * Size exceeding 4 MB
    * File not in CSV format
* 403
  * Invalid or missing API key
* 500
  * Error response. The user activity has not been logged into the system. There was some error on the server while processing the request
