Skip to main content
GET
/
applications
/
{id}
/
repository
Get application repository
curl --request GET \
  --url https://api.sevalla.com/v3/applications/{id}/repository \
  --header 'Authorization: Bearer <token>'
{
  "source": "privateGit",
  "git_type": "github",
  "repo_url": "https://github.com/acme/my-app",
  "default_branch": "main",
  "deployed_commit": {
    "sha": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
    "message": "Fix login redirect",
    "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

Application 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 application source code comes from. privateGit - private Git repository connected via OAuth. publicGit - public Git repository URL.

Available options:
privateGit,
publicGit,
dockerImage,
app
Example:

"privateGit"

git_type
enum<string>
required

Git hosting provider for the repository. github - GitHub. bitbucket - Bitbucket. gitlab - GitLab.

Available options:
github,
bitbucket,
gitlab
Example:

"github"

repo_url
string | null
required

Full URL of the Git repository

Example:

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

default_branch
string | null
required

Default branch configured for deployments

Example:

"main"

deployed_commit
object
required

The commit currently deployed from the app's current repository. Null if the application 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).