# Endpoint https://api.travis-ci.org/jobs not supported in v3?

**URL:** <https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024>\
**Category:** Uncategorized\
**Created:** [April 15, 2019, 5:15am UTC](https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024 "2019-04-15T05:15:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![monperrus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/monperrus/32/1592_2.png) [@monperrus](https://travis-ci.community/u/monperrus)\
**Post date:** [April 15, 2019, 5:15am UTC](https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024/1 "2019-04-15T05:15:17Z")

</div>

Hi, we’re using endpoint [https://api.travis-ci.org/jobs](https://api.travis-ci.org/jobs) (from [Client and API isolation](https://blog.travis-ci.com/2013-03-13-client-and-api-isolation)) vwhich is great for our project [repairnator](https://github.com/Spirals-Team/repairnator/)

This works perfectly for V1, V2:

```auto
curl --verbose --header "Accept: application/json; version=1" https://api.travis-ci.org/jobs
curl --verbose --header "Accept: application/json; version=2" https://api.travis-ci.org/jobs

```

But V3 fails:

```auto
curl --verbose --header "Accept: application/json; version=3" https://api.travis-ci.org/jobs
< HTTP/1.1 406 Not Acceptable
< Connection: keep-alive
< Server: nginx
< Date: Mon, 15 Apr 2019 05:10:53 GMT
< Content-Type: application/json;charset=utf-8
< Content-Length: 0
< Strict-Transport-Security: max-age=31536000
< X-Endpoint: Travis::Api::App::Endpoint::Jobs
< X-Pattern: /

```

What’s the equivalent of endpoint /jobs in the API V3?

---

<div class="post-metadata">

**Author:** ![dominic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dominic/32/14_2.png) [@dominic](https://travis-ci.community/u/dominic)\
**Post date:** [April 15, 2019, 7:17pm UTC](https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024/2 "2019-04-15T19:17:41Z")

</div>

Hey there, thanks for reaching out and I’m sorry for the confusion.

I’m checking with our Engineering Team why this doesn’t work with API v3.

Thank you for your patience!

---

<div class="post-metadata">

**Author:** ![carlad](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/carlad/32/1597_2.png) [@carlad](https://travis-ci.community/u/carlad)\
**Post date:** [April 16, 2019, 7:20am UTC](https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024/3 "2019-04-16T07:20:07Z")

</div>

Hi @monperrus, I’m a platform engineer at Travis CI, following up at @dominic 's request.

V3 of our API does support a `/jobs` endpoint, but for the `current_user` (i.e. logged-in user). You can see a more detailed description of the endpoint on our V3 developer docs here (you will need to be logged in to Travis CI to see these docs):

[https://developer.travis-ci.org/resource/jobs#for\_current\_user](https://developer.travis-ci.org/resource/jobs#for_current_user)

To make a curl request against V3, you will need to include an Authorization header with a token, like so:

```auto
curl --verbose -H "Travis-API-Version: 3" -H "Authorization: token XXXXXX" https://api.travis-ci.org/jobs

```

You can find your token using our CLI, with `travis token`, or visiting the Explorer page of our API V3 docs where you’ll see a redacted Authorization token in the example curl request. Scroll over this and the token will become visible.

In your case, for your `Spiral-Team/repinator` project, if it’s the `jobs` for that specific repository you need, you can try this endpoint:

`repo/Spirals-Team%2Frepairnator/builds`

([https://developer.travis-ci.org/resource/builds#Builds](https://developer.travis-ci.org/resource/builds#Builds))

This will return a list of builds, including all the jobs in each build. You can see an example of this on the Explorer page of our V3 developer docs:

[https://developer.travis-ci.org/explore/repo/Spirals-Team%2Frepairnator/builds](https://developer.travis-ci.org/explore/repo/Spirals-Team%2Frepairnator/builds)

I hope that’s helpful. Thanks for the question, and please get back in touch if there’s anything else we can help with.

---

<div class="post-metadata">

**Author:** ![monperrus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/monperrus/32/1592_2.png) [@monperrus](https://travis-ci.community/u/monperrus)\
**Post date:** [April 16, 2019, 1:02pm UTC](https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024/4 "2019-04-16T13:02:05Z")

</div>

Hi @carlad!

That’s super helpful, thanks. It works with my token, yet it has a different behavior.

In V1 and V2, /job gives all jobs over all public repos.

In V3 + authentication, this only gives the build of the repos I’m involved in.

How to get all jobs over all public repos in V3?

Thanks!

---

<div class="post-metadata">

**Author:** ![carlad](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/carlad/32/1597_2.png) [@carlad](https://travis-ci.community/u/carlad)\
**Post date:** [April 16, 2019, 2:43pm UTC](https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024/5 "2019-04-16T14:43:51Z")

</div>

Hi @monperrus,

Do you mean all jobs for that organization?

Yes, the V3 `/jobs` endpoint only returns jobs that the `current_user` has access to.

One way around this could be to create a user that has access to all the organization repos, and use that token to make the request. Not sure if that’s feasible, but currently there’s no way to use V3 in the same way.

---

<div class="post-metadata">

**Author:** ![monperrus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/monperrus/32/1592_2.png) [@monperrus](https://travis-ci.community/u/monperrus)\
**Post date:** [April 17, 2019, 5:47am UTC](https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024/6 "2019-04-17T05:47:30Z")

</div>

> but currently there’s no way to use V3 in the same way.

OK. Is there a way to open a feature request so as to get a backward compatible behavior in V3?

---

<div class="post-metadata">

**Author:** ![monperrus](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/monperrus/32/1592_2.png) [@monperrus](https://travis-ci.community/u/monperrus)\
**Post date:** [August 2, 2019, 9:31am UTC](https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024/7 "2019-08-02T09:31:47Z")

</div>

Hi @carlad,

How to open a feature request so as to get a backward compatible behavior in V3?

Thanks! --Martin

---

<div class="post-metadata">

**Author:** ![carlad](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/carlad/32/1597_2.png) [@carlad](https://travis-ci.community/u/carlad)\
**Post date:** [August 2, 2019, 9:53am UTC](https://travis-ci.community/t/endpoint-https-api-travis-ci-org-jobs-not-supported-in-v3/3024/8 "2019-08-02T09:53:12Z")

</div>

Hi @monperrus,

I no longer work at Travis CI.

I suggest emailing [support@travis-ci.com](mailto:support@travis-ci.com)

Best regards --Carla
