Use GET /user as a read-only connectivity check.
GET
/userReturn the current accountcurl --fail-with-body \ "https://api.ltesocks.io/v2/user" \ -H "Accept: application/json" \ -H "Authorization: Bearer ${LTESOCKS_API_TOKEN}"A successful response is a JSON user object. Exact fields are listed in the API reference.
Verify the integration
Section titled “Verify the integration”Check these conditions before continuing:
- DNS and TLS connect to
api.ltesocks.io. - The response status is in the
2xxrange. - The response
Content-Typeis JSON. - The returned account is the account you intended to automate.
- Logs do not contain the bearer token.
Discover before ordering
Section titled “Discover before ordering”Do not hard-code plan, server, or signature identifiers from examples. Request current values:
curl "https://api.ltesocks.io/v2/plans" \ -H "Authorization: Bearer ${LTESOCKS_API_TOKEN}"
curl "https://api.ltesocks.io/v2/servers" \ -H "Authorization: Bearer ${LTESOCKS_API_TOKEN}"
curl "https://api.ltesocks.io/v2/signatures" \ -H "Authorization: Bearer ${LTESOCKS_API_TOKEN}"Then follow Order a mobile port.