Skip to main content

API Authentication


1. Overview

Base URL:

  • HTTP: http://user.ipweb.cc/prod-api
  • HTTPS: https://user.ipweb.cc/prod-api

Supported format: JSON

Character encoding: UTF-8

Protocols: Both HTTP and HTTPS are supported. HTTPS is recommended for secure data transfer.


2. Authentication

Method: Token authentication

All API requests must include a valid token in the request header. The system validates the token; invalid tokens return an authentication error.

Request header format

Include the following header on every API request:

Token: your_access_token_here

Example

# curl example
curl -X GET "http://user.ipweb.cc/prod-api/open/customer/list?pageNum=1&pageSize=10&userName=" -H "token: your-access-token"

Token details

  • Header name: Token
  • Value: Access token string issued by the system
  • Length: Typically a 32–64 character alphanumeric string
  • Expiry: Tokens expire; obtain a new one when expired
  • Security: Keep your token confidential and do not share it with third parties

3. Response format

All APIs return a unified JSON response:

FieldTypeDescription
codeIntegerStatus code; 200 indicates success
msgStringResponse message
dataObjectResponse payload; structure varies by endpoint

4. Error codes

Possible error codes for dynamic traffic APIs:

CodeDescriptionResolution
200Invalid authentication tokenVerify the token is correct and not expired
200Incomplete account infoContact an administrator to check the account
500Internal server errorContact technical support

Error response example:

{
"code": 200,
"msg": "无效的认证令牌",
"data": null
}