| Navigation: š API Home | š API Reference | āļø Legal Docs | š Website |
Last Updated: November 6, 2025
The TTS Utility Server API provides a comprehensive suite of endpoints for managing customer authentication, session management, logging, statistics, and cache operations. This RESTful API supports both application/x-www-form-urlencoded and application/json content types.
To use the API, you need:
identifire (client identifier)x-tts-cc-access-key (for authenticated requests)secret key (optional, depending on endpoint)V4.21.04)curl -X POST "https://prod.services.utility-server.com/your-identifier/customers/member_login" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-d '{
"email_id": "[email protected]",
"password": "your_password",
"identifire": "your-identifier",
"client_ver": "V4.21.04",
"ip_address": "192.168.1.1",
"mac_address": "-",
"checksum": "generated_checksum_value",
"secret": "YOUR_SECRET_KEY"
}'
The API uses a combination of authentication methods:
Include your access key in the request header:
x-tts-cc-access-key: YOUR_ACCESS_KEY
After successful login, include session information:
session-id: YOUR_SESSION_ID
member-email: [email protected]
For JSON requests, include a checksum for data integrity verification.
https://prod.services.utility-server.com/{identifire}
http://btv.localhost:3000/{identifire}
https://spider.services.utility-server.com
Note: Replace {identifire} with your client identifier (e.g., www.example.com, preprod.example.com)
All API requests should include the following headers:
| Header | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes | application/json or application/x-www-form-urlencoded |
User-Agent |
String | Yes | Format: TTS-Utility-Client/{CLIENT_ID}/{ENV}/{VERSION} |
x-tts-cc-access-key |
String | Yes* | Your API access key |
client_ver |
String | Yes | API version (e.g., V4.21.04) |
session-id |
String | No** | Session identifier (required for authenticated endpoints) |
member-email |
String | No** | Member email (required for authenticated endpoints) |
x-tts-module |
String | No | Module identifier (e.g., SPIDER) |
x-target-force |
String | No | Force target environment (e.g., testing) |
x-log-enabled |
String | No | Enable specific log levels (e.g., INFO,DEBUG,VIGI,WARN,ERR) |
x-no-cache |
String | No | Bypass cache (value: TRUE) |
* May be empty for certain endpoints
** Required for authenticated endpoints after login
Authenticate a user and create a new session.
Endpoint: POST /{identifire}/customers/member_login
Request Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
email_id |
String | Yes | Userās email address |
password |
String | Yes | Userās password |
identifire |
String | Yes | Client identifier |
secret |
String | No | Secret key for additional security |
client_ver |
String | Yes | API version |
checksum |
String | Yes* | Data integrity checksum |
ip_address |
String | Yes* | Client IP address |
mac_address |
String | Yes* | Client MAC address (use - if unavailable) |
action |
String | No | Optional action parameter |
* Required when using JSON format
Example Request (JSON):
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/member_login" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/505.EXAMPLE.PROD/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "x-tts-module: SPIDER" \
-d '{
"email_id": "[email protected]",
"password": "secure_password",
"identifire": "www.example.com",
"secret": "YOUR_SECRET_KEY",
"client_ver": "V4.21.04",
"checksum": "generated_checksum_hash",
"ip_address": "192.168.1.100",
"mac_address": "-"
}'
Example Request (Form Data):
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/member_login" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
--data-urlencode "[email protected]" \
--data-urlencode "password=secure_password" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "secret=YOUR_SECRET_KEY" \
--data-urlencode "client_ver=V4.21.04"
Success Response:
{
"session_id": "zO4WlLQLT8fj4rakFbnvX~u92nq4A-fO",
"user_type": "client",
"message": "Logged-in successful, inactive session time-out is 43200 minutes."
}
Error Response:
Active login session found, please logout existing session, else you can force terminate all active sessions.
Reset a userās password. A new password will be emailed to the registered email address.
Endpoint: POST /{identifire}/customers/reset_password
Request Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
email_id |
String | Yes | Userās email address |
identifire |
String | Yes | Client identifier |
secret |
String | No | Secret key |
client_ver |
String | Yes | API version |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/reset_password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
--data-urlencode "[email protected]" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
Success Response:
Password reset successfully, and new password has been emailed to your registered email id.
Forcefully terminate an active user session.
Endpoint: POST /{identifire}/customers/terminate_session
Request Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
email_id |
String | Yes | Userās email address |
password |
String | Yes | Userās password |
identifire |
String | Yes | Client identifier |
secret |
String | No | Secret key |
client_ver |
String | Yes | API version |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/terminate_session" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
--data-urlencode "[email protected]" \
--data-urlencode "password=secure_password" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
Success Response:
Terminated active session, please relogin to continue.
Logout the current user session.
Endpoint: POST /{identifire}/customers/member_logout
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
identifire |
String | Yes | Client identifier |
secret |
String | No | Secret key |
client_ver |
String | Yes | API version |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/member_logout" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: zO4WlLQLT8fj4rakFbnvX~u92nq4A-fO" \
-H "member-email: [email protected]" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
Success Response:
Logged-out active session, please relogin to continue.
Retrieve user information for the authenticated session.
Endpoint: POST /{identifire}/customers/get_users
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
identifire |
String | Yes | Client identifier |
secret |
String | No | Secret key |
client_ver |
String | Yes | API version |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/get_users" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: zO4WlLQLT8fj4rakFbnvX~u92nq4A-fO" \
-H "member-email: [email protected]" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
Success Response:
Returns user information in JSON format.
Generate a new access key and invalidate the current one.
Endpoint: POST /{identifire}/customers/rotate_access_key
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
checksum |
String | Yes | Data integrity checksum |
ip_address |
String | Yes | Client IP address |
mac_address |
String | Yes | Client MAC address |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/rotate_access_key" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum_hash",
"ip_address": "192.168.1.100",
"mac_address": "-",
"secret": ""
}'
Success Response:
Returns the new access key.
Update to a specific access key.
Endpoint: POST /{identifire}/customers/push_access_key
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
checksum |
String | Yes | Data integrity checksum |
ip_address |
String | Yes | Client IP address |
mac_address |
String | Yes | Client MAC address |
new_access_key |
String | Yes | New access key to set |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/push_access_key" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum_hash",
"ip_address": "192.168.1.100",
"mac_address": "-",
"new_access_key": "NEW_ACCESS_KEY_VALUE",
"secret": ""
}'
Success Response:
Confirms the access key has been updated.
Generate a new secret key and invalidate the current one.
Endpoint: POST /{identifire}/customers/rotate_secret_key
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERx-tts-cc-access-key: Current valid access keyRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
checksum |
String | Yes | Data integrity checksum |
ip_address |
String | Yes | Client IP address |
mac_address |
String | Yes | Client MAC address |
secret |
String | No | Current secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/rotate_secret_key" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_CURRENT_ACCESS_KEY" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum_hash",
"ip_address": "192.168.1.100",
"mac_address": "-",
"secret": ""
}'
Success Response:
Returns the new secret key.
Update to a specific secret key.
Endpoint: POST /{identifire}/customers/push_secret_key
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERx-tts-cc-access-key: Current valid access keyRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
checksum |
String | Yes | Data integrity checksum |
ip_address |
String | Yes | Client IP address |
mac_address |
String | Yes | Client MAC address |
new_secret_key |
String | Yes | New secret key to set |
secret |
String | No | Current secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/push_secret_key" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_CURRENT_ACCESS_KEY" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum_hash",
"ip_address": "192.168.1.100",
"mac_address": "-",
"new_secret_key": "NEW_SECRET_KEY_VALUE",
"secret": ""
}'
Success Response:
Confirms the secret key has been updated.
Retrieve real-time logs with optional filtering.
Endpoint: POST /{identifire}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to liveLogs |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
checksum |
String | Yes | Data integrity checksum |
ip_address |
String | Yes | Client IP address |
mac_address |
String | Yes | Client MAC address |
secret |
String | No | Secret key |
lastId |
String | No | Last log ID for pagination |
filters-url |
String | No | URL pattern filter (supports wildcards) |
output |
String | No | Output format (e.g., json) |
limit |
Integer | No | Number of logs to retrieve |
activeModule |
String | No | Filter by active module |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"action": "liveLogs",
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum_hash",
"ip_address": "192.168.1.100",
"mac_address": "-",
"secret": "YOUR_SECRET_KEY",
"lastId": "",
"output": "json",
"limit": 50
}'
Success Response:
Returns live logs in the specified format.
Retrieve logs for a specific date.
Endpoint: POST /{identifire}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to hitLog |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
checksum |
String | Yes | Data integrity checksum |
ip_address |
String | Yes | Client IP address |
mac_address |
String | Yes | Client MAC address |
logDate |
String | Yes | Date in YYYY-MM-DD format |
output |
String | No | Output format (e.g., json) |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"action": "hitLog",
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum_hash",
"ip_address": "192.168.1.100",
"mac_address": "-",
"logDate": "2025-01-15",
"output": "json",
"secret": "YOUR_SECRET_KEY"
}'
Success Response:
Returns hit logs for the specified date.
Retrieve usage statistics by month or specific date.
Endpoint: POST /{identifire}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to fetchStats |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
checksum |
String | Yes | Data integrity checksum |
ip_address |
String | Yes | Client IP address |
mac_address |
String | Yes | Client MAC address |
secret |
String | No | Secret key |
month |
String | No* | Month in YYYY-MM format |
date |
String | No* | Date in YYYY-MM-DD format |
output |
String | No | Output format (e.g., json) |
* Provide either month or date, not both
Example Request (Monthly Stats):
curl -X POST "https://prod.services.utility-server.com/www.example.com" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"action": "fetchStats",
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum_hash",
"ip_address": "192.168.1.100",
"mac_address": "-",
"month": "2025-01",
"output": "json",
"secret": "YOUR_SECRET_KEY"
}'
Example Request (Daily Stats):
curl -X POST "https://prod.services.utility-server.com/www.example.com" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"action": "fetchStats",
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum_hash",
"ip_address": "192.168.1.100",
"mac_address": "-",
"date": "2025-01-15",
"output": "json",
"secret": "YOUR_SECRET_KEY"
}'
Success Response:
Returns statistics in the specified format.
Remove cached content for a specific URL.
Endpoint: POST /https://{full_url_to_clear}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to deleteCache |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/https://www.example.com/products/item-123" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-module: SPIDER" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
--data-urlencode "action=deleteCache" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
Success Response:
Confirms cache deletion.
Clear all cached content for the domain.
Endpoint: POST /https://{domain}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to purge |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/https://www.example.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-module: SPIDER" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
--data-urlencode "action=purge" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
Success Response:
Confirms cache purge.
Retrieve customer order information.
Endpoint: POST /https://{domain}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to fetchCustomerOrders |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/https://www.example.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-module: SPIDER" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
--data-urlencode "action=fetchCustomerOrders" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
Success Response:
Returns customer orders in JSON format.
Check the status of cache warmup operations.
Endpoint: POST /https://{domain}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailx-tts-module: Set to SPIDERRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to getWarmupCacheStatus |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/https://www.example.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-module: SPIDER" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
--data-urlencode "action=getWarmupCacheStatus" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
Success Response:
Returns cache warmup status information.
Check the health and availability of a cached URL.
Endpoint: HEAD /https://{full_url}
Base URL: https://spider.services.utility-server.com
Required Headers:
x-tts-cc-access-key: Your access keyx-no-cache: Set to TRUE to bypass cacheExample Request:
curl -I "https://spider.services.utility-server.com/https://www.example.com/products" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "x-no-cache: TRUE"
Success Response:
Returns HTTP headers with status information.
Register a new sitemap XML file.
Endpoint: POST /{identifire}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to addSitemap |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
sitemap |
String | Yes | Full URL to sitemap XML file |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
--data-urlencode "action=addSitemap" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04" \
--data-urlencode "sitemap=https://www.example.com/sitemap.xml"
Success Response:
Confirms sitemap has been added.
Update or replace an existing sitemap.
Endpoint: POST /{identifire}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to updateSitemap |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
sitemap |
String | Yes | Full URL to new sitemap XML file |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
--data-urlencode "action=updateSitemap" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04" \
--data-urlencode "sitemap=https://www.example.com/sitemap-updated.xml"
Success Response:
Confirms sitemap has been updated.
Set cache expiration time.
Endpoint: POST /{identifire}
Required Headers:
session-id: Current session IDmember-email: Logged-in userās emailRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | Set to updateTTL |
identifire |
String | Yes | Client identifier |
client_ver |
String | Yes | API version |
ttl |
Integer | Yes | Time to live in minutes |
secret |
String | No | Secret key |
Example Request:
curl -X POST "https://prod.services.utility-server.com/www.example.com" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
--data-urlencode "action=updateTTL" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04" \
--data-urlencode "ttl=60"
Success Response:
Confirms TTL has been updated.
The API supports two content types:
checksum for data integrityFor JSON requests, generate a SHA-256 checksum of the request body:
import hashlib
import json
def generate_checksum(data):
json_string = json.dumps(data, sort_keys=True)
return hashlib.sha256(json_string.encode()).hexdigest()
The User-Agent should follow this pattern:
TTS-Utility-Client/{CLIENT_ID}.{ENVIRONMENT}.{CLIENT_TYPE}/{VERSION}
Examples:
TTS-Utility-Client/505.EZM.PROD/V4.21.04TTS-Utility-Client/504.EJM.PPRO/V4.21.04TTS-Utility-Client/69.ANS.OPEN/V4.21.02| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid credentials or session |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource doesnāt exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
| 503 | Service Unavailable |
| Error Message | Cause | Solution |
|---|---|---|
Active login session found, please logout existing session |
User already has an active session | Use terminate_session or member_logout endpoint |
Invalid credentials |
Incorrect email or password | Verify credentials and try again |
Session expired |
Session timeout reached | Login again to create a new session |
Invalid checksum |
Checksum verification failed | Regenerate checksum and retry |
Access key not found |
Invalid or expired access key | Verify access key or rotate to get a new one |
Rate limit exceeded |
Too many requests | Wait before retrying (see Rate Limiting) |
All responses include rate limit information:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 847
X-RateLimit-Reset: 1640000000
When rate limit is exceeded (HTTP 429), wait for the time specified in the Retry-After header before retrying.
lastId parameter for log queriesclient_verlastId for continued queriesOpenAPI/Swagger Specification:
Postman Collection:
Swagger/OpenAPI:
openapi.yaml filePostman:
postman_collection.json fileidentifire, access_key, etc.)For technical support, integration assistance, or to report issues:
# Step 1: Login
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/member_login" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-d '{
"email_id": "[email protected]",
"password": "secure_password",
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum",
"ip_address": "192.168.1.100",
"mac_address": "-",
"secret": "YOUR_SECRET_KEY"
}'
# Response: {"session_id":"abc123","user_type":"client","message":"Logged-in successful..."}
# Step 2: Use authenticated endpoint
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/get_users" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: abc123" \
-H "member-email: [email protected]" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
# Step 3: Logout
curl -X POST "https://prod.services.utility-server.com/www.example.com/customers/member_logout" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "session-id: abc123" \
-H "member-email: [email protected]" \
--data-urlencode "identifire=www.example.com" \
--data-urlencode "client_ver=V4.21.04"
# Fetch live logs
curl -X POST "https://prod.services.utility-server.com/www.example.com" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"action": "liveLogs",
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum",
"ip_address": "192.168.1.100",
"mac_address": "-",
"output": "json",
"limit": 50,
"secret": "YOUR_SECRET_KEY"
}'
# Fetch monthly statistics
curl -X POST "https://prod.services.utility-server.com/www.example.com" \
-H "Content-Type: application/json" \
-H "User-Agent: TTS-Utility-Client/V4.21.04" \
-H "x-tts-cc-access-key: YOUR_ACCESS_KEY" \
-H "x-tts-module: SPIDER" \
-H "session-id: YOUR_SESSION_ID" \
-H "member-email: [email protected]" \
-d '{
"action": "fetchStats",
"identifire": "www.example.com",
"client_ver": "V4.21.04",
"checksum": "generated_checksum",
"ip_address": "192.168.1.100",
"mac_address": "-",
"month": "2025-01",
"output": "json",
"secret": "YOUR_SECRET_KEY"
}'
End of Documentation
Ā© 2024 TTS Utility Server. All rights reserved.