Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need API endpoints to interact with JSM and Assets

Muthuraja T
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 13, 2025

I downloaded the Postman collection from the Atlassian website, but I couldn't get the predefined APIs in the collection to work. It has the data as below for getting assets: URL: {{protocol}}://{{host}}/{{basePath}}assets/1.0/object/22

The values of the variables are:

protocol: https

host: api.atlassian.com

basePath: xxxxx.atlassian.net/rest/

This returns 404:

{ "timestamp": "2025-02-13T06:49:47.841528791Z", "status": 404, "error": "Not Found", "message": "No message available", "path": "/xxxxxx.atlassian.net/rest/assets/1.0/aql/objects" }

I found a working API endpoint from the browser’s network activity

https://p-square.atlassian.net/gateway/api/jsm/assets/workspace/395e92ef-038d-4504-b46c-9476b134cb0e/v1/objectschema/2/objecttypes/flat?includeObjectCounts=true.

Can you give right end points to be used with complete URL for making API calls?

 

 

3 answers

2 accepted

5 votes
Answer accepted
Gabriel Teixeira
Contributor
February 13, 2025

Hello @Muthuraja T and welcome!

To interact with assets for cloud you could use the link provided by @Lucas Modzelewski _Lumo_ 

The Assets REST API

 

If you need other APIs, you have the documentation for Jira and for Jira SM too.
Jira: The Jira Cloud platform REST API
Jira SM: The Jira Cloud platform REST API

2 votes
Answer accepted
Lucas Modzelewski _Lumo_
Atlassian Partner
February 13, 2025

Hi @Muthuraja T , welcome to the Atlassian Community!

You probably downloaded collection for Server/Data Center.

For Cloud check this: https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-id-get 

0 votes
Muthuraja T
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 13, 2025

Thanks for the information. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events