1.2. Truy vấn thời gian hết hạn của API Key

POST/gaia/v1/oauth2/openapi/apikey/info
Truy vấn thời điểm hết hạn của API Key (tạo trên TCInvest). Dùng API này để chủ động gia hạn API Key trước khi hết hạn.

Header

TênKiểuBắt buộcMô tả
Content-Typestringapplication/json.

Request Body

TênKiểuBắt buộcMô tả
apiKeystringAPI Key được gen trên TCInvest.
POST /gaia/v1/oauth2/openapi/apikey/info
curl -X POST https://openapi.tcbs.com.vn/gaia/v1/oauth2/openapi/apikey/info \
  -H "Content-Type: application/json" \
  -d '{"apiKey":"<API_KEY>"}'

Response

TênKiểuBắt buộcMô tả
expireDatestringThời điểm hết hạn của API Key, định dạng ISO 8601 (RFC 3339), múi giờ Việt Nam (+07:00).
{
  "expireDate": "2027-10-04T10:15:30+07:00"
}