Skip to main content

Response Format

All Wappfy API responses follow a consistent envelope format.

Success responses

Every successful response is wrapped in a standard object:
{
  "success": true,
  "data": { ... },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-02-10T12:00:00.000Z"
  }
}
FieldTypeDescription
successbooleanAlways true for successful responses
dataobject | arrayThe response payload
meta.requestIdstringUnique request identifier for debugging
meta.timestampstringISO 8601 timestamp

Paginated responses

Endpoints that return lists include pagination metadata:
{
  "success": true,
  "data": {
    "items": [ ... ],
    "total": 42,
    "page": 1,
    "limit": 20,
    "totalPages": 3
  },
  "meta": {
    "requestId": "req_def456",
    "timestamp": "2026-02-10T12:00:00.000Z"
  }
}
Use the page and limit query parameters to control pagination:
GET /api/instances?page=2&limit=10

Error responses

Failed requests return an error object:
{
  "success": false,
  "error": {
    "code": "INSTANCE_NOT_FOUND",
    "message": "Instance with ID abc123 not found",
    "details": {}
  },
  "meta": {
    "requestId": "req_ghi789",
    "timestamp": "2026-02-10T12:00:00.000Z"
  }
}

Common error codes

HTTP StatusCodeDescription
400VALIDATION_ERRORRequest body failed validation
401UNAUTHORIZEDMissing or invalid auth token
403FORBIDDENInsufficient permissions
404NOT_FOUNDResource does not exist
409PLAN_LIMIT_REACHEDInstance limit for your plan
429RATE_LIMIT_EXCEEDEDToo many requests
500INTERNAL_ERRORUnexpected server error
The meta.requestId is useful for support requests — include it when contacting support for faster debugging.