Need API link for Customers
Asked by Manoj Kumar:

Hi All,

I am having a hard time finding the API link for customers in JiraAlign.

For example in our instance: The first one for users works whereas the second one for users doesn't work.

1. <https://myinstance.jiraalign.com/api/users> (This works)
2. <https://myinstance.jiraalign.com/align/api/2/users> (doesn't work)

Similarly, I am trying to find the working link for Customers. When I use the similar as the first one from above it outputs an error.

The link I'm trying for Customers: <https://myinstance.jiraalign.com/api/customer>

The error I'm getting: "Message": "No HTTP resource was found that matches the request URI

Any help here is appreciated.

Thank you,

Manoj


Answers:
author: Allan Maxwell
body: **Try this ...note the bolded text "rest"**

<https://mycustomer.jiraalign.com/>**rest**/align/api/2

**NOT**

[https://mycustomer.jiraalign.com/align/api/2](https://workfusion.jiraalign.com/align/api/2)

comments: author: Manoj Kumar
body: Hi [@Allan Maxwell](/t5/user/viewprofilepage/user-id/3502714) ,

Even this link is not working for me. Please see the screenshot.

I am using this link : <https://ncrengtoolstest.jiraalign.com/rest/align/api/2/users>![Capture75.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/143859iB505A596794B084C/image-size/large?v=v2&px=999 "Capture75.PNG")

Thank you,

Manoj


author: Allan Maxwell
body: The API2 is not on by default, so you would need to turn that on using a Master Toggle ...that's my best guess.


author: Manoj Kumar
body: Hi [@Allan Maxwell](/t5/user/viewprofilepage/user-id/3502714) , It's already enabled but still not able to access the data.

Also, FYI first URL doesn't work whereas the second works.

1. <https://ncrengtoolstest.jiraalign.com/rest/align/api/2/users>
2. <https://ncrengtoolstest.jiraalign.com/api/users>

![MicrosoftTeams-image (9).png](https://community.atlassian.com/t5/image/serverpage/image-id/143861i7E07F8869681402A/image-size/large?v=v2&px=999 "MicrosoftTeams-image (9).png")

Thank you,

Manoj


author: Allan Maxwell
body: If I use PostMan then ++<https://ABC.jiraalign.com/rest/align/api/2/users>++ works fine. If I just paste it into a browser URL bar, I get the same error that you are getting.


author: Rodrigo Cortez
body: Hi [@Manoj Kumar](/t5/user/viewprofilepage/user-id/3667061)

There you go with the endpoints for these objects (and corresponding DTO schemas):

* /align/api/2/Customers  
  * AgileCraft.Services.Models.Customers.CustomerDto
* /align/api/2/Users
  * AgileCraft.Services.Models.Users.UserDto

You can find all available endpoints by browsing to your instance's Swagger:

* [https://instance.jiraalign.com/rest/align/api/docs/index.html](https://instance.jiraalign.com/rest/align/api/docs/index.html?)

Notice that authorization is based on the authenticated user when Jira Align REST APIs are called. User privileges, such as data and page access, via the REST APIs are identical to privileges in the interface. For example, if a user's system role provides read-only access to epics in a single portfolio, the user will not be able to create or update epics with the API, and will only be able to read epics from the single portfolio.

comments: author: Manoj Kumar
body: Hi [@Rodrigo Cortez](/t5/user/viewprofilepage/user-id/3219679) ,

The URLs don't work for me this is why I'm checking if I am doing wrong here. Attached the screenshot.

Also, I am super admin in the tool so it's no issue with the permissions.![Capture74.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/143831i8C7FC7BFC1AF539A/image-size/large?v=v2&px=999 "Capture74.PNG")

Thank you,

Manoj


author: Rodrigo Cortez
body: Hi [@Manoj Kumar](/t5/user/viewprofilepage/user-id/3667061) ,

**/align/api/2/Users** and **/align/api/2/Customers** are API 2.0 endpoints, not regular web pages that one can browse to.

Browse to your *Swagger* page <https://ncrengtoolstest.jiraalign.com/rest/align/api/docs/index.html> and, once authorized, you'll be able to try out all of them from there.

![Screen Shot 2021-05-19 at 08.57.05.png](https://community.atlassian.com/t5/image/serverpage/image-id/143998iB75768EE9DD0489C/image-size/large?v=v2&px=999 "Screen Shot 2021-05-19 at 08.57.05.png")

Please review this [getting started](https://help.jiraalign.com/hc/en-us/articles/360045371954-Getting-started-with-the-REST-API-2-0) article for information on how to create \& user a bearer token in Swagger.


Tags: api

rest-api