Skip to main content
GET
/
static-sites
/
{id}
/
repository
Get static site repository
curl --request GET \
  --url https://api.sevalla.com/v3/static-sites/{id}/repository \
  --header 'Authorization: Bearer <token>'
{
  "source": "privateGit",
  "git_type": "github",
  "repo_url": "https://github.com/acme/my-site",
  "default_branch": "main",
  "deployed_commit": {
    "sha": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
    "message": "Fix homepage layout",
    "author_login": "octocat"
  }
}

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"

Response

Default Response

source
enum<string>
required

Where the static site source code comes from. privateGit - private Git repository connected via OAuth. publicGit - public Git repository URL.

Available options:
privateGit,
publicGit
Example:

"privateGit"

git_type
enum<string> | null
required

Git hosting provider for the repository. github - GitHub. bitbucket - Bitbucket. gitlab - GitLab. Null for public git sources.

Available options:
github,
bitbucket,
gitlab
Example:

"github"

repo_url
string | null
required

Full URL of the Git repository

Example:

"https://github.com/acme/my-site"

default_branch
string | null
required

Default branch configured for deployments

Example:

"main"

deployed_commit
object
required

The commit currently deployed from the static site's current repository. Null if the static site has never deployed successfully, or if its repository was changed after the last successful deployment (the deployed commit belongs to the old repo and no longer applies).