Skip to content

Common Parameters

Common Request Parameters (HTTP Headers)

All authentication for API requests is passed via HTTP headers. The request body stays pristine business JSON.

HeaderTypeRequiredDescription
X-Loxily-AppKeystringYesProject App Key
X-Loxily-Timestampnumber (as string)YesUnix seconds (or milliseconds), valid within 5 minutes
X-Loxily-SignstringYesRequest signature — see Signing Algorithm

Common Response Fields

All responses include the following top-level fields regardless of success or failure:

FieldTypeDescription
successbooleanWhether the call succeeded
codenumberBusiness code; 0 means success, others are error codes
msgstringHuman-readable short message
trace_idstringRequest trace ID — used for log correlation; can be searched in the Open Platform "Call Logs" page to look up the full request and callback history
dataobject | nullBusiness payload; null on failure

Response Format

Success

json
{
  "success": true,
  "code": 0,
  "msg": "ok",
  "trace_id": "8a3f12ab-4d2a-9f51-7e2c6d8a9101",
  "data": { ... }
}

Responses also include a response header:

X-Loxily-Trace-Id: 8a3f12ab-...

Error

json
{
  "success": false,
  "code": 401,
  "msg": "Invalid sign",
  "trace_id": "...",
  "data": null
}

Error Codes

CodeDescription
400Invalid request parameters / missing signature headers / non-JSON body
401Signature verification failed or timestamp expired (outside 5-minute window)
403App Secret not configured
404Invalid App Key
413Body / remote file too large
422Business validation failed (e.g. language not in project config)
500Internal server error
502Downstream (workflow / storage) trigger failed