Publish text source units
Publish a deterministic representation from owned retained plain text or CSV bytes.
POST
/api/v2/sources/{versionId}/representations/texthttps://api.webcite.coWhen to use it
Use the sourceVersionId from Register retained source bytes or a versioned upload. Inspect the returned units before choosing a zero-based figure_index for numeric verification.
Request
No model call or fixed public credit price is specified.
Examples run on your server. Set WEBCITE_API_KEY first. Python examples use the requests package.
curl
curl --fail-with-body -X POST 'https://api.webcite.co/api/v2/sources/YOUR_VERSIONID/representations/text' \
-H "x-api-key: $WEBCITE_API_KEY"Path and query parameters
versionId (path)stringrequiredNo request body is required.
Response
Returns sourceVersionId, representationId, parserVersion, and sourceUnitId with locator and state for each unit.
201 response
See the response guidance above. A complete JSON schema is not published for this response.
Errors
Rejects a foreign source, unsupported media type, invalid UTF-8, empty content, or source over 1 MiB.