Skip to main content
GET
/
static-sites
/
{id}
/
repository
/
tree
List static site repository tree
curl --request GET \
  --url https://api.sevalla.com/v3/static-sites/{id}/repository/tree \
  --header 'Authorization: Bearer <token>'
{
  "ref": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
  "entries": [
    {
      "path": "src/index.ts",
      "type": "file",
      "size": 1024,
      "sha": "b1c2d3e4"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://api-docs.sevalla.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required

Static site identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

Query Parameters

ref
string

Branch, tag, or commit SHA to read the tree at. Defaults to the commit of the latest successful deployment, falling back to the default branch when there is no such deployment or the static site's repository was changed after it (so the deployed commit no longer exists in the current repo). Pass the deployed commit SHA to inspect exactly the code that is deployed.

Example:

"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"

path
string

Directory path relative to the repository root. Defaults to the root.

Example:

"src"

recursive
string

When true, returns the full tree under path recursively in a single response. When false (default), returns only the immediate children. Large trees may be truncated.

Example:

false

Response

Default Response

ref
string | null
required

The ref the tree was read at (the resolved commit SHA or branch)

Example:

"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"

entries
object[]
required

Tree entries at the requested path