Source code

List source files

Lists file identities, sizes, and line counts without contents, sorted by type then name with cursor pagination (default 20, maximum 100). Filter by name with nameGlob. Defaults to head; pass target=published or an explicit version, and pin continuation requests to the resolved response version.

get/websiteSourceCode/files

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websiteSourceCode/files
  • Auth: HTTP bearer

Query parameters

websiteIdstring required
target'head' | 'published'

Version alias to read: head (default) or published.

versioninteger

Explicit source version. Takes precedence over target.

nameGlobstring

Only list files whose name matches this glob. * and ? stop at a / segment boundary; ** crosses them, for example blog/**.

cursorstring

Opaque cursor from the previous page. Continue with the returned resolved version to keep the listing pinned.

limitinteger

Maximum files to return. Defaults to 20 and cannot exceed 100.

Response

The file listing for the requested source version.

nextCursorstring nullable required

Opaque cursor for the next page. Pass it as the cursor parameter on the next request. null when this is the last page.

websiteIdstring required

Id of the website.

versioninteger required

Source version that was listed. Pass it as version when continuing with nextCursor.

Changes

No recorded changes to this operation across all 1 revision of this API.