# \#api

**URL:** https://travis-ci.community/tag/api/7.md

[Latest](https://travis-ci.community/latest.md) · [Categories](https://travis-ci.community/categories.md) · [Tags](https://travis-ci.community/tags.md)

---

## [How to get build status of particular commit using Travis API?](https://travis-ci.community/t/how-to-get-build-status-of-particular-commit-using-travis-api/11195)

<div class="topic-metadata">

**Author:** [@a-t-0](https://travis-ci.community/u/a-t-0)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 9:08am UTC](https://travis-ci.community/t/how-to-get-build-status-of-particular-commit-using-travis-api/11195 "2023-01-06T09:08:12Z")

</div>

Hi everyone, how would one get the build status of a particular GitHub commit from the Travis.com CI, or Travis.org CI, (using the Travis API) of any arbitrary open source project? For example, how would an arbitrary Gi…

---

## [Create\_request permissions suddenly needed but no information about it online](https://travis-ci.community/t/create-request-permissions-suddenly-needed-but-no-information-about-it-online/7158)

<div class="topic-metadata">

**Author:** [@Bilge](https://travis-ci.community/u/Bilge)\
**Replies:** 9\
**Last updated:** [January 5, 2023, 4:31pm UTC](https://travis-ci.community/t/create-request-permissions-suddenly-needed-but-no-information-about-it-online/7158 "2023-01-05T16:31:22Z")

</div>

Making a request to https://api.travis-ci.org/repo/xyz/requests suddenly returns the following response since Friday 7th February 2020. Nothing has changed at my end. { "@type": "error", "error\_type": "insufficient\_…

---

## [Insights API down](https://travis-ci.community/t/insights-api-down/12689)

<div class="topic-metadata">

**Author:** [@ianling](https://travis-ci.community/u/ianling)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 10:34pm UTC](https://travis-ci.community/t/insights-api-down/12689 "2022-02-16T22:34:36Z")

</div>

All of the requests to “/insights/\*” endpoints in the Travis API return 500 Internal Server Error responses.

---

## [Failed to fetch the reposiotry details using travis ci](https://travis-ci.community/t/failed-to-fetch-the-reposiotry-details-using-travis-ci/12669)

<div class="topic-metadata">

**Author:** [@dasabhisek](https://travis-ci.community/u/dasabhisek)\
**Replies:** 1\
**Last updated:** [February 10, 2022, 4:28pm UTC](https://travis-ci.community/t/failed-to-fetch-the-reposiotry-details-using-travis-ci/12669 "2022-02-10T16:28:57Z")

</div>

I am using below api endpoint to fetch the repository details. While trying using curl it’s working. But same not working using Ansible task. https://travis.example.com/api/repos/{{ ORG\_NAME }}/{{ REPO\_NAME }} Ansible …

---

## [Env\_var: Duplicate resource on another branch](https://travis-ci.community/t/env-var-duplicate-resource-on-another-branch/11722)

<div class="topic-metadata">

**Author:** [@claudiuskastner](https://travis-ci.community/u/claudiuskastner)\
**Replies:** 6\
**Last updated:** [July 1, 2021, 7:42pm UTC](https://travis-ci.community/t/env-var-duplicate-resource-on-another-branch/11722 "2021-07-01T19:42:15Z")

</div>

What I try to accomplish: I want to create environment variables with different values per branch with the API. This is possible within the portal: The problem I get a 409 conflict error when I try to create a new v…

---

## [How to trigger a build in the test project upon a commit to dev project with Travis CI API](https://travis-ci.community/t/how-to-trigger-a-build-in-the-test-project-upon-a-commit-to-dev-project-with-travis-ci-api/11523)

<div class="topic-metadata">

**Author:** [@iqbalsingh-qa](https://travis-ci.community/u/iqbalsingh-qa)\
**Replies:** 5\
**Last updated:** [June 15, 2021, 1:18pm UTC](https://travis-ci.community/t/how-to-trigger-a-build-in-the-test-project-upon-a-commit-to-dev-project-with-travis-ci-api/11523 "2021-06-15T13:18:42Z")

</div>

Hi, I am working on JavaScript and Node.js project. In my project, the dev code of the product and an automated test script framework is placed in different GitHub repositories. Now, the issue is that I don’t know how …

---

## [API Truncating Build lists](https://travis-ci.community/t/api-truncating-build-lists/11653)

<div class="topic-metadata">

**Author:** [@ryanjae](https://travis-ci.community/u/ryanjae)\
**Replies:** 5\
**Last updated:** [June 3, 2021, 6:20pm UTC](https://travis-ci.community/t/api-truncating-build-lists/11653 "2021-06-03T18:20:31Z")

</div>

Our team uses the Travis API to get builds for a given project repo, and has noted that the API currently returns less builds than same usage in 2020. For repo “stripe/stripe-java”, we previously got 19569 builds, and c…

---

## [How to get a job number from the organisation repository?](https://travis-ci.community/t/how-to-get-a-job-number-from-the-organisation-repository/11568)

<div class="topic-metadata">

**Author:** [@ExtraExtremeERA](https://travis-ci.community/u/ExtraExtremeERA)\
**Replies:** 2\
**Last updated:** [May 15, 2021, 5:25pm UTC](https://travis-ci.community/t/how-to-get-a-job-number-from-the-organisation-repository/11568 "2021-05-15T17:25:41Z")

</div>

hello, i need to build artifact (.jar) with the job number, i was reading travis api V3 documentation, but i still don’t know how to get my github organisation id (i am the owner of this organisation) to get the reposito…

---

## [Builds trigger via API with custom config suddenly stopped working](https://travis-ci.community/t/builds-trigger-via-api-with-custom-config-suddenly-stopped-working/8319)

<div class="topic-metadata">

**Author:** [@tinoubao](https://travis-ci.community/u/tinoubao)\
**Replies:** 2\
**Last updated:** [April 23, 2020, 11:22pm UTC](https://travis-ci.community/t/builds-trigger-via-api-with-custom-config-suddenly-stopped-working/8319 "2020-04-23T23:22:42Z")

</div>

We’ve been triggering builds via the V3 API for months now. Suddenly today the builds won’t start. The API request to trigger the build seems fine, we get back response and everything looks normal. But the build never st…

---

## [Retrieving builds with "offset" does not return all the expected builds](https://travis-ci.community/t/retrieving-builds-with-offset-does-not-return-all-the-expected-builds/10056)

<div class="topic-metadata">

**Author:** [@IncioMan](https://travis-ci.community/u/IncioMan)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 9:40am UTC](https://travis-ci.community/t/retrieving-builds-with-offset-does-not-return-all-the-expected-builds/10056 "2020-10-01T09:40:32Z")

</div>

Hi, I downloaded all the builds from SonarSource/sonarqube project and I happened to encounter 2 odd behaviours. I first used v3 of TravisCI APIs, and with pagination (offset and limit) I was able to retrieve builds …

---

## [Resource not found (or insufficient access)](https://travis-ci.community/t/resource-not-found-or-insufficient-access/8978)

<div class="topic-metadata">

**Author:** [@prakaur](https://travis-ci.community/u/prakaur)\
**Replies:** 1\
**Last updated:** [June 19, 2020, 1:09am UTC](https://travis-ci.community/t/resource-not-found-or-insufficient-access/8978 "2020-06-19T01:09:07Z")

</div>

Hey, I am trying to use TravisCI API to get the result of the builds. When trying to get the build details or even branch details, I get { “@type”: “error”, “error\_type”: “not\_found”, “error\_message”: “resource not …

---

## [Parameterize travis builds using API v3 with query params](https://travis-ci.community/t/parameterize-travis-builds-using-api-v3-with-query-params/3755)

<div class="topic-metadata">

**Author:** [@bheemreddy181](https://travis-ci.community/u/bheemreddy181)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 11:09am UTC](https://travis-ci.community/t/parameterize-travis-builds-using-api-v3-with-query-params/3755 "2020-06-10T11:09:25Z")

</div>

Custom query params for post request for triggering the build. parameterize Travis builds similar to Jenkins similar to below Jenkins has that provision https://wiki.jenkins.io/display/JENKINS/Parameterized+Build W…

---

## [Merge\_mode replace seems to merge lists, not replace them](https://travis-ci.community/t/merge-mode-replace-seems-to-merge-lists-not-replace-them/8839)

<div class="topic-metadata">

**Author:** [@thegecko](https://travis-ci.community/u/thegecko)\
**Replies:** 5\
**Last updated:** [June 2, 2020, 5:03pm UTC](https://travis-ci.community/t/merge-mode-replace-seems-to-merge-lists-not-replace-them/8839 "2020-06-02T17:03:46Z")

</div>

I’m undertaking a lot of dev work on a build job and rather than commit each change during development, I wanted to post config using a build request. I’ve done this using the following: config=\`yaml2json .travis.yml\` …

---

## [Trigger build on PR via API](https://travis-ci.community/t/trigger-build-on-pr-via-api/825)

<div class="topic-metadata">

**Author:** [@tadjik1](https://travis-ci.community/u/tadjik1)\
**Replies:** 14\
**Last updated:** [May 6, 2020, 11:17am UTC](https://travis-ci.community/t/trigger-build-on-pr-via-api/825 "2020-05-06T11:17:44Z")

</div>

Hi there, Not sure if I miss this in documentation or this feature is missing but I’m wondering if it’s possible to trigger build via API for pull request made from fork?

---

## [Travis API, requests stuck in \`pending\` state](https://travis-ci.community/t/travis-api-requests-stuck-in-pending-state/6557)

<div class="topic-metadata">

**Author:** [@egor-ryashin](https://travis-ci.community/u/egor-ryashin)\
**Replies:** 3\
**Last updated:** [April 24, 2020, 12:58pm UTC](https://travis-ci.community/t/travis-api-requests-stuck-in-pending-state/6557 "2020-04-24T12:58:50Z")

</div>

Hey, we use Travis API and some of our requests sporadically got stuck in pending state forever, those requests don’t differ in any parameters from others, the requests do trigger the build master branch. I wonder wheth…

---

## [Trigger a build for a git tag using the API](https://travis-ci.community/t/trigger-a-build-for-a-git-tag-using-the-api/7318)

<div class="topic-metadata">

**Author:** [@Morten](https://travis-ci.community/u/Morten)\
**Replies:** 2\
**Last updated:** [February 21, 2020, 10:13pm UTC](https://travis-ci.community/t/trigger-a-build-for-a-git-tag-using-the-api/7318 "2020-02-21T22:13:36Z")

</div>

I’m trying to trigger a build using the API (https://docs.travis-ci.com/user/triggering-builds/), but instead of triggering it for a branch, I want to trigger it for a tag. I tried setting "tag": "v2.1.0" in the request,…

---

## [Get job config values from v3 api](https://travis-ci.community/t/get-job-config-values-from-v3-api/6815)

<div class="topic-metadata">

**Author:** [@bergpb](https://travis-ci.community/u/bergpb)\
**Replies:** 2\
**Last updated:** [January 19, 2020, 7:54pm UTC](https://travis-ci.community/t/get-job-config-values-from-v3-api/6815 "2020-01-19T19:54:48Z")

</div>

Hello guys. I trying to update a project with use a older api version, and i updating into v3 api. But i cant find some info in a new api, info like job platform, job sudo, job lang and job env. In older version i can…

---

## [API: Repository ID type has changed from string to int](https://travis-ci.community/t/api-repository-id-type-has-changed-from-string-to-int/6797)

<div class="topic-metadata">

**Author:** [@benwaffle](https://travis-ci.community/u/benwaffle)\
**Replies:** 0\
**Last updated:** [January 9, 2020, 11:01pm UTC](https://travis-ci.community/t/api-repository-id-type-has-changed-from-string-to-int/6797 "2020-01-09T23:01:38Z")

</div>

Repositories are documented as having ID of type integer - https://developer.travis-ci.com/resource/repository#standard-representation This commit has resulted in the ID possibly being a string - when POSTing to /repo/{…

---

## [Loading repositories hangs; 403 with "installation\_missing" on /repos](https://travis-ci.community/t/loading-repositories-hangs-403-with-installation-missing-on-repos/6613)

<div class="topic-metadata">

**Author:** [@rfblue2](https://travis-ci.community/u/rfblue2)\
**Replies:** 1\
**Last updated:** [December 24, 2019, 6:30pm UTC](https://travis-ci.community/t/loading-repositories-hangs-403-with-installation-missing-on-repos/6613 "2019-12-24T18:30:57Z")

</div>

When I log in on travis-ci.org, I don’t see any of my repositories - it just hangs trying to load. I went to settings and clicked on “sync from github” - but it doesn’t do anything (but a message always says it synced l…

---

## [Unable to trigger a job to run in debug mode but can trigger restart with the same credentials](https://travis-ci.community/t/unable-to-trigger-a-job-to-run-in-debug-mode-but-can-trigger-restart-with-the-same-credentials/6570)

<div class="topic-metadata">

**Author:** [@contactashish13](https://travis-ci.community/u/contactashish13)\
**Replies:** 2\
**Last updated:** [December 21, 2019, 4:20am UTC](https://travis-ci.community/t/unable-to-trigger-a-job-to-run-in-debug-mode-but-can-trigger-restart-with-the-same-credentials/6570 "2019-12-21T04:20:37Z")

</div>

I’ve taken the token from my profile. I have push access to the repository. The repository is public. When I hit the endpoint for restart curl -s -X POST \\ -H "Content-Type: application/json" \\ -H "Accept: applica…

---

## ["No stash entries found" and " API request failed"](https://travis-ci.community/t/no-stash-entries-found-and-api-request-failed/119)

<div class="topic-metadata">

**Author:** [@patelc75](https://travis-ci.community/u/patelc75)\
**Replies:** 3\
**Last updated:** [November 24, 2019, 8:21pm UTC](https://travis-ci.community/t/no-stash-entries-found-and-api-request-failed/119 "2019-11-24T20:21:06Z")

</div>

I get the below error in Travis at the step that is deploying to Heroku. My travis.yml is pasted below. I ran “travis setup heroku” and updated the API key but getting the same error. Any help would be appreciated -Chir…

---

## [400: “Invalid JSON in request body” on "travis lint --pro"](https://travis-ci.community/t/400-invalid-json-in-request-body-on-travis-lint-pro/5854)

<div class="topic-metadata">

**Author:** [@sandy162](https://travis-ci.community/u/sandy162)\
**Replies:** 1\
**Last updated:** [November 9, 2019, 10:19am UTC](https://travis-ci.community/t/400-invalid-json-in-request-body-on-travis-lint-pro/5854 "2019-11-09T10:19:45Z")

</div>

Our github repos are configured to run validation checks locally on machine before code is pushed to GitHub. The TravisCI YAML configuration format check is no longer working. As of now our TravisCI YAML files using an o…

---

## [API /v3/build/:buildId inconsistent time format](https://travis-ci.community/t/api-v3-build-buildid-inconsistent-time-format/5479)

<div class="topic-metadata">

**Author:** [@javierron](https://travis-ci.community/u/javierron)\
**Replies:** 3\
**Last updated:** [October 25, 2019, 7:03am UTC](https://travis-ci.community/t/api-v3-build-buildid-inconsistent-time-format/5479 "2019-10-25T07:03:36Z")

</div>

Description The purpose of this topic is to ask for clarification on a date format inconsistency on the /v3/build/:buildId endpoint. Example: { ... "started\_at":"2019-10-03T14:53:57Z", "finished…

---

## [Mac 10.14.5 request timed out](https://travis-ci.community/t/mac-10-14-5-request-timed-out/4303)

<div class="topic-metadata">

**Author:** [@mycode65678](https://travis-ci.community/u/mycode65678)\
**Replies:** 0\
**Last updated:** [July 21, 2019, 5:26pm UTC](https://travis-ci.community/t/mac-10-14-5-request-timed-out/4303 "2019-07-21T17:26:00Z")

</div>

System Ruby: Ruby 2.3.7-p456 Operating System: Mac OS X 10.14.5 RubyGems: RubyGems 3.0.4 CLI Version: 1.8.10 Plugins: none Auto-Completion: yes Last Version Check: 2019-07-22 00:58:38 +0800 Session API Endpoint…

---

## [Add custom job name into the API](https://travis-ci.community/t/add-custom-job-name-into-the-api/4226)

<div class="topic-metadata">

**Author:** [@klugem](https://travis-ci.community/u/klugem)\
**Replies:** 2\
**Last updated:** [July 17, 2019, 5:44am UTC](https://travis-ci.community/t/add-custom-job-name-into-the-api/4226 "2019-07-17T05:44:23Z")

</div>

Hi, I would like to query the name of a job that was created using the matrix attribute by a PR from github. Example .travis File: matrix: include: - name: 'super test1' env: TEST\_NAME='TEST1' - name: 'super…

---

## [API-connected in Europe](https://travis-ci.community/t/api-connected-in-europe/2667)

<div class="topic-metadata">

**Author:** [@ESA-Security-Group](https://travis-ci.community/u/ESA-Security-Group)\
**Replies:** 3\
**Last updated:** [March 15, 2019, 6:05pm UTC](https://travis-ci.community/t/api-connected-in-europe/2667 "2019-03-15T18:05:32Z")

</div>

Continuing the discussion from Button to merge the latest code in the code that are building:

---

## [API-triggered build with config overriddes shows unmodified config in UI](https://travis-ci.community/t/api-triggered-build-with-config-overriddes-shows-unmodified-config-in-ui/2330)

<div class="topic-metadata">

**Author:** [@cben](https://travis-ci.community/u/cben)\
**Replies:** 0\
**Last updated:** [February 17, 2019, 3:04pm UTC](https://travis-ci.community/t/api-triggered-build-with-config-overriddes-shows-unmodified-config-in-ui/2330 "2019-02-17T15:04:45Z")

</div>

Hi, I’m using https://docs.travis-ci.com/user/triggering-builds API, modifying the config, especially before\_install commands. The build logs confirms it’s running my commands, however the UI under “Config” shows origin…

---

## [Some of my repositories do not show up in the API responses for \`GET /repos/{user}\`](https://travis-ci.community/t/some-of-my-repositories-do-not-show-up-in-the-api-responses-for-get-repos-user/2072)

<div class="topic-metadata">

**Author:** [@ehmicky](https://travis-ci.community/u/ehmicky)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 12:09pm UTC](https://travis-ci.community/t/some-of-my-repositories-do-not-show-up-in-the-api-responses-for-get-repos-user/2072 "2019-01-31T12:09:27Z")

</div>

One of my enabled (active) GitHub repositories (https://travis-ci.org/ehmicky) called unix-permissions is not returned by the endpoint https://api.travis-ci.org/repos/ehmicky: \<Projects\> \<Project name="ehmicky/get-sou…

---

## [Travis is using the wrong Ruby version](https://travis-ci.community/t/travis-is-using-the-wrong-ruby-version/2051)

<div class="topic-metadata">

**Author:** [@mresnickmdlive](https://travis-ci.community/u/mresnickmdlive)\
**Replies:** 4\
**Last updated:** [January 31, 2019, 3:16pm UTC](https://travis-ci.community/t/travis-is-using-the-wrong-ruby-version/2051 "2019-01-31T15:16:07Z")

</div>

Hello, I triggered a job via the API using a branch that I had previously deleted and pushed again. The previous version of the branch was using ruby 2.3.7, the current version of the branch is using 2.4.1. The only exp…

---

## [\`active\_on\_org\` from API V3 is wrong](https://travis-ci.community/t/active-on-org-from-api-v3-is-wrong/1199)

<div class="topic-metadata">

**Author:** [@asmeurer](https://travis-ci.community/u/asmeurer)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 9:18pm UTC](https://travis-ci.community/t/active-on-org-from-api-v3-is-wrong/1199 "2019-01-30T21:18:53Z")

</div>

I was told that I should use this to report bugs instead of GitHub. Let me know if that is incorrect. The active\_on\_org key in the repo JSON from API V3 seems to be wrong for repos enabled on both .com and .org. Example…

[Next page](https://travis-ci.community/tag/api/7.md?match_all_tags=true&page=1&tags%5B%5D=api)
