Skip to main content

Response format

All endpoints return a JSON envelope.

Success​

{
"code": 0,
"message": "success",
"data": {"success": true, "credits_used": 1, "outputs": {}},
"request_id": "req_..."
}

Failure​

{
"code": 16002,
"message": "the request was rejected, see details",
"request_id": "req_...",
"details": ["The request body is invalid(url)."]
}

Envelope fields​

FieldDescription
code0 on success; see Error codes for other values
messageA short description of the result
dataThe fetch platform's response, preserving public field names and semantics such as meta.strategy_used, meta.cache_hit, and credits_used; internal fields such as meta.snapshot_id are removed
detailsFailure details, when the error code permits them; use these to correct the request
request_idThe request identifier generated by flowda

Check the capability outcome​

For capability calls, HTTP 200 and outer code: 0 do not guarantee that the target was retrieved. Check data.success as well:

{
"code": 0,
"message": "success",
"request_id": "req_...",
"data": {
"success": false,
"code": "TARGET_DNS_ERROR",
"message": "The target host could not be resolved.",
"request_id": "core-req-..."
}
}

Treat data.success: false as a failed call. The API Reference lists the platform failure codes and endpoint-specific result shapes.

Information for support requests​

The fetch platform's request identifier is in the X-Upstream-Request-Id response header. Include:

  • The outer request_id from the response body.
  • The X-Upstream-Request-Id response header.
  • The time of the call and the endpoint path.

Billing​

Capability calls are billed once they reach the fetch service. Extract costs 1 credit on a cache hit, or 1 / 3 / 5 credits according to the retrieval strategy on a miss. Template execution costs 5 credits for a successful execution, including an empty result, and 0 for a failed execution. Search is billed per result.

The actual charge is reported in data.credits_used. Template catalogue and template detail requests cost 0 credits.