User History

HTTP request

POST /user/history

Authorization(Bearer token or API key)

OAuth2PasswordBearer

Authorization: OAuth2PasswordBearer

Header API Key

X-API-Key: <your_api_key>

Query Parameter

KEY
TYPE
VALUE

page

Integer

The page number to retrieve, for pagination. Must be greater than 0.

page_size

Integer

The number of items to retrieve per page, for pagination. Must be greater than 0.

keyword

String

A keyword to search for file name. Used to filter results based on a specific criterion.

Body Payload

KEY
TYPE
VALUE

start_date

String

The start time for the query. Should be in ISO 8601 format. format: yyyy-mm-dd hh-mm-ss utc+7 ex: 2024-03-07 04:44:11

end_date

String

The end time for the query. Should be in ISO 8601 format. format: yyyy-mm-dd hh-mm-ss utc+7 ex: 2024-03-07 15:44:11

Response

200: Success

Response schema: application/json

KEY
VALUE

status_code

200

content

{ "data": [ { "id": 26524, "file_name": "5_1709782940_trial.docx", "url_download": "<translated_file_download_URL>", "translation_type": "Document", "datetime": "2024-03-07 04:44:11", "cost": 1, "credit": 1, "dest_lang": "en", "share_url": "" } ], "errors": [], "error_description": "", "start_time": "yyyy-mm-dd hh-mm-ss utc+7", "end_time": "yyyy-mm-dd hh-mm-ss utc+7" }

400: Bad Request

KEY
VALUE

status_code

400

content

{ "data": {}, "errors": [ "Error" ], "error_description": "Error while sending message. Please check server!", "start_time": "yyyy-mm-dd hh-mm-ss utc+7", "end_time": "yyyy-mm-dd hh-mm-ss utc+7" }

401: Authentication Error

KEY
VALUE

status_code

401

content

{ "detail": "Not authenticated" }

Response schema: application/json

detail

Last updated