Begginer tutorial for using Jira Assets API

Hello, I am working on using API for Jira Assets. I am working in Postman. My initial goal would be to list all objects inside of Object Schema. I have setup my personal account on atlassian.com, where I have Jira and Assets enabled. I have created my API token.

I found this link: Assets 10.7.0 (atlassian.com)
but I still do not understand which URL to use. This documentation mentions this structure:

I am not sure how to adapt this when I use personal Jira cloud instance. I tried this GET request:

https://{myorgname}.atlassian.net/context/rest/assets/10.7.0/objectschema/2/objecttypes/flat

I entered my Basic Auth creds, email and API token, but I get error:
“error”: “Failed to parse Connect Session Auth Token”

Sorry if this is wrong as I’m still learning a lot. But I’ve seen it been used in the “header” section of postman with the setup of “Authorization: Basic base64encodedAPIKey”
https://developer.atlassian.com/server/jira/platform/basic-authentication/

Also double check the user you created the API key for has access to the assets as well (I guess under roles?)

Welcome to the Atlassian developer community @id45,

You linked to the Assets REST API for the on-prem (Data Center) product, but your URL is clearly a Cloud Jira. As such, you’ll probably want the Assets Cloud docs instead.

1 Like