Skip to content
Documentation/Documents

Publish text source units

Publish a deterministic representation from owned retained plain text or CSV bytes.

Markdown
POST/api/v2/sources/{versionId}/representations/texthttps://api.webcite.co

When 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)stringrequired

No 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.

Error handling and retry guidance