Skip to main content
POST
/
pipelines
/
{id}
/
create-preview-app
Create preview app
curl --request POST \
  --url https://api.sevalla.com/v2/pipelines/{id}/create-preview-app \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "branch": "feature/my-branch",
  "pull_request_number": 42
}
'
{
  "app": {
    "id": "fb5e5168-4281-4bec-94c5-0d1584e9e657",
    "name": "my-app",
    "display_name": "My Application"
  }
}

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
Example:

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

Body

application/json
branch
string
required

Git branch for the preview app

Minimum string length: 1
Example:

"feature/my-branch"

pull_request_number
integer

Pull request number

Required range: -9007199254740991 <= x <= 9007199254740991
Example:

42

Response

Default Response

app
object
required