API Usage Guide
API Server Information
- Endpoint:
https://openapi.willog.io
- api endpoint:
/ext/* - api endpoint:
/hub/*
Endpoints 1 and 2 are different services and may have different authentication methods.
Please use the authentication method as instructed by your account representative.
Authentication Methods
1. API Key Authentication
- Include the provided API key in the request header.
- Use the following header format:
{
"Authorization": "Bearer <api-key>"
} - All API requests must include the API key issued by our company.
2. AccessToken Authentication
- After successful authentication, you will receive an AccessToken.
- Use the following header format:
{
"Authorization": "Bearer <AccessToken>"
} - All API requests must include the issued AccessToken in the request header.
Common Error Responses
Authentication Failure
HTTP/1.1 400 Bad Request
{
"code": "A0010"
}
Bad Request Data
HTTP/1.1 400 Bad Request
{
"code": "E0021"
}
Important Notes
- You can authenticate using either the API key or the issued AccessToken.
- Please note that the AccessToken is time-limited and will expire.
- Ensure that your API key and AccessToken are stored securely.
- In addition to the common error responses, please refer to the specific error responses for each API endpoint.