Skip to content
For LLMsView as Markdown·

Travis CI

Manage repositories, builds, and jobs with the Travis CI API.

DetailValue
CategoryCI/CD
Base URLhttps://api.travis-ci.com
AuthenticationBearer Token
Endpoints8
Connector keytravis-ci

Using Travis CI in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Travis CI from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
GET /userGet current user
GET /reposList repositories
GET /repo/{slug}Get repository details
GET /repo/{slug}/buildsList builds
GET /build/{id}Get build details
POST /build/{id}/cancelCancel a build
POST /build/{id}/restartRestart a build
POST /repo/{slug}/requestsTrigger a build

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /user

Get current user

DetailValue
Operation IDcicd.getCurrentUser
MethodGET
Path/user

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Travis CI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getCurrentUser.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Travis CI API reference.

GET /repos

List repositories

DetailValue
Operation IDcicd.listRepositories
MethodGET
Path/repos

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Travis CI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.listRepositories.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Travis CI API reference.

GET /repo/{slug}

Get repository details

DetailValue
Operation IDcicd.getRepository
MethodGET
Path/repo/{slug}

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Travis CI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getRepository.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Travis CI API reference.

GET /repo/{slug}/builds

List builds

DetailValue
Operation IDcicd.listBuilds
MethodGET
Path/repo/{slug}/builds

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Travis CI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.listBuilds.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Travis CI API reference.

GET /build/{id}

Get build details

DetailValue
Operation IDcicd.getBuild
MethodGET
Path/build/{id}

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Travis CI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getBuild.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Travis CI API reference.

POST /build/{id}/cancel

Cancel a build

DetailValue
Operation IDcicd.cancelBuild
MethodPOST
Path/build/{id}/cancel

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Travis CI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.cancelBuild.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Travis CI API reference.

POST /build/{id}/restart

Restart a build

DetailValue
Operation IDcicd.restartBuild
MethodPOST
Path/build/{id}/restart

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Travis CI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.restartBuild.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Travis CI API reference.

POST /repo/{slug}/requests

Trigger a build

DetailValue
Operation IDcicd.triggerBuild
MethodPOST
Path/repo/{slug}/requests

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Travis CI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.triggerBuild.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Travis CI API reference.